You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when xarray.coding.times.encode_cf_datetime() is called, it always casts the input to a NumPy array. This is not what I would expect when the input is a dask array. I am wondering if we could make this operation lazy when the input is a dask array?
Thanks @andersy005 for the clear example. Looking at encode_cf_datetime(), it seems like we didn't intend to make this function dask friendly. Perhaps @spencerkclark or @shoyer have thoughts on the prospects of making this work. My guess is that this will be pretty tricky, mostly because in some cases, we infer the units/dtype/etc on the fly.
Currently, when
xarray.coding.times.encode_cf_datetime()
is called, it always casts the input to a NumPy array. This is not what I would expect when the input is a dask array. I am wondering if we could make this operation lazy when the input is a dask array?xarray/xarray/coding/times.py
Lines 352 to 354 in 01462d6
Cc @jhamman
The text was updated successfully, but these errors were encountered: