MCPcopy
hub / github.com/pydata/xarray / _encode_cf_datetime_within_map_blocks

Function _encode_cf_datetime_within_map_blocks

xarray/coding/times.py:1192–1201  ·  view source on GitHub ↗
(
    dates: T_DuckArray,  # type: ignore[misc]
    units: str,
    calendar: str,
    dtype: np.dtype,
)

Source from the content-addressed store, hash-verified

1190
1191
1192def _encode_cf_datetime_within_map_blocks(
1193 dates: T_DuckArray, # type: ignore[misc]
1194 units: str,
1195 calendar: str,
1196 dtype: np.dtype,
1197) -> T_DuckArray:
1198 num, *_ = _eagerly_encode_cf_datetime(
1199 dates, units, calendar, dtype, allow_units_modification=False
1200 )
1201 return num
1202
1203
1204def _lazily_encode_cf_datetime(

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…