Skip to content

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
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

christophfriedrich
Copy link
Member

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

Ariana-B and others added 8 commits May 16, 2024 10:55
…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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants