cf.Count.month_lengths

Count.month_lengths

The month_lengths CF property.

Specifies the length of each month in a non-leap year for a user defined calendar. See http://cfconventions.org/latest.html for details.

Stored as a tuple but may be set as any array-like object.

Examples

>>> f.month_lengths = numpy.array(
...     [34, 31, 32, 30, 29, 27, 28, 28, 28, 32, 32, 34])
>>> f.month_lengths
(34, 31, 32, 30, 29, 27, 28, 28, 28, 32, 32, 34)
>>> del f.month_lengths
>>> f.set_property('month_lengths',
...                [34, 31, 32, 30, 29, 27, 28, 28, 28, 32, 32, 34])
>>> f.has_property('month_lengths')
True
>>> f.get_property('month_lengths')
(34, 31, 32, 30, 29, 27, 28, 28, 28, 32, 32, 34)
>>> f.del_property('month_lengths')