Skip to content

Why convert http to s3 links? #163

Answered by betolink
mankoff asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Ken, the preference is to use the S3 links if we are in-region, the main reason behind it is performance (followed by potential egress costs). When we use the store get() method and we are in us-west-2, S3 links will be used by default but we can just skip that part and get the out of region links. For example:

from earthdata import DataGranules

query = DataGranules().parameters(
    concept_id= "C2153574670-NSIDC_CPRD",
    bounding_box=(-150.29,56.17,-128.14,62.02)
)

print("Granules fonud:", query.hits())

# For some reason this collection is super slow now
granules = query.get(10)

print("Direct Access URL:", granules[0].data_links(access="direct"), "\nOut of Region URL: ", granules[

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mankoff
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants