CFGridMapping | R Documentation |
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.
ncdfCF::CFObject
-> CFGridMapping
friendlyClassName
(read-only) A nice description of the class.
ncdfCF::CFObject$append_attribute()
ncdfCF::CFObject$attribute()
ncdfCF::CFObject$delete_attribute()
ncdfCF::CFObject$detach()
ncdfCF::CFObject$dim()
ncdfCF::CFObject$print_attributes()
ncdfCF::CFObject$set_attribute()
ncdfCF::CFObject$update_coordinates_attribute()
ncdfCF::CFObject$write_attributes()
new()
Create a new instance of this class.
Note that when a new grid mapping object is created (as opposed to
reading from a netCDF resource), only the grid_mapping_name
attribute
will be set. The caller must set all other parameters through their
respective attributes, following the CF Metadata Conventions.
CFGridMapping$new(var, grid_mapping_name)
var
When creating a new grid mapping object, the name of the object. When reading from a netCDF resource, the netCDF variable that describes this instance.
grid_mapping_name
Optional. When creating a new grid mapping
object, the formal name of the grid mapping, as specified in the CF
Metadata Conventions. This value is stored in the new object as
attribute "grid_mapping_name". Ignored when argument var
is a NC
object.
print()
Prints a summary of the grid mapping to the console.
CFGridMapping$print()
brief()
Retrieve a 1-row data.frame
with some information on this
grid mapping.
CFGridMapping$brief()
wkt2()
Retrieve the CRS string for a specific variable.
CFGridMapping$wkt2(axis_info)
axis_info
A list with information that describes the axes of the
CFVariable
instance to describe.
A character string with the CRS in WKT2 format.
write()
Write the CRS object to a netCDF file.
CFGridMapping$write(h)
h
Handle to the netCDF file opened for writing.
Self, invisibly.
clone()
The objects of this class are cloneable with this method.
CFGridMapping$clone(deep = FALSE)
deep
Whether to make a deep clone.
https://docs.ogc.org/is/18-010r11/18-010r11.pdf https://cfconventions.org/cf-conventions/cf-conventions.html#appendix-grid-mappings
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.