cf.Field.asreftime

Field.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 default CF calendar will be used and the calendar attribute will be updated accordingly.

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

Returns :None

See also

asdatetime

Examples

>>> f.asreftime()

Previous topic

cf.Field.asdatetime

Next topic

cf.Field.aux

This Page