forked from opendatacube/odc-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Add asset name mapping #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
christophfriedrich
wants to merge
8
commits into
eo2cube:develop
Choose a base branch
from
christophfriedrich:develop
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
…e#602) * replace urlpath library, update moto import, change relative path logic * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * check scheme and netloc for completeness * bump version and pylint * appease pylint * undo scheme and netloc check --------- Co-authored-by: Ariana Barzinpour <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…n. (opendatacube#609) * Attempt to fix pypi/publish action. Not clear how it came to be broken. * Fix inconsistencies, don't mutate and perpetuate them!
updates: - [github.com/psf/black: 24.4.0 → 24.4.2](psf/black@24.4.0...24.4.2) - [github.com/PyCQA/pylint: v3.2.0 → v3.2.3](pylint-dev/pylint@v3.2.0...v3.2.3)
…atacube#612) * changes for indexing new sentinel-2 collection in deafrica odc * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * formatting --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add docker to test requirements. * Add docker to test requirements again?? * Docker in conda env? * Conda calls it docker-py? * Fix stac transform tests * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * xfail broken lib-cloud tests. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * xfail broken lib-cloud tests. * xfail broken lib-cloud tests. * Revert to old relative url handling. * Roll back version number * Catch different bucket case. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Satisfy pylint * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Satisfy pylint * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Satisfy pylint --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Adding test for deafrica s2_l2a_c1 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * formatting * formatting * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * bumping version * specific test for relative/absolute path conversion * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * change test to equal src link * Adjusted expected data for easier bug detection. * Oops I dropped an e - restoring. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Paul Haesler <[email protected]>
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.
Required to fix situation where a catalog has changed its asset names but the ODC database still has the old ones. With the change, you can do something like this:
stac-to-dc --catalog-href https://stac.terrabyte.lrz.de/public/api --collections sentinel-2-c1-l2a --rename-product s2_c1_l2a --datetime='2024-03-01/2024-03-31' --bbox=5.9,47.3,15.0,54.9 --asset-name-mapping=B01/coastal,B02/blue,B03/green,B04/red,B05/rededge1,B06/rededge2,B07/rededge3,B08/nir,B8A/nir08,B09/nir09,B11/swir16,B12/swir22,SCL/scl,AOT/aot,WVP/wvp