SWYRechargeRouting¶
The fourth step of the Seasonal Water Yield workflow: the actual evapotranspiration and the local recharge of the year, routing the recharge available to the cells downslope along the flowdirections (see the model).
The rasters of the months are given as folders, with a name prefix for each input: prcp_ finds prcp_1.tif to prcp_12.tif, ordered by their number. The three folders, which can also be the same one as in the example, need the rasters of the same months. From scripts they can also be given as lists of rasters. Without them, the module runs on a single interval (see one year, or single intervals).
The routing visits the cells along the flow paths, so the module reads the precipitation, the quickflow and the potential evapotranspiration of all the months in memory: two rasters of 8 bytes per cell for each month, 225 MB for the 1.2 million cells of the example.
The network of the old versions of the module is no longer needed: the cells of the streams follow the same balance as all the others. It is ignored, with a warning.
Details¶
Each cell evapotranspires its precipitation minus quickflow, plus a part of the recharge of the upslope cells, up to the potential evapotranspiration. What is left is the local recharge, negative where the upslope water is evapotranspired, as on the streams, where all the precipitation is quickflow. The fraction gamma of the recharge is available to the downslope cells, of which the fraction beta can be evapotranspired, divided among the intervals by alpha.
The module has two modes. With the lists (or folders) of the intervals, the recharge is the one of the whole period, as in InVEST, where the 12 months of a year make an annual recharge, and alpha is by default 1/12. With the single interval inputs, the recharge of the interval is routed by itself, without water carried over from the other intervals: the results then differ from those of InVEST, even if summed over the year.
Novalues in the precipitation, quickflow and potential evapotranspiration are considered as 0.
Parameters¶
The local recharge and actual evapotranspiration of the InVEST Seasonal Water Yield model, routing the recharge available to the downslope cells along the flowdirections.
Toolbox folder: Hydro-Geomorphology
Status: Experimental
Keywords: recharge
Authors: The klab team.
Class: org.hortonmachine.modules.SWYRechargeRouting
Inputs
Parameter |
Type |
Unit |
Default |
Description |
|---|---|---|---|---|
|
raster file |
mm |
The map of the potential evapotranspiration of the interval (single interval mode). |
|
|
raster file |
mm |
The map of the precipitation of the interval (single interval mode). |
|
|
raster file |
The map of flowdirections (D8). |
||
|
raster file |
DEPRECATED, not needed and ignored: as in InVEST, stream cells follow the same water balance as the other cells. |
||
|
raster file |
mm |
The map of the quickflow of the interval (single interval mode). |
|
|
double |
|
The fraction of the upslope subsidy that is available in the interval (single interval mode). |
|
|
double |
|
Spatial availability parameter: the fraction of the upgradient subsidy that is available for downgradient evapotranspiration, it is based on local topography and geology |
|
|
double |
|
Fraction of pixel recharge that is available to downgradient pixels, represents what extent local recharge enters a local groundwater system and might be used again as oppose to entering a deeper groundwater system |
|
|
folder |
The folder with the potential evapotranspiration of each interval (ex. the 12 months of a year), named as the pet prefix followed by the number of the interval. If set, the recharge is calculated over the whole period, as in InVEST, and the single interval inputs are not used. |
||
|
String |
The name prefix of the potential evapotranspiration rasters (ex. pet_ for pet_1.tif … pet_12.tif). |
||
|
folder |
The folder with the precipitation of each interval, used together with the pet folder. |
||
|
String |
The name prefix of the precipitation rasters (ex. prcp_ for prcp_1.tif … prcp_12.tif). |
||
|
folder |
The folder with the quickflow of each interval, used together with the pet folder. |
||
|
String |
The name prefix of the quickflow rasters (ex. qf_ for qf_1.tif … qf_12.tif). |
||
|
String |
The comma separated fractions of the upslope subsidy available in each interval, in the order of the interval numbers, used together with the pet folder (if not set, 1/number of intervals, i.e. 1/12 for months as in InVEST). |
Outputs
Parameter |
Type |
Unit |
Description |
|---|---|---|---|
|
output file |
mm |
The map of the actual evapotranspiration. |
|
output file |
mm |
The map of the local recharge (L), what is left of the precipitation after quickflow and actual evapotranspiration. |
|
output file |
mm |
The map of the upslope subsidy (the recharge available from upstream cells, L_sum_avail). |
|
output file |
mm |
The map of the part of the local recharge that is available to downslope cells (L_avail = min(gamma * L, L)). |
References
Natural Capital Project. InVEST User’s Guide, Seasonal Water Yield. Stanford University, University of Minnesota, Chinese Academy of Sciences, The Nature Conservancy, World Wildlife Fund, Stockholm Resilience Centre and the Royal Swedish Academy of Sciences. https://releases.naturalcapitalproject.org/invest-userguide/latest/
Hamel, P., Valencia, J., Schmitt, R., Shrestha, M., Piman, T., Sharp, R. P., Francesconi, W., Guswa, A. J. (2020). Modeling seasonal water yield for landscape management: Applications in Peru and Myanmar. Journal of Environmental Management, 270, 110792.
Example¶
import org.hortonmachine.modules.SWYRechargeRouting
// the folder with the gura folder of the sample data: change it to yours
var folder = "/data/"
var gura = folder + "gura/"
var monthly = gura + "monthly/"
// the recharge of the year, from the rasters of the 12 months, found by their name prefix
var recharge = new SWYRechargeRouting()
recharge.inFlowdirections = gura + "drain.tif"
recharge.inPrecipitationFolder = monthly
recharge.pPrecipitationPrefix = "prcp_"
recharge.inQuickflowFolder = monthly
recharge.pQuickflowPrefix = "qf_"
recharge.inPetFolder = monthly
recharge.pPetPrefix = "pet_"
// as in InVEST: alpha 1/12 for every month (the default), beta and gamma 1
recharge.pBeta = 1.0
recharge.pGamma = 1.0
recharge.outRecharge = gura + "l.tif"
recharge.outAvailableRecharge = gura + "l_avail.tif"
recharge.outUpslopeSubsidy = gura + "l_sum_avail.tif"
recharge.outAet = gura + "aet.tif"
recharge.process()
The actual evapotranspiration of the year, in mm.¶
The local recharge of the year, in mm: high in the wet west, low in the east, and negative on the streams, which evapotranspire the water from upslope.¶
The values¶
All the maps are depths of water in the year, in mm over the cell, except the upslope subsidy. On the sample data:
the actual evapotranspiration is at most the potential one, and is 1187 mm in the middle of the cells, 1108 mm on average, 71% of the precipitation. It is about 520 mm on the urban areas and the roads, whose crop coefficient of 0.4 limits it, and up to about 1440 mm on the cells with the highest potential evapotranspiration. On the cells of the network it is about 710 mm on average, all taken from the upslope water, since there all the precipitation is quickflow;
the local recharge is the precipitation less the quickflow and the actual evapotranspiration. It goes from about 150 mm in the year on average in the lower east of the basin to 700 mm above 2800 m, and up to about 1400 mm where little is evapotranspired. It is negative, down to about -1400 mm, on the 8979 cells of the network, where it is minus their evapotranspiration, and on about 6900 other cells that evapotranspire more than their own water with the water from upslope: most are coffee, with a crop coefficient of 1.05, in the drier east, and some are open water. Over the basin it is 372 mm, 24% of the precipitation;
the available recharge is the recharge times γ, where it is positive: with γ = 1, as in the example, it is the same as the recharge;
the upslope subsidy \(L_{sum.avail}\) is not a depth of water that reaches the cell. It is the mean, over the cells that drain into it, of their available recharge plus their own upslope subsidy: along a flow path it adds up the recharge of the cells upslope, so it grows downslope, to about 870 mm in the middle and up to 18000 mm on the cells with long flow paths upslope. Of it, only the fraction α β is used in each month, and the evapotranspiration remains at most the potential one: large values only mean that the cell is never short of water.
The recharge is the water left to the ground in a mean year, not the recharge of an aquifer measured in a well: it includes the water that flows in the soil to the streams in a few days or weeks. For the comparison with the measured evapotranspiration of a forest catchment of Kenya, see how the values compare with measures.