1

The cube in a box comes with an indexing script for Sentinel-2 data, as below

lon_center = XX.YY
lat_center = XZ.XY
buffer = 0.5

bbox = [lon_center - buffer, lat_center - buffer, lon_center + buffer, lat_center + buffer]

start_date = '2019-02-01'
end_date = '2020-02-28'

collections = ['sentinel-s2-l2a-cogs']

config = {
    'collections': collections,
    'bbox': bbox,
    'datetime': f"{start_date}/{end_date}"
}

STAC_API_URL = 'https://explorer.sandbox.dea.ga.gov.au/stac/'

os.environ['STAC_API_URL'] = STAC_API_URL 

How to index the Landsat data and other datasets such as MODIS ?

3
  • Is your question about: how to index new data in the datacube? Commented Apr 13, 2021 at 8:13
  • 1
    @AndreaMassetti, Yes
    – chetan
    Commented Apr 19, 2021 at 5:50
  • 1
    What is not clear from the documentation? Have you tried the use cases provided in the docs but you get stuck somewhere? Commented Apr 20, 2021 at 12:43

1 Answer 1

1

Where are you getting Landsat data from?

Once you have a source of data, you need to have the following things:

  • A product definition, which defines what each dataset metadata document should look like
  • A dataset metadata document, one for each scene, either created in memory or as a file.

To do the above, you can read through documentation or check out some examples.

For the Cube in a Box, I would love to be able to index off the USGS STAC API, but this requires some development work to achieve it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.