Skip to content

Instantly share code, notes, and snippets.

@scottyhq
Created April 19, 2021 12:23
Show Gist options
  • Save scottyhq/c4a4e889b58a0a153dd5fb18bad9f3e8 to your computer and use it in GitHub Desktop.
Save scottyhq/c4a4e889b58a0a153dd5fb18bad9f3e8 to your computer and use it in GitHub Desktop.
stackstac with nsidc data
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gjoseph92
Copy link

NEED NASA URS credentials in ~/.netrc for GDAL to access these urls

Did you see rmg55/CloudDAAC_Binders#1 (comment)? Might be a helpful example of how to get these credentials loaded on distributed clusters.

@scottyhq
Copy link
Author

scottyhq commented Apr 20, 2021

Yep, unfortunately https://lpdaac.earthdata.nasa.gov/s3credentials only for LPDAAC-curated datasets, so harmonized landsat-sentinel (HLS) for example. NASA data centers are distributed, not all data is cloud hosted, and servers have different capabilities. Unfortunately the local ~/.netrc is the only way to get GDAL /vsicurl/ to get at a lot of this data. So that file would have to be created on distributed workers for now. Related discussion: https://discourse.pangeo.io/t/earthdata-password-pop-up-box/1358

@gjoseph92
Copy link

Oh interesting. I bet we could roll generating a temporary netrc file and setting NETRC into LayeredEnv to handle this for you.

@RichardScottOZ
Copy link

Thanks for this.

Btw, typo - # Gett all the items with gamma0 assets at [8]

Pretty sure lots of people would like you handling the login part!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment