cf.NetCDF4Array.get_calendar

NetCDF4Array.get_calendar(default=ValueError())[source]

The calendar of the array.

If the calendar is None then the CF default calendar is assumed, if applicable.

Added in version (cfdm): 1.10.0.1

Parameters:
default: optional

Return the value of the default parameter if the calendar has not been set. If set to an Exception instance then it will be raised instead.

Returns:
str or None

The calendar value.