Search for groups of granules and convert them. #79
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.
Continuing from #78
Changes:
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 granulessearch(granule, product)
, returns a single (online) granule for the given product, with the rest derived from the original granulesearch(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).