ResidueBiomass: ResidueBiomass

View source: R/ResidueBiomass.R

ResidueBiomassR Documentation

ResidueBiomass

Description

reads Crop Residue Biomass out of a MAgPIE gdx file

Usage

ResidueBiomass(
  gdx,
  level = "reg",
  dir = ".",
  spamfiledirectory = "",
  products = "kcr",
  product_aggr = FALSE,
  attributes = "dm",
  water_aggr = TRUE,
  plantpart = "both"
)

Arguments

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 or spam) disaggregation

spamfiledirectory

deprecated. please use dir instead

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).

plantpart

both ag or bg

Value

production as MAgPIE object (unit depends on attributes)

Author(s)

Benjamin Leon Bodirsky

See Also

reportProduction, demand

Examples

## Not run: 
x <- production(gdx)

## End(Not run)


pik-piam/magpie4 documentation built on April 22, 2024, 3:34 p.m.