Open raybellwaves opened 4 years ago
Or the user does it as you show here. Does map_blocks make sense here? Probably not, because mask blocks would do this calc on the block level but all blocks are needed for this calculation. therefore the ValueError makes sense. I think we shouldnt cover this.
http://xarray.pydata.org/en/latest/generated/xarray.apply_ufunc.html now allows rechunk. maybe we add this as a global config that the user can decide.
xr.apply_unfunc
expects a core dimension to be a single dask array chunk.The workaround is:
This could be handled in xskillscore.