gjoseph92 / stackstac

Turn a STAC catalog into a dask-based xarray
https://stackstac.readthedocs.io
MIT License
238 stars 49 forks source link

Fix error when no items overlap with given bounds #188

Closed gjoseph92 closed 1 year ago

gjoseph92 commented 1 year ago

If you specify bounds=, and a STAC item doesn't overlap with those bounds, we don't bother processing it. However, no items overlap and we skip all of them, we weren't figuring out other spatial parameters like resolution. This led to a TypeError at the end.

Closes https://github.com/gjoseph92/stackstac/issues/187