cfdm.core.AuxiliaryCoordinate.get_climatology

AuxiliaryCoordinate.get_climatology(default=ValueError())[source]

Return the climatology setting.

New in version (cfdm): 1.8.9.0

Parameters
default: optional

Return the value of the default parameter if the climatology status has not been set.

If set to an Exception instance then it will be raised instead.

Returns

str

Examples

>>> c = cfdm.core.AuxiliaryCoordinate()
>>> c.set_climatology(True)
>>> c.is_climatology()
True
>>>  c.get_climatology()
True
>>> c.del_climatology()
True
>>> c.is_climatology()
False
>>> print(c.get_climatology(None))
None
>>> print(c.del_climatology(None))
None
>>> c.set_climatology(False)
>>> c.is_climatology()
False