Relative Content

Tag Archive for pythondaskpython-xarrayrasterio

Exclude entire blocks from computation in Dask/Xarray

I am processing a large dataset of non-rectangular satellite imagery with xarray/dask. I know in advance from the footprint of the imagery, that large parts are no-data (since the image does not have a rectangular shape as xarray requires). That means I end up with an xarray that has a lot of chunks where I know that they are all NaN but xarray doesn’t know. Is there a way to exclude these chunks from computation?