Open kripnerl opened 2 years ago
.load() is not a satisfactory answer since it loads the whole array in memory, which defeats parts of the benefits of using dask.
It should be pretty easy to add additional kwargs for apply_ufunc.
Also, it would be possible to use is_duck_dask_array
and call apply_ufunc
considerably.
When using
xrscipy
is using default calling ofapply_ufunc
withdask="forbidden"
. This disallows using the package withdask
arrays what is needed for example when usingpreprocess
option inopen_mfdataset
.Not sure whether this is a design decision; however, would it be possible to pass some
kwargs
for xrscipy internals?On the other hand, adding
.load()
in thepreprocess
function resolves this issue.Any opinion @smartass101, @fujiisoup ?
Thank you, Lukas
Example
Error