Open Data Cube – Indexing Data from Microsoft Planetary Computer

open-data-cube

I would like to index into ODC some data from the Sentinel-2 dataset available on Microsoft Planetary Computer (PC).

The main issue is with the PC's requirement of using tokens (SAS), which need to be appended to the URLs exposed by the STAC API, the ones then indexed in ODC.
Those URLs will not have any token attached, resulting in 404 requests when trying to use dc.load().

What is the recommended approach in this case? I have seen support in the odc-stac project, but I understand it doesn't index data in an ODC database, while I would like to have the data indexed.
Is that correct?

Best Answer

Planetary Computer support has been added in ODC through the patch_url parameter in dc.load() - docs - since v1.8.8, and with Dask support since v1.8.9.

Related Question