The GEP service library: state and open questions.
| File | Content |
|---|---|
| functions.py | The equations, pure science. |
| tasks.py | The estimation steps. Each task writes one output. |
| initialize.py | The table of contents (the list of steps, and the entry point other pipelines call). |
| run_<service>.py | The main script per sevice. Runs the steps. |
| method.qmd | The written explanation of the method. |
| results.qmd | The report of the results, rendered at the end of every run. |
Terrestrial carbon’s report: its total, the same figures by income group, region and continent, the per-country table, and this map.
| Accounts | Where the number comes from |
|---|---|
13 |
We compute it. The quantity, the price and nature’s share are all built in the repo, and all thirteen now report a total. |
6 |
We compute part of it. One component is ours and the other is read from a published source. |
3 |
We take the economics from a published table. Two turn a published rent share into dollars; one reports a finished per-country figure. |
3 |
We value the output of a model we do not yet run ourselves. Air filtration and sandstorm prevention report totals; stormwater reports retained volume only, because its price is a placeholder of 1. |
| What the code does | Accounts | Which |
|---|---|---|
| Reads a published value | 1 |
urban cooling |
| Rescales a published rate | 2 |
mining production, extractive energy |
| Table arithmetic | 12 |
crop, livestock, both fisheries, energy, hydropower, water use, air filtration, sandstorm, wildfires, water quality, coastal protection |
| Raster arithmetic | 7 |
terrestrial carbon, coastal carbon, pollination, ntfp, timber, floods, stormwater |
| Process model run here | 3 |
erosion, landslides, recreation |
| Service | What it values |
|---|---|
| terrestrial_carbon | carbon stored by land ecosystems, priced at the social cost of carbon |
| coastal_carbon | carbon in mangroves, salt marshes and seagrass |
| pollination | crop production attributable to wild pollinators |
| erosion | soil the land cover keeps in place, valued through crop productivity |
| landslide_mitigation | landslide deaths avoided by forest cover, valued at a value of a statistical life |
| fisheries | commercial capture-fisheries rent and subsistence catch value |
| crop_provision | the value of crop production |
| Service | What it values |
|---|---|
| livestock_provision | livestock production attributable to ecosystem-provided feed |
| coastal_protection | storm damage avoided by mangroves |
| extractive_materials | mineral resource rents |
| renewable_energy | wind, solar and geothermal production value |
| recreation | expenditure on visits to natural recreation sites, valued at travel cost |
| fire_protection | wildfire damage avoided by nature’s fire regulation |
| water_supply | hydropower rent, and water withdrawal priced by sector |
| ntfp | non-timber forest products from forest within reach of a road or river |
| stormwater | stormwater retained by vegetation and soils, not yet masked to urban areas |
| Service | What it values |
|---|---|
| air_filtration | deaths avoided by vegetation removing air pollution |
| sandstorm_prevention | deaths avoided by ecosystems suppressing windblown dust |
| water_quality | water-treatment costs avoided by nutrient retention |
| flood | flood damage avoided by ecosystems |
| local_climate_regulation | cooling-energy costs avoided by urban vegetation |
| extractive_energy | fossil-fuel resource rents (gas, coal, petroleum) |
| timber_provision | the net value of timber harvests, net of harvest and transport costs |
| column | what it holds |
|---|---|
| method | how the number is computed |
| ours | whether we can recompute the number ourselves |
| total | the figure the account takes |
| code | the engineering work we did |
| number | what the figure is, and what it was checked against |
| need | what we are missing |
| Service | Total | Verified |
|---|---|---|
| terrestrial_carbon | $5.365T |
yes. |
| coastal_carbon | $22.84bn EEZ-only, $102.18bn all rows | yes. |
| crop_provision | $678bn |
yes. |
| livestock_provision | $519bn rental rate, $1.37T feed share | no. Both attributions run; which one the account uses is the open decision, and there is no reference output |
| coastal_protection | $36.72bn |
partially. Mangroves are replicated, $30.40bn against their $30.40bn; the coral half, $6.32bn deflated, is read through |
| extractive_materials | $99.54bn |
yes. |
| renewable_energy | $170.83bn |
partially. The code and the drive’s reference CSVs give different values, and which one is current is the open question |
| Service | Total | Verified |
|---|---|---|
| pollination | $387.49bn at 2019, the author’s raster. $515bn FAO side | yes. |
| erosion | not reported | no. The run is ongoing. |
| landslide_mitigation | $770.7M (570.66 avoided deaths) | no. No reference output exists |
| fisheries | shock + commercial GEP $29.00bn provisional + subsistence $7.92bn | partially. Subsistence reproduces its committed output, and the commercial run has no reference output yet |
| recreation | $1.73bn provisional | no. The author’s output table is not reachable |
| fire_protection | -$1.3bn provisional, one of three coefficients | partially. Reproduces the committed output, but reads the committed regression coefficients rather than refitting them. Kosovo and two Indian sub-regions now reach a country instead of no country |
| water_supply | hydropower component $146.57bn | yes. |
| water_use | $1.07T agriculture, $36.58T all sectors | no. The drive’s two committed figures were produced separately, so neither is a reference |
| Service | Total | Verified |
|---|---|---|
| air_filtration | $17.81bn |
yes. |
| sandstorm_prevention | $595.36bn |
yes. |
| water_quality | $638.34bn USD and $655.91bn intl$ | partially. We recompute the nutrient valuations and reproduce the committed intermediates; the headline international-dollar column is read through |
| flood | $112.78bn |
partially. Our recompute matches the pipeline’s table, Morocco excepted |
| local_climate_regulation | $175.56bn ours | no. We compute it from our own city valuations; the committed table’s $14.19bn differs by a country-varying factor |
| extractive_energy | $1.05T (gas + coal + petroleum) | yes. |
| timber_provision | $88.74bn |
yes. |
| ntfp | $28.87bn | no. No reference output |
| stormwater | 185.85bn m3 retained. No dollar total: the price is a placeholder of 1 | no. The retention run is ours, and no author run exists to compare against |
with_country_mc variant, and can we have Data/consumption_per_cdd_by_country_iea.csv? Your gep_fixing_cooling_valuation_v04.py computes both, differing by one line: with_country_mc = without_mc * consumption_per_cdd, an IEA consumption per cooling-degree-day factor that varies by country. That would explain why the gap between our $175.56bn and the committed $14.19bn is not a constant, ranging about 2.5 to 766. We cannot check it because the factor table sits in your input directory rather than the shared base data.timber_provision_appendix, staged in base_data; the cited repo holds no timber code.nontimber_price_iucn_edited.csv matches CWoN for 3,045 of 3,108 country-year pairs and is exactly five times CWoN for the other 63, all Central African Republic, DR Congo and Mozambique; they come to $1.37bn of $14.07bn, DR Congo alone $921M, and without the edit the service is $12.98bn.| service | base year | price convention | Q | P | λ | land |
|---|---|---|---|---|---|---|
| terrestrial_carbon | 2019 | rental scc r2% | carbon zones raster | prices xlsx | esa 2019 | |
| coastal_carbon | 2019 | rental scc r2% | prices xlsx | |||
| pollination | 2019 | value raster (ours) | ||||
| renewable_energy | 2019 | IRENA production | WB prices | CWON rents | ||
| extractive_materials | 2019 | WB GDP | WB rents share | |||
| coastal_protection | 2019 | CWoN mangroves |