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 = 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

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 Dec. 20, 2024, 1:59 p.m.