makeAxis {ncdfCF} | R Documentation |
Create an axis
Description
With this method you can create an axis to use with new CFArray instances.
Depending on the orientation
argument and the type of the values
argument
an instance of a class descending from CFAxis will be returned.
Usage
makeAxis(name, group, orientation, values, bounds = NULL)
Arguments
name |
Name of the axis. |
group |
Group to place the axis in. |
orientation |
The orientation of the axis. Must be one of "X", "Y", "Z", or "T" for longitude, latitude, height or depth, and time axes, respectively. For any other axis, indicate an empty string "" |
values |
The coordinate values. In the case of an axis with
|
bounds |
The bounds of the coordinate values, or |
Details
There are several restrictions on the combination of orientation
and
values
arguments. Longitude and latitude axes (orientation
of "X" or "Y")
must have numeric values
. For a time axis (orientation
of "T") the
values
argument must be an instance of CFTime
or CFClimatology
.
Value
An instance of a class descending from CFAxis.
See Also
makeLongitudeAxis()
, makeLatitudeAxis()
, makeTimeAxis()
, makeDiscreteAxis()