nc_time_axis.NetCDFTimeConverter

class nc_time_axis.NetCDFTimeConverter(*, interval_multiples=True)

Converter for cftime.datetime data.

Methods

axisinfo(unit, axis)

Returns the AxisInfo for unit.

convert(value, unit, axis)

Converts value, if it is not already a number or sequence of numbers, with cftime.date2num().

default_units(sample_point, axis)

Computes some units for the given data point.

is_numlike(x)

The Matplotlib datalim, autoscaling, locators etc work with scalars which are the units converted to floats given the current unit.

__init__(*, interval_multiples=True)

Methods

__init__(*[, interval_multiples])

axisinfo(unit, axis)

Returns the AxisInfo for unit.

convert(value, unit, axis)

Converts value, if it is not already a number or sequence of numbers, with cftime.date2num().

default_units(sample_point, axis)

Computes some units for the given data point.

is_numlike(x)

The Matplotlib datalim, autoscaling, locators etc work with scalars which are the units converted to floats given the current unit.

Attributes

standard_unit