BII | R Documentation |
calculates the area weighted biodiversity intactness index (BII) out of a MAgPIE gdx file
BII(
gdx,
file = NULL,
level = "glo",
mode = "auto",
landClass = "sum",
spatialWeight = NULL,
adjusted = FALSE,
bii_coeff = NULL,
side_layers = NULL,
dir = "."
)
gdx |
GDX file |
file |
a file name the output should be written to using write.magpie |
level |
level of regional aggregation; "cell" (magpie cluster level), "reg" (regional), "glo" (global), "regglo" (regional and global), "iso" (country level), "grid" (0.5 degree grid cell level). |
mode |
"auto" (default), "from_grid", "MAgPIE" or "postprocessing".
|
landClass |
"all" returns average BII values for all land classes of ov_bv, "sum" returns the weighted BII over all land classes of ov44_bv_weighted. |
spatialWeight |
Spatial weight for aggregating BII values. Only relevant if mode is "from_grid", adjusted is TRUE, or level is either "grid" or "iso". |
adjusted |
if "TRUE", function returns adjusted BII values (results have been adjusted for primary and secondary other land). |
bii_coeff |
file containing BII coefficients. Only needed for mode = "postprocessing". NULL tries to automatically detected the file. |
side_layers |
file containing LUH2 side layers. NULL tries to automatically detected the file. |
dir |
for gridded outputs: magpie output directory which contains a mapping file (rds) for disaggregation |
Calculates global, regional and cluster-level biodiversity intactness index (BII)
Biodiversity intactness index (unitless)
Patrick v. Jeetze, Florian Humpenoeder, Felicitas Beier
## Not run:
x <- BII(gdx)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.