open-data-cube – How to Fix Error While Indexing Sentinel 2 Data on Open Data Cube

indexingopen-data-cube

If I have sentinel 2 data:

  • which .py file do I have to use to create dataset?
  • which .yaml file do I have to use for product?

I took file from these 3 providers (https://earthexplorer.usgs.gov/ , https://glovis.usgs.gov/app and https://scihub.copernicus.eu/dhus/#/home); then, I used "s2peps_prepare.py" because is the only one that worked and I added all of the products that I found. My problem was that when I executed "datacube dataset add" the result was "ERROR No matching Product find for dataset eed8……".

enter image description here

Could someone help me to find a solution for Sentinel 2 data?

Best Answer

For Sentinel-2 indexing into the Open Data Cube, I recommend using the Element-84 maintained Sentinel-2 COGs, which are available for free from S3.

There's some documentation here on how to index the data.

In brief:

pip install --extra-index-url="https://packages.dea.ga.gov.au" odc_apps_dc_tools

stac-to-dc \
--catalog-href='https://earth-search.aws.element84.com/v0/' \
--bbox='25,20,35,30' \
--collections='sentinel-s2-l2a-cogs' \
--datetime='2020-01-01/2020-03-31'
Related Question