This class represent CF labels, i.e. an NC variable of character type that provides a textual label for a discrete or general numeric axis. See also CFAxisCharacter, which is an axis with character labels.
ncdfCF::CFObject
-> CFLabel
NCdim
The NCDimension that stores the netCDF dimension details.
friendlyClassName
(read-only) A nice description of the class.
coordinates
(read-only) The label set as a vector.
length
(read-only) The number of labels in the set.
dimid
(read-only) The netCDF dimension id of this label set.
new()
Create a new instance of this class.
CFLabel$new(nc_var, nc_dim, values)
nc_var
The netCDF variable that describes this instance.
nc_dim
The netCDF dimension that describes the dimensionality.
values
Character vector of the label values.
...
Arguments passed on to other functions. Of particular interest
is width =
to indicate a maximum width of attribute columns.
self
, invisibly.
grp
The group to create the new label object in.
rng
The range of indices to retrieve.
A CFLabel
instance, or NULL
if the rng
values are invalid.
nc
The handle of the netCDF file opened for writing or a group in
the netCDF file. If NULL
, write to the file or group where the labels
were read from (the file must have been opened for writing). If not
NULL
, the handle to a netCDF file or a group therein.
Self, invisibly.
clone()
The objects of this class are cloneable with this method.
CFLabel$clone(deep = FALSE)
deep
Whether to make a deep clone.