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?
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?