Thanks to visit codestin.com
Credit goes to github.com

Skip to content

warning on aligned axis for dask dataframes with zonal_stats #774

@giovp

Description

@giovp

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:

stats_df = dd.concat([dd.from_dask_array(s) for s in stats_dict.values()], axis=1)

assuming that such warning could be ignored in this situation, an argument can be passed to ignore this warning (raised in dask/dask#6175 and added in dask/dask#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

Expected behavior
No warning raised

version
xrspatial==0.3.5

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

🆕 New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions