cf.NetCDFArray.get_calendar

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

The calendar of the array.

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

New 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.