opendatacube / odc-stac

Load STAC items into xarray Datasets.
Apache License 2.0
140 stars 20 forks source link

Stac load with non-native CRS returns empty image in some cases #133

Open Kirill888 opened 11 months ago

Kirill888 commented 11 months ago

Source data:

Desired output:

Loading same source file with projection change alone and without cropping works fine

Kirill888 commented 11 months ago

Culprit appears to be here:

https://github.com/opendatacube/odc-stac/blob/138846f999ae7caecfbb1dc03a4b4501aca0d394/odc/stac/_load.py#L859-L862

Almost global footprint of the source dataset doesn't project well into UTM.