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 ?

Alex Leith
13.6k33 silver badges71 bronze badges
asked Apr 1, 2021 at 12:57
3
  • Is your question about: how to index new data in the datacube? Commented Apr 13, 2021 at 8:13
  • 1
    @AndreaMassetti, Yes 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.

answered May 21, 2021 at 23:16

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.