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 ?
-
Is your question about: how to index new data in the datacube?Andrea Massetti– Andrea Massetti2021年04月13日 08:13:57 +00:00Commented Apr 13, 2021 at 8:13
-
1@AndreaMassetti, Yeschetan– chetan2021年04月19日 05:50:58 +00:00Commented Apr 19, 2021 at 5:50
-
1What is not clear from the documentation? Have you tried the use cases provided in the docs but you get stuck somewhere?Andrea Massetti– Andrea Massetti2021年04月20日 12:43:52 +00:00Commented Apr 20, 2021 at 12:43
1 Answer 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.