CFCellMeasure | R Documentation |
This class represents a CF cell measure variable, the object that indicates the area or volume of every grid cell in referencing data variables.
If a cell measure variable is external to the current file, an instance will still be created for it, but the user must link the external file to this instance before it can be used in analysis.
group
The NCGroup that this object is located in.
measure
The measure of this instance. Either "area" or "volume".
name
The name of this instance, which must refer to a NC variable or an external variable.
new()
Create an instance of this class.
CFCellMeasure$new(grp, measure, name = NULL, nc_var = NULL, axes = NULL)
grp
The group that this CF cell measure variable lives in.
measure
The measure of this object. Must be either of "area" or "volume".
name
The name of the cell measure variable. May be omitted if
argument nc_var
is specified.
nc_var
The netCDF variable that defines this CF cell measure
object. NULL
for an external variable.
axes
List of CFAxis instances that describe the dimensions of
the cell measure object. NULL
for an external variable.
An instance of this class.
print()
Print a summary of the cell measure variable to the console.
CFCellMeasure$print(...)
...
Arguments passed on to other functions. Of particular interest
is width =
to indicate a maximum width of attribute columns.
data()
Retrieve the values of the cell measure variable.
CFCellMeasure$data()
The values of the cell measure as a CFArray instance.
register()
Register a CFVariable which is using this cell measure variable. A check is performed on the compatibility between the data variable and this cell measure variable.
CFCellMeasure$register(var)
var
A CFVariable
instance to link to this instance.
Self, invisibly.
link()
Link the cell measure variable to an external netCDF resource. The resource will be opened and the appropriate data variable will be linked to this instance. If the axes or other properties of the external resource are not compatible with this instance, an error will be raised.
CFCellMeasure$link(resource)
resource
The name of the netCDF resource to open, either a local file name or a remote URI.
Self, invisibly.
clone()
The objects of this class are cloneable with this method.
CFCellMeasure$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.