Open giovp opened 1 year ago
Describe the bug A warning on assumption on index aligned is triggered every time zonal_stats is called with a dask array (returning a dask dataframe).
zonal_stats
This is triggered by ( I believe) this concat: https://github.com/makepath/xarray-spatial/blob/60df0490f325cd25ea5e105a218791d2b429e750/xrspatial/zonal.py#L230
assuming that such warning could be ignored in this situation, an argument can be passed to ignore this warning (raised in https://github.com/dask/dask/issues/6175 and added in https://github.com/dask/dask/pull/6210 )
a potential solution would be to allow to pass kwargs to zonal_stats that are ingested by (also)dd.concat. wdyt? happy to submit PR
dd.concat
Expected behavior No warning raised
version xrspatial==0.3.5
xrspatial==0.3.5
@giovp Thank you! @thuydotm let's add a test for this
Is there any progress on resolving this issue? I noticed that the current version still generates the warning.
Describe the bug A warning on assumption on index aligned is triggered every time
zonal_stats
is called with a dask array (returning a dask dataframe).This is triggered by ( I believe) this concat: https://github.com/makepath/xarray-spatial/blob/60df0490f325cd25ea5e105a218791d2b429e750/xrspatial/zonal.py#L230
assuming that such warning could be ignored in this situation, an argument can be passed to ignore this warning (raised in https://github.com/dask/dask/issues/6175 and added in https://github.com/dask/dask/pull/6210 )
a potential solution would be to allow to pass kwargs to
zonal_stats
that are ingested by (also)dd.concat
. wdyt? happy to submit PRExpected behavior No warning raised
version
xrspatial==0.3.5