LPJmLGridData | R Documentation |
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
.
lpjmlkit::LPJmLData
-> LPJmLGridData
add_grid()
! Not allowed to add a grid to an LPJmLGridData
object.
LPJmLGridData$add_grid(...)
...
See add_grid()
.
subset()
! Not allowed to use dimension names of LPJmLGridData$data
array directly to subset each dimension to match the supplied vectors.
LPJmLGridData$subset(...)
...
See subset.LPJmLData()
transform()
! Not allowed to transform inner LPJmLGridData$data
array
into another space or time format.
LPJmLGridData$transform(...)
...
See transform()
.
as_raster()
! Not allowed to coerce (convert) an LPJmLGridData
object into a
raster or brick object.
LPJmLGridData$as_raster(...)
...
See as_raster()
.
as_terra()
! Not allowed to coerce (convert) an LPJmLGridData
object into a
rast object.
LPJmLGridData$as_terra(...)
...
See as_terra()
.
.__subset_space__()
! Internal method only to be used for package development.
LPJmLGridData$.__subset_space__(...)
...
See subset()
.
.__transform_space__()
! Internal method only to be used for package development.
LPJmLGridData$.__transform_space__(...)
...
See transform()
.
new()
!Internal method only to be used for package development!
LPJmLGridData$new(lpjml_data)
lpjml_data
LPJmLData object with variable "grid"
or "LPJGRID"
print()
Method to print the LPJmLGridData
.
See also print
LPJmLGridData$print()
clone()
The objects of this class are cloneable with this method.
LPJmLGridData$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.