# cf.DimensionCoordinate.period¶

DimensionCoordinate.period(*value)[source]

Set the period for cyclic coordinates.

Parameters: value: data-like or None, optional The period. The absolute value is used. {+data-like-scalar} TODO out: cf.Data or None The period prior to the change, or the current period if no value was specified. In either case, None is returned if the period had not been set previously.

Examples:

>>> print(c.period())
None
>>> c.Units
<Units: degrees_east>
>>> print(c.period(360))
None
>>> c.period()
<CF Data(): 360.0 'degrees_east'>
>>> import math