Merged
Conversation
updating mosaic_metadata branch
updating mosaic metadata branch
Adding the ability to generate mosaic metadata for the dea coastal products
|
For full integration test results, refer to the Tests directory README. |
Added proc-info.yaml creation When writing locally it no longer wipes the dir you are writing metadata to. It overwrites but does not delete files.
robbibt
approved these changes
Apr 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adding a module for generating odc stac and yaml metadata and thumbnails for our dea coastal mosaic products.
Some additional info on the module:
Mosaic Metadata Generator
Generate ODC YAML and STAC JSON metadata for DEA coastal products.
Installation
Option 1: Install as a command (recommended)
pip install -e .This makes
metadata_generatoravailable as a command:metadata_generator generate \ --year 2024 \ --product ga_s2ls_intertidal_cyear_3 \ --version 2-1-0Option 2: Run as a script
python metadata_generator.py generate \ --year 2024 \ --product ga_s2ls_intertidal_cyear_3 \ --version 2-1-0Quick Start
Intertidal (auto-detected product family):
metadata_generator generate \ --year 2024 \ --product ga_s2ls_intertidal_cyear_3 \ --version 2-1-0 \ --output-dir metadataTidal Composites:
metadata_generator generate \ --year 2024 \ --product ga_s2_tidal_composites_cyear_3 \ --version 2-1-0 \ --output-dir metadataCoastal Ecosystems (requires dea naming):
metadata_generator generate \ --year 2022 \ --product ga_s2_coastalecosystems_cyear_3_v1 \ --version 1-0-0 \ --naming-conventions dea \ --output-dir metadataOutput to S3:
metadata_generator generate \ --year 2024 \ --product ga_s2ls_intertidal_cyear_3 \ --version 2-1-0 \ --output-dir s3://dea-public-data-devKey Features
Parameters
Required
--year: Year of the product (e.g., 2022)--product: Product name (e.g., ga_s2ls_intertidal_cyear_3)--version: Product version (e.g., 2-1-0)Optional
--product-family: Auto-detected if not specified (intertidal, tidal_composites, coastalecosystems)--study-area: Study area code (default: AU)--freq: Frequency code (default: P1Y)--naming-conventions: dea or dea_c3 (default: dea_c3)--output-dir: Output destination, S3 or local (default: metadata)--product-maturity: Product maturity (default: stable)--dataset-maturity: Dataset maturity (default: final)--dev/--prod: Use dev or production S3 bucket (default: dev)--verbose: Verbose outputExamples
With auto-lineage extraction:
metadata_generator generate \ --year 2024 \ --product ga_s2ls_intertidal_cyear_3 \ --version 2-1-0 \ --verboseWith custom lineage file:
metadata_generator generate \ --year 2024 \ --product ga_s2ls_intertidal_cyear_3 \ --version 2-1-0 \ --lineage-file lineage.jsonTesting with empty lineage:
metadata_generator generate \ --year 2024 \ --product ga_s2ls_intertidal_cyear_3 \ --version 2-1-0 \ --auto-lineageOther Commands
Validate metadata:
Show paths:
metadata_generator show-paths \ --year 2022 \ --product ga_s2ls_intertidal_cyear_3 --version 2-1-0 \