Skip to content
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

Allow skipping of cog creation #39

Merged
merged 2 commits into from
Nov 4, 2022
Merged

Conversation

gadomski
Copy link
Contributor

@gadomski gadomski commented Nov 4, 2022

Related Issue(s):

Description:
Adds a cog_hrefs argument to the Ocean Heat Content create_item and cogify functions. In cogify, if a potential new COG's file name matches that of a file name in cog_hrefs, skip creating that cog, and instead point that asset's href to the href in cog_hrefs. This allows for re-generation of the STAC metadata without re-creating the COGs.

We'll eventually have to do the same for the other CDRs but I wanted to start with this one.

PR checklist:

  • Code is formatted (run scripts/format).
  • Code lints properly (run scripts/lint).
  • Tests pass (run scripts/test).
  • Documentation has been updated to reflect changes, if applicable.
  • Examples do not change, no update required
  • Changes are added to the CHANGELOG.

@gadomski gadomski requested a review from pjhartzell November 4, 2022 17:47
Copy link

@pjhartzell pjhartzell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks as we discussed earlier.

@gadomski gadomski merged commit 35305be into main Nov 4, 2022
@gadomski gadomski deleted the ocean-heat-content-cog-first branch November 4, 2022 19:03
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.

2 participants