Learn R Programming

ncdfCF (version 0.6.1)

CFAxisLatitude: Latitude CF axis object

Description

This class represents a latitude axis. Its values are numeric. This class adds some logic that is specific to latitudes, such as their range, orientation and meaning.

Arguments

Super classes

ncdfCF::CFObject -> ncdfCF::CFAxis -> ncdfCF::CFAxisNumeric -> CFAxisLatitude

Active bindings

friendlyClassName

(read-only) A nice description of the class.

Methods

Inherited methods


Method new()

Create a new instance of this class.

Creating a new latitude axis is more easily done with the makeLatitudeAxis() function.

Usage

CFAxisLatitude$new(nc_var, nc_dim, values)

Arguments

nc_var

The netCDF variable that describes this instance.

nc_dim

The netCDF dimension that describes the dimensionality.

values

The coordinates of this axis.


Method 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.

Usage

CFAxisLatitude$subset(group, rng = NULL)

Arguments

group

The group to create the new axis in.

rng

The range of values from this axis to include in the returned axis.

Returns

A CFAxisLatitude instance covering the indicated range of indices. If the value of the argument is NULL, return the entire axis.


Method clone()

The objects of this class are cloneable with this method.

Usage

CFAxisLatitude$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.