Terraflux Terraflux
Download

Ecosystem services

7 operators. Inputs marked required must be connected or given; the others have defaults.

services.carbon#

Carbon storage of a landscape and its change between two land use maps: InVEST's carbon model (natcap.invest 3.20) bit for bit, through landschaft. Each class holds a density (t C / ha) in four pools (above and below ground biomass, soil, dead matter); the storage is their sum, the sequestration the future minus the baseline, valued with a price.

InputTypeWhat it is
lulcrequiredmapthe baseline land use (class codes; projected, metres)
poolsrequiredtableby class: lucode, c_above, c_below, c_soil, c_dead (Mg C / ha)
futuremapthe alternate (future) land use, on the same grid
OutputTypeWhat it is
storagemapthe baseline's carbon, t / ha (float32)
poolsstackeach pool's map (c_above, c_below, c_soil, c_dead)
storage_futuremapthe future's carbon (with future)
pools_futurestackthe future's pools (with future)
changemapsequestration: future minus baseline (with future)
npvmapthe change's net present value per ha (with a price)
totalstabletons of carbon: baseline, alternate, change; npv in currency
SettingTypeWhat it is
pricenumberof a ton of carbon (valuation of the change)
discount_ratenumberper year, percent
rate_changenumberof the price per year, percent (0)
yearintegerof the baseline map
future_yearintegerof the future map

services.habitat_quality#

Habitat degradation, quality and rarity: InVEST's habitat quality model (natcap.invest 3.20) bit for bit, through landschaft. Each threat degrades the habitat around it, decaying linearly or exponentially with the distance to its nearest cell up to its maximum distance, weighed by its weight, the sensitivity of the cell's class and the access; quality h (1 - D^2.5 / (D^2.5 + k^2.5)). With a base map, the rarity of each class.

InputTypeWhat it is
lulcrequiredmapthe current land use (class codes; projected, metres)
sensitivityrequiredtableby class: lucode, habitat (0 to 1) and a column per threat (its sensitivity, 0 to 1)
threat_mapsrequiredstackthe current map of each threat, by its name (0 to 1)
futuremapa future land use
future_threat_mapsstackthe future's threat maps
basemapa base land use, for the rarity
base_threat_mapsstackthe base's threat maps (optional)
accessanyaccessibility to threats, 0 to 1: a raster, or polygons with an access attribute (1 outside)
OutputTypeWhat it is
qualitymapthe current habitat quality
degradationmapthe current total degradation
threatsstackthe current degradation of each threat
quality_futuremapwith a future
degradation_futuremapwith a future
quality_basemapwith the base's threat maps
degradation_basemapwith the base's threat maps
raritymapthe rarity of the current classes (with a base)
rarity_futuremapof the future classes (with a base and a future)
rarity_tabletablescenario (0 current, 1 future), lucode, rarity
SettingTypeWhat it is
threatsrequiredanya list of {threat, max_dist (metres), weight (0 to 1), decay (linear or exponential)}, or InVEST's threats table (a file)
half_saturationrequirednumberk, often half the highest degradation

services.ndr#

Nutrient export and retention: InVEST's nutrient delivery ratio model (natcap.invest 3.20) bit for bit, through landschaft. The nitrogen and phosphorus loads of each land use (scaled by the runoff proxy over its mean) split into a surface part and, for nitrogen, a dissolved subsurface part; the surface load reaches a stream in the share NDR = (1 - eff') / (1 + exp((IC_0 - IC) / k)), eff' the retention of the cells it crosses on its way down and IC the index of connectivity (Borselli et al. 2008), the subsurface load in the share 1 - eff_sub (1 - exp(-5 l / l_sub)). The DEM filled and routed by pygeoprocessing's algorithms, as InVEST; the subsurface distance in metres (InVEST takes it in cells).

InputTypeWhat it is
demrequiredmapelevations (projected, metres)
lulcrequiredmapland use (class codes)
runoff_proxyrequiredmapthe capacity of the runoff to carry nutrients (any units)
biophysicalrequiredtableby class: lucode, load_n, eff_n, crit_len_n, proportion_subsurface_n (nitrogen); load_p, eff_p, crit_len_p (phosphorus)
watershedsrequiredvectorthe watershed polygons (the model runs inside them)
OutputTypeWhat it is
n_surface_exportmapthe surface nitrogen that reaches the streams, kg/ha/yr
n_subsurface_exportmapthe dissolved nitrogen that reaches them
n_total_exportmapsurface plus subsurface nitrogen export
p_surface_exportmapthe phosphorus that reaches the streams, kg/ha/yr
ndr_nmapthe surface delivery ratio of nitrogen
ndr_pmapthe surface delivery ratio of phosphorus
effective_retention_nmapthe nitrogen retained on its way down
effective_retention_pmapthe phosphorus retained on its way down
icmapthe index of connectivity
streammapthe streams (1)
drains_to_streammap1 where the flow reaches a stream
watershed_tabletableby watershed: the surface loads, the exports and the subsurface load (kg / yr)
ic_0numberthe IC_0 of the delivery ratio (half way between the extremes)
runoff_proxy_meannumberthe mean the runoff proxy was divided by
SettingTypeWhat it is
thresholdrequirednumberthe flow accumulation (cells) of a stream
knumberBorselli's k (2)
nitrogenboolmodel nitrogen (default true)
phosphorusboolmodel phosphorus (default true)
subsurface_critical_lengthnumberthe distance (m) over which the soil reaches its largest retention of dissolved nitrogen
subsurface_efficiencynumberthat largest retention, 0 to 1
runoff_proxy_meannumberthe proxy's mean (default: of the map)
load_type_nanymeasured-runoff (default: the load as given) or application-rate (times 1 - eff_n), for every class; or by class, {"": type}
load_type_panythe same for phosphorus
methodtextthe routing: mfd (default) or d8

services.pollination#

Crop pollination by wild bees: InVEST's pollination model (natcap.invest 3.20) bit for bit, through landschaft. Each species nests where the land uses (and the farms) offer its substrates and forages on their flowers by season within its flight distance (an exponential kernel of mean alpha); its supply and its abundance by season follow, summed over the species by season; with farms, the pollinator abundance on them (their half saturation), the total and wild pollinator yields and the means by farm.

InputTypeWhat it is
lulcrequiredmapthe land use (class codes; projected, metres)
biophysicalrequiredtableby class: lucode, nesting_availability_index, floral_resources_index
farmsvectorfarm polygons: crop_type, half_sat, season, p_dep, p_managed, fr_, n_
OutputTypeWhat it is
supplystackthe pollinator supply of each species
abundancestackthe abundance of each species in each season (_)
total_abundancestackthe abundance of all species, by season
farm_pollinatorsmapthe pollinator abundance on the farms (with farms)
total_yieldmapthe yield owed to pollinators, wild and managed
wild_yieldmapthe yield owed to wild pollinators
farm_tabletableby farm: p_abund, y_tot, pdep_y_w, y_wild
SettingTypeWhat it is
guildsrequiredanya list of {species, alpha (metres), relative_abundance, foraging_activity_index, nesting_suitability_index}, or InVEST's guild table (a file)

services.sdr#

Sediment export, deposition and retention: InVEST's sediment delivery ratio model (natcap.invest 3.20), through landschaft. The soil loss of the RUSLE (R K LS C P, the LS of Desmet & Govers from the flow accumulation) and the share that reaches a stream, SDR = SDR_max / (1 + exp((IC_0 - IC) / k)) of the index of connectivity (Borselli et al. 2008); the DEM filled and routed by pygeoprocessing's algorithms, as InVEST.

InputTypeWhat it is
demrequiredmapelevations (projected, metres)
erosivityrequiredmaprainfall erosivity R (MJ mm / ha h yr)
erodibilityrequiredmapsoil erodibility K (t ha h / ha MJ mm)
lulcrequiredmapland use (class codes)
biophysicalrequiredtableby class: lucode, usle_c, usle_p
watershedsrequiredvectorthe watershed polygons (the model runs inside them)
drainagemapother cells that drain to the streams (1)
OutputTypeWhat it is
uslemapsoil loss, t / ha / yr
sed_exportmapthe soil loss that reaches the streams
sed_depositionmapsediment from upslope the cell traps
avoided_exportmaptotal retention
avoided_erosionmapRKLS - USLE
rklsmapthe soil loss of bare soil
sdrmapthe sediment delivery ratio
icmapthe index of connectivity
streammapthe streams (1)
drains_to_streammap1 where the flow reaches a stream
watershed_tabletableby watershed: usle_tot, sed_export, sed_dep, avoid_exp, avoid_eros (t / yr)
SettingTypeWhat it is
thresholdrequirednumberthe flow accumulation (cells) of a stream
knumberBorselli's k (2)
ic_0numberBorselli's IC_0 (0.5)
sdr_maxnumberthe largest SDR (0.8)
l_maxnumberthe largest L factor (122)
methodtextthe routing: mfd (default) or d8

services.seasonal_water_yield#

Quickflow, local recharge and baseflow: InVEST's seasonal water yield model (natcap.invest 3.20) bit for bit, through landschaft. The quickflow of each month from the curve numbers of the land use and soil group and the rain events; the local recharge P - QF - AET, the evapotranspiration limited by the water from upslope (alpha, beta, gamma); the baseflow the recharge gives the cells down to the streams; with a recharge map instead (and no climate), its routing only. The DEM filled and routed by pygeoprocessing's algorithms, as InVEST.

InputTypeWhat it is
demrequiredmapelevations (projected, metres)
lulcmapland use (class codes; with the climate)
biophysicaltableby class: lucode, cn_a, cn_b, cn_c, cn_d (curve numbers), kc_1 ... kc_12 (with the climate)
watershedsrequiredvectorthe watershed polygons (the totals by polygon)
precipitationstackthe twelve months' precipitation, mm
et0stackthe twelve months' reference evapotranspiration, mm
soil_groupmaphydrologic soil groups, 1 (A) to 4 (D)
climate_zonesmapclimate zones (with the climate zone table)
climate_zone_tabletableby zone: cz_id, jan ... dec (the rain events of each month)
rechargemapa local recharge map (mm), instead of the climate
OutputTypeWhat it is
quickflowmapthe annual quickflow, mm
local_rechargemapthe local recharge L, mm
l_availmapthe recharge available to the cell, mm
l_sum_availmapthe recharge available from upslope, mm
l_summapthe recharge from upslope, mm
baseflowmapthe baseflow the cell gives, mm
b_summapthe baseflow from upslope, mm
vrimapthe cell's share of the total recharge
aetmapthe annual actual evapotranspiration, mm
annual_precipitationmapthe annual precipitation, mm
streammapthe streams (1)
quickflow_monthlystackthe quickflow of each month (1 to 12), mm
watershed_tabletableby watershed: qb (mean recharge), vri_sum, geom_id
monthly_tabletableby watershed and month: geom_id, month, quickflow, baseflow, precipitation (m³)
SettingTypeWhat it is
thresholdrequirednumberthe flow accumulation (cells) of a stream
rain_eventsanythe rain events of each month, twelve numbers (or the climate zones)
alphaanythe share of the annual recharge upslope available each month: a number (1/12) or twelve
betaanythe share of the upslope recharge available to the cell (1)
gammaanythe share of the cell's recharge available downslope (1)
methodtextthe routing: mfd (default) or d8
precisiontextthe type of the precipitation, ET0 and recharge rasters in InVEST: float32, float64, or auto (default: float64 when a raster has a value float32 cannot hold)

services.water_yield#

Annual water yield, consumption and hydropower: InVEST's annual water yield model (natcap.invest 3.20) bit for bit, through landschaft. The water balance of each cell on the Budyko curve (Fu and Zhang): AET / P from the potential evapotranspiration Kc ET0, the plant available water and the seasonality Z; the yield P - AET. With watersheds, their means and volumes; with a demand table, the consumption and the realized supply; with a valuation table, the hydropower energy and value.

InputTypeWhat it is
lulcrequiredmapthe land use (class codes; projected, metres)
biophysicalrequiredtableby class: lucode, lulc_veg (1 or 0), root_depth (mm), kc
precipitationrequiredmapannual precipitation, mm
etorequiredmapannual reference evapotranspiration, mm
depthrequiredmapdepth to the root restricting layer, mm
pawcrequiredmapplant available water content, 0 to 1
watershedsvectorpolygons with a ws_id
subwatershedsvectorpolygons with a subws_id
demandtableby class: lucode, demand (m³ per year and cell)
valuationtableby watershed: ws_id, efficiency, fraction, height, kw_price, cost, time_span, discount
OutputTypeWhat it is
wyieldmapwater yield, mm
aetmapactual evapotranspiration, mm
petmappotential evapotranspiration, mm
fractpmapAET / P
demand_mapmapconsumptive use per cell, m³ / year (with demand)
watershed_tabletableby watershed: means, volumes, supply, hydropower
subwatershed_tabletableby subwatershed
SettingTypeWhat it is
seasonalityrequirednumberZ, about 1 to 30
precisiontextInVEST's arithmetic: float32 (its float32 rasters), float64, or auto (default: float64 when a raster has a value float32 cannot hold)