reportLandUseForSEALS: reportLandUseForSEALS

View source: R/reportLandUseForSEALS.R

reportLandUseForSEALSR Documentation

reportLandUseForSEALS

Description

Writes MAgPIE land use projections to a specific NetCDF that can be read by the Spatial Economic Allocation Landscape Simulator (SEALS) model for generating high resolution land use maps.

Usage

reportLandUseForSEALS(
  magCellLand = "cell.land_0.5_share.mz",
  outFile = "cell.land_0.5_SEALS.nc",
  scenName = NULL,
  dir = ".",
  selectyears = c(2020, 2030, 2050)
)

Arguments

magCellLand

Disaggregated land use (grid-cell land area share) as magclass object or file (.mz) from a MAgPIE run.

outFile

a file name the output should be written to using ncdf4::nc_create and ncdf4::ncvar_put

scenName

Optional scenario name

dir

output directory which contains cellular magpie output

selectyears

Numeric vector of years to provide data for.

Value

Proportions of different land use classes per grid sell in a NetCDF format.

Author(s)

Patrick v. Jeetze

Examples

## Not run: 
x <- reportLandUseForSEALS(
  magCellLand = "cell.land_0.5_share.mz",
  outFile = "cell.land_0.5_SEALS.nc",
  selectyears = c(2020, 2030, 2050)
)

## End(Not run)


pik-piam/magpie4 documentation built on April 27, 2024, 2:12 p.m.