Parametric formula term for a vertical CF axis object
Source:R/CFVerticalParametricTerm.R
CFVerticalParametricTerm.RdThis class represents a formula term for a parametric vertical axis.
Super classes
ncdfCF::CFObject -> ncdfCF::CFData -> ncdfCF::CFVariable -> CFVerticalParametricTerm
Active bindings
has_dataLogical flag that indicates of the instance has an associated data variable. If not, the instance will report
0as its data.values(read-only) The values of the parametric term. Depending on the definition of the term, this could be a large array or a simple scalar. Specifically, if the term is defined but no data is included in the netCDF resource, this method will return
0, as per the CF Metadata Conventions.
Methods
Inherited methods
ncdfCF::CFObject$append_attribute()ncdfCF::CFObject$attribute()ncdfCF::CFObject$attributes_identical()ncdfCF::CFObject$delete_attribute()ncdfCF::CFObject$print_attributes()ncdfCF::CFObject$set_attribute()ncdfCF::CFObject$write_attributes()ncdfCF::CFData$dim()ncdfCF::CFVariable$add_ancillary_variable()ncdfCF::CFVariable$add_auxiliary_coordinate()ncdfCF::CFVariable$add_cell_measure()ncdfCF::CFVariable$append()ncdfCF::CFVariable$array()ncdfCF::CFVariable$attach_to_group()ncdfCF::CFVariable$brief()ncdfCF::CFVariable$data.table()ncdfCF::CFVariable$detach()ncdfCF::CFVariable$is_coincident()ncdfCF::CFVariable$peek()ncdfCF::CFVariable$profile()ncdfCF::CFVariable$raw()ncdfCF::CFVariable$save()ncdfCF::CFVariable$shard()ncdfCF::CFVariable$summarise()ncdfCF::CFVariable$terra()ncdfCF::CFVariable$time()ncdfCF::CFVariable$write()
Method new()
Create an instance of this class.
Usage
CFVerticalParametricTerm$new(
var,
axes,
values = values,
start = NA,
count = NA,
attributes = data.frame()
)Arguments
varThe NCVariable instance upon which this CF variable is based when read from a netCDF resource, or the name for the new CF variable to be created.
axesA
listof CFAxis descendant instances that describe the axes of the data object.valuesOptional. The values of the variable in an array.
startOptional. Vector of indices where to start reading data along the dimensions of the array on file. The vector must be
NAto read all data, otherwise it must have agree with the dimensions of the array on file. Ignored when argumentvaris not anNCVariableinstance.countOptional. Vector of number of elements to read along each dimension of the array on file. The vector must be
NAto read to the end of each dimension, otherwise its value must agree with the correspondingstartvalue and the dimension of the array on file. Ignored when argumentvaris not anNCVariableinstance.attributesOptional. A
data.framewith the attributes of the object. When argumentvaris anNCVariableinstance and this argument is an emptydata.frame(default), arguments will be read from the resource.
Method print()
Prints a summary of the parametric formula term to the console.
Method subset()
Subset the indices to read a smaller portion of the data from the netCDF file. The passed indices should be named after the axes that they refer to. There may be more indices than axes and they may be in a different order than the axes of the term.
Usage
CFVerticalParametricTerm$subset(
original_axis_names,
new_axes,
start,
count,
aux = NULL,
ZT_dim = NULL
)Arguments
original_axis_namesCharacter vector of names of the axes prior to a modifying operation in the owning data variable.
new_axesList of
CFAxisinstances to use for the subsetting.startThe indices to start reading data from the file, as an integer vector at least as long as the number of axis for the term.
countThe number of values to read from the file, as an integer vector at least as long as the number of axis for the term.
auxOptional. List with the parameters for an auxiliary grid transformation. Default is
NULL.ZT_dimOptional. Dimensions of the non-grid axes when an auxiliary grid transformation is specified.