Replies: 1 comment
-
@tjhearty, apologies for taking so long to answer your question. At the moment, there are not convenience functions/methods available for this. However, you may wish to look at the earthaccess library, which makes use of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How can I get a list of data, S3, or opendap urls from a GranuleQuery?
I currently do the following to get the different types of URLs:
First, get the list of all entry URL links returned by granule metadata
all_links = [entry['links'] for entry in gran_met]
Next, get just the granule URL links, exclude inherited links (i.e. from collection metadata).
gran_links = [link for group in all_links for link in group if 'inherited' not in link.keys()]
From there I can search for string in the 'title' or 'rel' to identify the data, S3, or opendap urls? Is there another way to get a list of the different types of urls?
Beta Was this translation helpful? Give feedback.
All reactions