You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The driver=https support uses a base URL mapping stored in catalog metadata to rewrite S3 URLs to HTTPS URLs at runtime. Here's how it works:
At catalog build time, _extract_base_urls() grabs both the S3 and HTTPS URLs from CMR for the first granule that has both, then derives the common suffix to extract the divergent prefixes:
These are stored once in catalog.metadata, not per-granule. The actual catalog entries remain S3 URLs only — no size increase.
At runtime, when driver=https, the runner rewrites each URL by replacing s3_base with https_base. This is a single string substitution, derived from CMR data rather than hardcoded.
Assumption: all granules in a catalog share the same base path. This holds today because a catalog is built from a single CMR query (one short_name + version + provider), so all granules come from the same DAAC bucket. If we ever mix data products within a single catalog (e.g., ATL06 + ATL08 from different providers, or cross-DAAC queries), this assumption would break and we'd need per-granule or per-provider base mappings. I can't think of a realistic case where this happens — catalogs are product-specific by design — but noting it here for future 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
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.
Summary
magg.runner.agg()Python APIpython -m magg) becomes a thin wrapper aroundagg()backend="local"(ThreadPoolExecutor) andbackend="lambda"(AWS Lambda)API
Remaining work (issue #13)
invoke_lambda.pyto useagg(backend="lambda")internallybackend="sfn"), Lithops (backend="lithops")Test plan
🤖 Generated with Claude Code