Add script for processing and converting raster data to STAC format#2
Draft
manuvanegas wants to merge 6 commits intoopenskope:mainfrom
Draft
Add script for processing and converting raster data to STAC format#2manuvanegas wants to merge 6 commits intoopenskope:mainfrom
manuvanegas wants to merge 6 commits intoopenskope:mainfrom
Conversation
Splits the monolithic convertto_stac.py into five focused modules under cog_stac_pipeline/, each responsible for one pipeline concern: - cog_builder.py — GDAL band slicing and COG conversion - stac_builder.py — STAC item/collection/catalog creation and lookup dict - metadata.py — YAML metadata validation and auto-patching - datetime_utils.py — ISO key formatting and date range helpers - main.py — configuration and top-level orchestration Also extracts three helper functions from the 133-line process_variable: populate_slice_lookup, create_stac_item_for_slice, and build_cog_slice, reducing the orchestrator to ~45 lines. Adds README.md documenting inputs, outputs, configuration, and module roles. Updates .gitignore to track the new folder alongside styles/ and geometries/. Original convertto_stac.py is retained as a legacy reference.
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.
Slicing COGs into ~100-band files. Creates an accompanying lookup dictionary to speed up backend's correct file and band location.