View source: R/waterStressRatio.R
waterStressRatio | R Documentation |
calculates water stress ratio from water availability and water demand in MAgPIE. Water stress ratio is the ratio of water withdrawals (in the growing period) to water availability (in the growing period)
waterStressRatio(gdx, file = NULL, level = "cell", dir = ".")
gdx |
GDX file |
file |
a file name the output should be written to using write.magpie |
level |
spatial level of aggregation: "cell" (cellular), "reg" (regional), "glo" (global), "regglo" (regional and global) or "grid" (grid cell) |
dir |
for gridded outputs: magpie output directory which contains a mapping file (rds) for disaggregation |
MAgPIE object
Felicitas Beier
## Not run:
x <- waterStressRatio(gdx)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.