A dedicated data class for an LPJmL input or output grid. LPJmLGridData serves the spatial reference for any LPJmLData objects and matches its spatial dimensions ("cell" or "lon", "lat") when attached as an grid attribute to it.\ LPJmLGridData holds the information which longitude and latitude correspond to each cell center assuming WGS84 as the coordinate reference system or the corresponding cell index when the data comes with longitude and latitude dimension. As in LPJmLData the data array can be accessed via $data, the meta data via $meta.

Super class

lpjmlkit::LPJmLData -> LPJmLGridData

Methods

Inherited methods


Method add_grid()

! Not allowed to add a grid to an LPJmLGridData object.

Usage

LPJmLGridData$add_grid(...)

Arguments

...

See add_grid().


Method plot()

! No plot function available for LPJmLGridData object. Use as_raster() or as_terra() (and plot()) to visualize the grid.

Usage

LPJmLGridData$plot(...)

Arguments

...

See plot().


Method new()

!Internal method only to be used for package development!

Usage

LPJmLGridData$new(lpjml_data)

Arguments

lpjml_data

LPJmLData object with variable "grid", "cellid" or "LPJGRID"


Method print()

Method to print the LPJmLGridData.
See also print

Usage

LPJmLGridData$print()


Method clone()

The objects of this class are cloneable with this method.

Usage

LPJmLGridData$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.