ResidueUsage | R Documentation |
reads Crop Residue Usage out of a MAgPIE gdx file
ResidueUsage(
gdx,
level = "reg",
dir = ".",
products = "kcr",
product_aggr = FALSE,
attributes = "dm",
water_aggr = TRUE,
spamfiledirectory = ""
)
gdx |
GDX file |
level |
Level of regional aggregation; "reg" (regional), "glo" (global), "regglo" (regional and global) or any other aggregation level defined in superAggregate |
dir |
for gridded outputs: magpie output directory which contains a mapping file (rds) for disaggregation |
products |
Selection of products (either by naming products, e.g. "tece", or naming a set,e.g."kcr") |
product_aggr |
aggregate over products or not. Usually boolean, but here also the value "kres" is allowed, which provides kcr aggregated to kres |
attributes |
dry matter: Mt ("dm"), gross energy: PJ ("ge"), reactive nitrogen: Mt ("nr"), phosphor: Mt ("p"), potash: Mt ("k"), wet matter: Mt ("wm"). Can also be a vector. |
water_aggr |
aggregate irrigated and non-irriagted production or not (boolean). |
spamfiledirectory |
deprecated. please use |
production as MAgPIE object (unit depends on attributes)
Kristine Karstens, Michael Crawford
ResidueBiomass
## Not run:
x <- ResidueUsage(gdx)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.