cf.DomainAxis

class cf.DomainAxis(size=None, ncdim=None)[source]

Bases: object

A CF domain axis construct.

A domain axis construct specifies the number of points along an independent axis of the domain. It comprises a positive integer representing the size of the axis. In CF-netCDF it is usually defined either by a netCDF dimension or by a scalar coordinate variable, which implies a domain axis of size one. The field construct’s data array spans the domain axis constructs of the domain, with the optional exception of size one axes, because their presence makes no difference to the order of the elements.

Attributes

Attribute Type Description
size int The size of the domain axis.
ncdim str The name of this domain axis as a netCDF dimension.

Initialization

Parameters:
size: int, optional

The size of the domain axis.

ncdim: str, optional

The name of this domain axis as a netCDF dimension.

Methods

copy Return a deep copy.
equals Return True if two domain axis objects are equal.
inspect Inspect the object for debugging.