Search found 4 matches
- Mon Mar 21, 2022 10:29 am America/New_York
- Forum: Home
- Question: ASDC Response: 401/Unauthorized when using python3
- Replies: 6
Re: ASDC Response: 401/Unauthorized when using python3
Thanks for the quick response - I had originally tried using an Earthdata token (I have a working script for downloading MODIS data from LAADS), but it didn't seem to work for downloading the CALIPSO data. Good point about the download - I checked though and the files contain what looks like the cor...
- Mon Mar 21, 2022 5:46 am America/New_York
- Forum: Home
- Question: ASDC Response: 401/Unauthorized when using python3
- Replies: 6
Re: ASDC Response: 401/Unauthorized when using python3
For anyone else who finds this question, it appears that a solution is to make the call to 'get' without supplying any authentication information. session = Session() response = session.get(url) with open(outputfilename, 'wb') as f: f.write(response.content) appears to work for me when downloading C...
- Fri Mar 18, 2022 4:18 pm America/New_York
- Forum: Home
- Question: ASDC Response: 401/Unauthorized when using python3
- Replies: 6
Re: ASDC Response: 401/Unauthorized when using python3
Thanks for the quick reply! That was from me doing some experimenting, but unfortunately it doesn't fix the issue (I think one method is actually just calling the other)
- Thu Mar 17, 2022 7:07 pm America/New_York
- Forum: Home
- Question: ASDC Response: 401/Unauthorized when using python3
- Replies: 6
ASDC Response: 401/Unauthorized when using python3
I am trying to download CALIPSO data from ASDC using a python. scripts based on the examples on this forum. My example code is very simple import requests session = requests.Session() session.auth = (<my username>, <my password>) url = 'https://asdc.larc.nasa.gov/data/CALIPSO/LID_L1-Standard-V4-10/2...