getReportMAgPIE2LPJmL: getReportMAgPIE2LPJmL

View source: R/getReportMAgPIE2LPJmL.R

getReportMAgPIE2LPJmLR Documentation

getReportMAgPIE2LPJmL

Description

Puts together a report for LPJmL or other biophysical models based on a MAgPIE gdx file

Usage

getReportMAgPIE2LPJmL(
  gdx,
  folder = NULL,
  scenario = NULL,
  filter = c(2, 7),
  dir = ".",
  spamfiledirectory = "",
  ...
)

Arguments

gdx

GDX file

folder

a folder name the output should be written to using write.report. If NULL the report is returned instead as a MAgPIE object.

scenario

Name of the scenario used for the list-structure of a reporting object (x$scenario$MAgPIE). If NULL the report is returned instead as a MAgPIE object.

filter

Modelstat filter. Here you have to set the modelstat values for which results should be used. All values for time steps in which the modelstat is different or for which one of the previous modelstats were different are set to NA.

dir

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

spamfiledirectory

deprecated. please use dir instead

...

additional arguments for write.report. Will only be taken into account if argument "file" is not NULL.

Value

A MAgPIE object containing the report in the case that "file" is NULL.

Author(s)

Benjamin Leon Bodirsky, Florian Humpenoeder

Examples

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

## End(Not run)


pik-piam/magpie4 documentation built on May 7, 2024, 11:13 p.m.