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

Search for groups of granules and convert them. #79

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

evetion
Copy link
Owner

@evetion evetion commented Mar 30, 2024

Continuing from #78

Changes:

  • (breaking for unreleased master branch) search(granule) now return a single granule only with the online url (previously did search based on the mission/product of the provided granule, yielding many results)

Adds:

  • search(granules), returning online urls for multiple granules
  • search(granule, product), returns a single (online) granule for the given product, with the rest derived from the original granule
  • search(granules, product), same as above for multiple granules.

Rationale

Local granules can be corrupt, so retrieving the online url to redownload is very useful. On top of that, I tend to want both the ATL03 and ATL08 versions of a granule. At the moment this requires multiple searches (with the same bbox), but this yields slightly different results (ATL03 tends to yield more granules than ATL08). Now you can do search(granules, :ATL03) with a list of ATL08 granules.

Note that I changed the HTTP search method to POST to allow for a large body of ids, that otherwise don't fit as a single url (GET).

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.

None yet

1 participant