CFVerticalParametricTerm | R Documentation |
This class represents a formula term for a parametric vertical axis.
ncdfCF::CFObject
-> ncdfCF::CFVariable
-> CFVerticalParametricTerm
has_data
Logical flag that indicates of the instance has an
associated data variable. If not, the instance will report 0
as 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.
ncdfCF::CFObject$append_attribute()
ncdfCF::CFObject$attribute()
ncdfCF::CFObject$delete_attribute()
ncdfCF::CFObject$dim()
ncdfCF::CFObject$print_attributes()
ncdfCF::CFObject$set_attribute()
ncdfCF::CFObject$update_coordinates_attribute()
ncdfCF::CFObject$write_attributes()
ncdfCF::CFVariable$add_auxiliary_coordinate()
ncdfCF::CFVariable$add_cell_measure()
ncdfCF::CFVariable$append()
ncdfCF::CFVariable$array()
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()
new()
Create an instance of this class.
CFVerticalParametricTerm$new( var, axes, values = values, start = NA, count = NA, attributes = data.frame() )
var
The 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.
axes
A list
of CFAxis descendant instances that describe the
axes of the data object.
values
Optional. The values of the variable in an array.
start
Optional. Vector of indices where to start reading data
along the dimensions of the array on file. The vector must be NA
to
read all data, otherwise it must have agree with the dimensions of the
array on file. Ignored when argument var
is not an NCVariable
instance.
count
Optional. Vector of number of elements to read along each
dimension of the array on file. The vector must be NA
to read to the
end of each dimension, otherwise its value must agree with the
corresponding start
value and the dimension of the array on file.
Ignored when argument var
is not an NCVariable
instance.
attributes
Optional. A data.frame
with the attributes of the
object. When argument var
is an NCVariable
instance and this
argument is an empty data.frame
(default), arguments will be read
from the resource.
An instance of this class.
print()
Prints a summary of the parametric formula term to the console.
CFVerticalParametricTerm$print(...)
...
Arguments passed on to other functions. Of particular interest
is width =
to indicate a maximum width of attribute columns.
self
, invisibly.
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.
CFVerticalParametricTerm$subset( original_axis_names, new_axes, start, count, aux = NULL, ZT_dim = NULL )
original_axis_names
Character vector of names of the axes prior to a modifying operation in the owning data variable.
new_axes
List of CFAxis
instances to use for the subsetting.
start
The indices to start reading data from the file, as an integer vector at least as long as the number of axis for the term.
count
The number of values to read from the file, as an integer vector at least as long as the number of axis for the term.
aux
Optional. List with the parameters for an auxiliary grid
transformation. Default is NULL
.
ZT_dim
Optional. Dimensions of the non-grid axes when an auxiliary grid transformation is specified.
The new parametric term object.
clone()
The objects of this class are cloneable with this method.
CFVerticalParametricTerm$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.