Search found 3 matches

by pwurster_usgs
Wed Mar 15, 2023 9:40 am America/New_York
Forum: Questions/Comments
Question: auto-download NLDAS VIC from hydro1.gesdisc.eosdis.nasa.gov using Python "Requests"
Replies: 7

Re: auto-download NLDAS VIC from hydro1.gesdisc.eosdis.nasa.gov using Python "Requests"

Still get 401 Error when using from requests.auth import HTTPDigestAuth URL = 'your_URL_string_goes_here' requests.get(URL, auth=HTTPDigestAuth('your_username', 'your_password')) I changed my Earthdata password (no interfering characters) and verified login via browser, I am sure the username and pa...
by pwurster_usgs
Mon Mar 13, 2023 8:49 pm America/New_York
Forum: Questions/Comments
Question: auto-download NLDAS VIC from hydro1.gesdisc.eosdis.nasa.gov using Python "Requests"
Replies: 7

Re: auto-download NLDAS VIC from hydro1.gesdisc.eosdis.nasa.gov using Python "Requests"

Python is 3.9.7

In Requests, I authorize with username and password arguments and not a .netrc

Ideally, anyone with Earthdata username and password can run the code to retrieve the data without .netrc
by pwurster_usgs
Fri Mar 10, 2023 11:33 am America/New_York
Forum: Questions/Comments
Question: auto-download NLDAS VIC from hydro1.gesdisc.eosdis.nasa.gov using Python "Requests"
Replies: 7

auto-download NLDAS VIC from hydro1.gesdisc.eosdis.nasa.gov using Python "Requests"

I have a Python script that used to download NLDAS netcdf files via "hydro1.gesdisc.eosdis.nasa.gov", however the script now returns a 401 Error (unauthorized). I cannot say when the change from successful download to 401 Error occurred, but sometime in the last 30-40 days or so. The scrip...