TemporalRangeTransform
TemporalRangeTransform(
name ,
size ,
start_ns ,
step_ns ,
dtype: Any ,
)
Positions to evenly sampled datetime64/timedelta64 labels and back.
forward is exact int64 (positions are valid, so no overflow); reverse computes through python integers, so a label centuries away yields its true out-of-range position instead of wrapping — but returns float positions, as xarray’s transform contract asks, so its callers accept float rounding; the index’s own selection paths use _exact_positions instead.
Methods
| Name | Description |
|---|---|
| equals | Two transforms are equal when they label every sample alike. |
| forward | Return the labels for the given positions. |
| reverse | Return the (float) positions for the given labels. |