Getting Credentials for Earth Data Cloud

less than 1 minute read

  1. Setup .netrc file
    $ echo 'machine urs.earthdata.nasa.gov login {uid} password {password}' >> ~/.netrc
    $ chmod 0600 ~/.netrc
    

    where {uid} and {password} are your Earthdata Login username and password.

  2. Get AWS access credentials
    $ curl -b ~/.urs_cookies -c ~/.urs_cookies -L -n https://data.nsidc.earthdatacloud.nasa.gov/s3credentials
    

Categories:

Updated: