Skip to content

Conversation

@christophfriedrich
Copy link

Hi,

this is some code I wrote ages ago as a quick fix for a problem we had where a catalog had changed its asset names, which clashed with the old ones in the ODC database. With the fix, 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

I'm just opening this PR as I stumbled across the code while going through stuff I did at that job (which I'm no longer employed at) and didn't want it to go to waste in case you find this interesting.

Would need error checking and documentation of course.

@pjonsson
Copy link
Contributor

pjonsson commented Apr 3, 2025

It's not up to me to decide if this is interesting for the project, but the checks box state there are conflicts that must be resolved, could you please rebase this PR against latest develop?

@SpacemanPaul
Copy link
Contributor

Looks like a nice new feature, but yes, needs rebasing and a bit of love.

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.

3 participants