1

I am trying to create a Data Cube with Open Data Cube for my Bachelor's Thesis. In the Python-Files from Open Data Cube to prepare the data for indexing there is a XML-File with metadata needed: https://github.com/opendatacube/datacube-dataset-config/blob/master/agdcv2-ingest/prepare_scripts/landsat_collection/usgs_ls_ard_prepare.py

But when I download Landsat 8 data from USGS there is only a txt-File with metadata and no xml-File. Where do I get this xml-File?

1

You can find the XML as a separated file if you use Landsat ARD (if you wonder why I mentioned ARD it's because of the file name usgs_ls_ard_prepare.py). ARD only covers the conterminous United States (CONUS), Alaska and Hawaii only (from https://www.usgs.gov/land-resources/nli/landsat/us-landsat-analysis-ready-data?qt-science_support_page_related_con=0#qt-science_support_page_related_con) You can get at least the file from Earth Explorer in the "Download Options" when you search "US Landsat 4-8 ARD", look at one image "Download Options" and you find the XML in the "Metadata (114.0 KB)" button in below screenshot.

enter image description here

For other Landsat data sources, the XML is not provided as they use firstly what they call MTL file format (a text based file describing metadata associated with the data)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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