Skip to content

how to identify the different types of data links from a GranuleQuery #26

@tjhearty

Description

@tjhearty

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions