CFAxisLongitude {ncdfCF} | R Documentation |
Longitude CF axis object
Description
This class represents a longitude axis. Its values are numeric. This class is used for axes that represent longitudes. This class adds some logic that is specific to longitudes, such as their range, orientation and their meaning. (In the near future, it will also support selecting data that crosses the 0-360 degree boundary.)
Super classes
ncdfCF::CFObject
-> ncdfCF::CFAxis
-> ncdfCF::CFAxisNumeric
-> CFAxisLongitude
Active bindings
friendlyClassName
(read-only) A nice description of the class.
Methods
Public methods
Inherited methods
ncdfCF::CFObject$add_coordinates()
ncdfCF::CFObject$append_attribute()
ncdfCF::CFObject$attribute()
ncdfCF::CFObject$delete_attribute()
ncdfCF::CFObject$print_attributes()
ncdfCF::CFObject$set_attribute()
ncdfCF::CFObject$write_attributes()
ncdfCF::CFAxis$can_append()
ncdfCF::CFAxis$peek()
ncdfCF::CFAxis$shard()
ncdfCF::CFAxis$time()
ncdfCF::CFAxis$write()
ncdfCF::CFAxisNumeric$append()
ncdfCF::CFAxisNumeric$brief()
ncdfCF::CFAxisNumeric$identical()
ncdfCF::CFAxisNumeric$indexOf()
ncdfCF::CFAxisNumeric$print()
ncdfCF::CFAxisNumeric$range()
Method new()
Create a new instance of this class.
Creating a new longitude axis is more easily done with the
makeLongitudeAxis()
function.
Usage
CFAxisLongitude$new(nc_var, nc_dim, values)
Arguments
nc_var
The netCDF variable that describes this instance.
nc_dim
The netCDF dimension that describes the dimensionality.
values
The coordinates of this axis.
Method subset()
Return an axis spanning a smaller coordinate range. This
method returns an axis which spans the range of indices given by the
rng
argument.
Usage
CFAxisLongitude$subset(group, rng = NULL)
Arguments
group
The group to create the new axis in.
rng
The range of values from this axis to include in the returned axis.
Returns
A CFAxisLongitude
instance covering the indicated range of
indices. If the value of the argument is NULL
, return the entire
axis.
Method clone()
The objects of this class are cloneable with this method.
Usage
CFAxisLongitude$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.