CFLabel | R Documentation |
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(grp, nc_var, nc_dim, values)
grp
The group that contains the netCDF variable.
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.
print()
Prints a summary of the labels to the console.
CFLabel$print(...)
...
Arguments passed on to other functions. Of particular interest
is width =
to indicate a maximum width of attribute columns.
self
, invisibly.
subset()
Retrieve a subset of the labels.
CFLabel$subset(grp, rng)
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.
write()
Write the labels to a netCDF file, including its attributes.
CFLabel$write(nc)
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.