Expand description
CF time coordinates and time labels for resampling.
decode_cf_time turns numbers with units = "<unit> since <reference>"
into an Arrow Timestamp(Microsecond) without time zone, like xarray. The
microsecond unit covers ±292,000 years. Only the standard, gregorian and
proleptic_gregorian calendars are supported, all as proleptic Gregorian.
Structs§
- CfTime
Units - A parsed CF time unit: microseconds per step and the reference instant.
Enums§
- Date
Part - Valid parts to extract from date/time/timestamp arrays.
- Time
Period - Calendar periods for
floor_timeandFrequency.
Constants§
- CALENDAR
- CF attribute: the calendar of the time values.
- UNITS
- CF attribute: the time unit and reference, for example
days since 1950-01-01.
Functions§
- decode_
cf_ time - Decode a CF time variable into
Timestamp(Microsecond). - encode_
cf_ time - Encode timestamps as
Float64numbers ofunits, the inverse ofdecode_cf_time. Adds theunitsattribute. - floor_
time - Round timestamps down to the start of their
period, like pandasfloor. For regular bins with a reduction, seeresample. - time_
component - A calendar component of timestamps as
Int32, for example the month. - timestamp_
type - The decoded
Timestamptype.