cf.DimensionCoordinate.asreftime

DimensionCoordinate.asreftime()[source]

Change the internal representation of data array elements from datatime-like objects to numeric reference times.

The change is carried out in place.

If the calendar has not been set then the CF default calendar will be used and the units will be updated accordingly.

If the internal representations are already numeric reference times then no change occurs.

See also

asdatetime

Returns:None
Examples:
>>> f.asreftime()

Previous topic

cf.DimensionCoordinate.asdimension

Next topic

cf.DimensionCoordinate.binary_mask

This Page