Data and code for: Measuring before paying - nitrogen accounting, product revenue and payment design for floating treatment wetlands in two Chinese drinking-water reservoirs

Published: 2 November 2026| Version 1 | DOI: 10.17632/g7644nrbpm.1
Contributor:

Description

Model code, inputs and frozen outputs for an economic analysis of floating treatment wetlands (FTWs) in two Chinese drinking-water reservoirs (Qiandao Lake and Tangpu Reservoir). The analysis compares nitrogen accounting bases (plant uptake, integrated pilot removal, net harvest export and tank upscaling), levelised costs of nitrogen removal, product-revenue coverage of procurement costs, carbon revenue thresholds and payment arrangements, and uses Monte Carlo propagation, grouped Sobol indices and the expected value of partial perfect information (EVPPI) to evaluate a proposed nitrogen-based payment. The dataset contains: (1) Python code for the stochastic model, prior definitions, Monte Carlo, grouped Jansen-Sobol indices, GAM-based and nested EVPPI and deterministic integration checks, with a portable verification script; (2) model inputs and the 45 executable prior configurations; (3) summary outputs of the stochastic run (JSON files; seeds 20261020, 20261021 and 20261022; the random draws are regenerated exactly from the seeds with the code); (4) Supplementary Tables S1-S10 and source data for all figures of the article; (5) SHA-256 checksums for all files. Monetary values are in 2025 CNY. Contracts and budgets are not included; the coded clauses and cost items used in the analysis are reported in Tables S3, S5 and S10. See README.md for file descriptions.

Files

Steps to reproduce

1. Install Python 3.13 and the packages in code/requirements.txt (numpy 2.5.3, scipy 1.18.1, openpyxl 3.1.5). 2. From the dataset root run: python code/verify.py. This parses the code, rebuilds the 45 prior configurations and compares them with inputs/prior_variants.json, recomputes the frozen net-harvest nitrogen anchors (1763.207745 and 1791.98174 kg N per year for export fractions 0.99 and 1) and checks all files against SHA256SUMS.txt. No random model is executed. 3. Optional full re-run: python code/verify.py --run-statistics --output new_run (Monte Carlo, grouped Jansen-Sobol indices, GAM EVPPI, nested Monte Carlo and order-64 integration with seeds 20261020, 20261021 and 20261022). Results are written to the new directory and can be compared with frozen_run/. 4. Supplementary Tables S1-S10 and Source_Data.xlsx in tables/ give the deterministic results and the plotted values of all figures; each row gives its source sheet and cell.

Categories

Environmental Economics, Treatment Wetland, Nitrogen Cycle, Drinking Water Quality

Funders

Licence