CFGridMapping {ncdfCF} | R Documentation |
CF grid mapping object
Description
This class contains the details for a coordinate reference system, or grid mapping in CF terms, of a data variable.
When reporting the coordinate reference system to the caller, a character string in WKT2 format is returned, following the OGC standard.
Super class
ncdfCF::CFObject
-> CFGridMapping
Public fields
grid_mapping_name
The name of the grid mapping.
Active bindings
friendlyClassName
(read-only) A nice description of the class.
Methods
Public methods
Inherited methods
Method new()
Create a new instance of this class.
Usage
CFGridMapping$new(nc_var, name)
Arguments
nc_var
The netCDF variable that describes this instance.
name
The formal grid mapping name from the attribute.
Method print()
Prints a summary of the grid mapping to the console.
Usage
CFGridMapping$print()
Method brief()
Retrieve a 1-row data.frame
with some information on this
grid mapping.
Usage
CFGridMapping$brief()
Method wkt2()
Retrieve the CRS string for a specific variable.
Usage
CFGridMapping$wkt2(axis_info)
Arguments
axis_info
A list with information that describes the axes of the
CFVariable
orCFArray
instance to describe.
Returns
A character string with the CRS in WKT2 format.
Method write()
Write the CRS object to a netCDF file.
Usage
CFGridMapping$write(h)
Arguments
h
Handle to the netCDF file opened for writing.
Returns
Self, invisibly.
Method clone()
The objects of this class are cloneable with this method.
Usage
CFGridMapping$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
References
https://docs.ogc.org/is/18-010r11/18-010r11.pdf