CFAxisCharacter | R Documentation |
This class represent CF axes that use categorical character labels as coordinate values. Note that this is different from a CFLabel, which is associated with an axis but not an axis itself.
This is an extension to the CF Metadata Conventions. As per CF, axes are required to have numerical values, which is relaxed here.
ncdfCF::CFObject
-> ncdfCF::CFAxis
-> CFAxisCharacter
friendlyClassName
(read-only) A nice description of the class.
dimnames
(read-only) The coordinates of the axis as a character vector.
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$peek()
ncdfCF::CFAxis$print()
ncdfCF::CFAxis$shard()
ncdfCF::CFAxis$subset()
ncdfCF::CFAxis$time()
ncdfCF::CFAxis$write()
new()
Create a new instance of this class.
CFAxisCharacter$new(grp, nc_var, nc_dim, orientation, 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.
orientation
The orientation (X
, Y
, Z
, or T
) or ""
if
different or unknown.
values
The character coordinates of this axis.
brief()
Some details of the axis.
CFAxisCharacter$brief()
A 1-row data.frame
with some details of the axis.
indexOf()
Find indices in the axis domain. Given a vector of character
strings x
, find their indices in the values of the axis.
CFAxisCharacter$indexOf(x, method = "constant")
x
Vector of character strings to find axis indices for.
method
Ignored.
Numeric vector of the same length as x
. Values of x
outside of
the range of the values in the axis are returned as NA
.
clone()
The objects of this class are cloneable with this method.
CFAxisCharacter$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.