opendatacube / odc-tools

ODC features that DEA is experimenting with or prototyping with the intention of being integrated into odc-core in the future
Apache License 2.0
62 stars 33 forks source link

Refactor STAC -> eo3 to use odc-stac implementation #615

Open jmettes opened 2 months ago

jmettes commented 2 months ago

At the moment STAC->eo3 is handled in here: https://github.com/opendatacube/odc-tools/blob/develop/apps/dc_tools/odc/apps/dc_tools/_stac.py

We should use odc-stac's implementation instead: https://github.com/opendatacube/odc-stac/blob/e7aa2e47b41ffad05b0c4a0b59f243b2709611f2/odc/stac/eo3/_eo3converter.py


For reference, eo3->STAC is handled in eo-datasets: https://github.com/opendatacube/eo-datasets/blob/develop/eodatasets3/stac.py https://github.com/opendatacube/eo-datasets/blob/develop/eodatasets3/scripts/tostac.py

Would be good to have both eo3->stac and stac->eo3 directions documented somewhere