cf.DomainAncillary.month_lengths¶
-
DomainAncillary.
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.setprop('month_lengths', [34, 31, 32, 30, 29, 27, 28, 28, 28, 32, 32, 34]) >>> f.getprop('month_lengths') (34, 31, 32, 30, 29, 27, 28, 28, 28, 32, 32, 34) >>> f.delprop('month_lengths')