This class represents a numeric axis. Its values are numeric. This class is used for axes with numeric values but without further knowledge of their nature. More specific classes descend from this class.
ncdfCF::CFObject -> ncdfCF::CFAxis -> CFAxisNumeric
friendlyClassName(read-only) A nice description of the class.
dimnames(read-only) The coordinates of the axis as a vector. These are by default the values of the axis, but it could also be a set of auxiliary coordinates, if they have been set.
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()
new()Create a new instance of this class.
Creating a new axis is more easily done with the makeAxis() function.
CFAxisNumeric$new(nc_var, nc_dim, orientation, values)nc_varThe netCDF variable that describes this instance.
nc_dimThe netCDF dimension that describes the dimensionality.
orientationThe orientation (X, Y, Z, or T) or "" if
different or unknown.
valuesThe coordinates of this axis.
...Arguments passed on to other functions. Of particular interest
is width = to indicate a maximum width of attribute columns.
self, invisibly.
brief()Some details of the axis.
CFAxisNumeric$brief()A 1-row data.frame with some details of the axis.
A numeric vector with two elements with the minimum and maximum values in the axis, respectively.
indexOf()Retrieve the indices of supplied coordinates on the axis. If the axis has bounds then the supplied coordinates must fall within the bounds to be considered valid.
CFAxisNumeric$indexOf(x, method = "constant", rightmost.closed = TRUE)xA numeric vector of coordinates whose indices into the axis to extract.
methodExtract index values without ("constant", the default) or with ("linear") fractional parts.
rightmost.closedWhether or not to include the upper limit. This
parameter is ignored for this class, effectively it always is TRUE.
A vector giving the indices in x of valid coordinates provided.
Values of x outside of the range of the coordinates in the axis are
returned as NA.
identical()Tests if the axis passed to this method is identical to
self.
CFAxisNumeric$identical(axis)axisThe CFAxisNumeric or sub-class instance to test.
TRUE if the two axes are identical, FALSE if not.
append()Append a vector of values at the end of the current values of the axis.
CFAxisNumeric$append(from)fromAn instance of CFAxisNumeric or any of its descendants
whose values to append to the values of self.
A new CFAxisNumeric or descendant instance with values from
self and the from axis appended.
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.
CFAxisNumeric$subset(group, rng = NULL)groupThe group to create the new axis in.
rngThe range of indices whose values from this axis to include in the returned axis.
A CFAxisNumeric instance covering the indicated range of
indices. If the value of the argument is NULL, return the entire
axis.
clone()The objects of this class are cloneable with this method.
CFAxisNumeric$clone(deep = FALSE)deepWhether to make a deep clone.