land: land

View source: R/land.R

landR Documentation

land

Description

reads land out of a MAgPIE gdx file

Usage

land(
  gdx,
  file = NULL,
  level = "reg",
  types = NULL,
  subcategories = NULL,
  sum = FALSE,
  dir = ".",
  spamfiledirectory = ""
)

Arguments

gdx

GDX file

file

a file name the output should be written to using write.magpie

level

Level of regional aggregation; "reg" (regional), "glo" (global), "regglo" (regional and global) or any other aggregation level defined in gdxAggregate

types

NULL or a vector of strings. If NULL, all land types are used. Options are "crop", "past", "forestry", "primforest","secdforest, "urban", "other", "primother" and "secdother"

subcategories

NULL or vector of strings. If NULL, no subcategories are returned. Meaningful options are "forestry", "secdforest" and "other"

sum

determines whether output should be land-type-specific (FALSE) or aggregated over all types (TRUE).

dir

for gridded outputs: magpie output directory which contains a mapping file (rds or spam) disaggregation

spamfiledirectory

deprecated. please use dir instead

Value

land as MAgPIE object (Mha)

Author(s)

Jan Philipp Dietrich, Florian Humpenoeder, Benjamin Leon Bodirsky, Patrick v. Jeetze

See Also

reportLandUse

Examples

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

## End(Not run)


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