Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

MODIS: Remove XML metadata dependency - #351

Merged
Gustavo Hidalgo (ghidalgo3) merged 2 commits into
mainfrom
user/karthick/_modis_
Dec 18, 2025
Merged

Gustavo Hidalgo (ghidalgo3) merged 2 commits into
mainfrom
user/karthick/_modis_

Conversation

@karthick-rn

Copy link
Copy Markdown
Member

Description

In the past, MODIS dataset includes both .hdf and .xml files as part of onboarding. This changed and .xml file is no longer included. This PR will remove the dependency on the XML. The repo that provides modis package had been updated via stactools-packages/modis#97

Fixes # Modis Ingestion

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Ingestion tested against a product and verified the stac item created successfully for it.

https://planetarycomputer.microsoft.com/explore?c=-134.4503%2C55.3138&z=4.32&v=2&d=modis-43A4-061&m=cql%3A5f2d6e100cd82009329bc4df3e51de56&r=Natural+color&s=false%3A%3A100%3A%3Atrue&sr=desc&ae=0

Checklist:

Please delete options that are not relevant.

  • I have performed a self-review
  • Changelog has been updated
  • Documentation has been updated
  • Unit tests pass locally (./scripts/test)
  • Code is linted and styled (./scripts/format)

@ghidalgo3
Gustavo Hidalgo (ghidalgo3) merged commit 33e4d2e into main Dec 18, 2025
5 of 6 checks passed
@ghidalgo3
Gustavo Hidalgo (ghidalgo3) deleted the user/karthick/_modis_ branch December 18, 2025 17:08
DerekTan1 added a commit that referenced this pull request Oct 15, 2026
Since #351 moved to stactools-modis 8854ceb, items carry no projection:
the new stactools builder only reads projection from COGs passed to it,
and this collection attaches COGs afterwards with add_cogs/add_cog_assets.

Read the projection once per item from the local HDF's first subdataset
(every MODIS asset shares one sinusoidal tile grid), as stactools-modis did
before. Use WktVersion.WKT2_2019 explicitly: to_wkt("WKT2") passed the
string as morph_to_esri_dialect, so older items stored ESRI WKT1.

Co-authored-by: Derek Tan <tanderek@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ccc413ed-d53b-400b-8314-a0aa9a9f48f4
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants