TimesHelper#

class gordias.util.time_period.TimesHelper(time: DimCoord)#

Internal helper class needed for interaction with cftime.

Functions of cftime requires a netCDF4 variable as input, this class wraps an iris cube time variable to get the behaviour of a netCDF4 variable.

Parameters:

time (iris.coords.DimCoord) – A coordinate that is 1D and numeric, representing the time dimension.

times#

Core points array at the core of this coord, which may be a NumPy array or a dask array.

Type:

NDArray | array | None

units#

The S.I unit of the object.

Type:

str

Methods