Search found 18 matches
- Tue Jan 10, 2023 11:49 am America/New_York
- Forum: Questions/Comments
- Question: Download ASDC Files with Wget
- Replies: 22
Re: Download ASDC Files with Wget
At maria.stoica , I don't know of a way to request a longer life token, it may be worth asking Earthdata using the Feedback button in the top-right. Another option would be to have your script use the API to check generate a new token when your current one has expired, you can find an example on thi...
- Fri Oct 21, 2022 9:42 am America/New_York
- Forum: Questions/Comments
- Question: Download ASDC Files with Wget
- Replies: 22
Re: Download ASDC Files with Wget
vescovinit Sure, you can use the "--accept" or "--reject" arguments to filter out the data you want. To use "--accept", just add the "--accept *N.hdf" argument to the command. Alternatively, you could use "--reject" by adding "--reject *D.hdf&q...
- Thu Sep 01, 2022 9:25 am America/New_York
- Forum: Questions/Comments
- Question: Download ASDC Files with Wget
- Replies: 22
Re: Download ASDC Files with Wget
@joeyhotz
Yes, I had to update the old guide. Earthdata Login updated and now requires a token instead of username/password. Have you tried the new, token based script listed above?
Yes, I had to update the old guide. Earthdata Login updated and now requires a token instead of username/password. Have you tried the new, token based script listed above?
- Fri Jul 22, 2022 10:03 am America/New_York
- Forum: Questions/Comments
- Question: Downloading ASDC Data with Python 3
- Replies: 21
Re: Downloading ASDC Data with Python 3
Those are great examples of how to download without using the requests library. Anyone using this example should remember that they'll need to include the token in the header to authenticate with Earthdata Login.
- Mon Jul 18, 2022 10:57 am America/New_York
- Forum: Questions/Comments
- Question: How to create .urs_cookies?
- Replies: 1
Re: How to create .urs_cookies?
Generally, your username/password go into a .netrc file (at least for cygwin, linux, and mac) and the .urs_cookie is empty, but if you construct your wget call correctly it'll log in and update the cookie for you. That being said, recently, it seems like Earthdata is moving from username/password lo...
- Thu Jun 30, 2022 9:44 am America/New_York
- Forum: Questions/Comments
- Question: Downloading ASDC Data with Python 3
- Replies: 21
Re: Downloading ASDC Data with Python 3
Hello vasu_007 I'd love to investigate the python issue your seeing more, but since you need the your data fast, it might be better to try wget instead. If your able to use wget, I'd suggest trying this guide: https://forum.earthdata.nasa.gov/viewtopic.php?t=2329 Could you send me the top level URL ...
- Wed Jun 29, 2022 12:32 pm America/New_York
- Forum: Questions/Comments
- Question: Downloading ASDC Data with Python 3
- Replies: 21
Re: Downloading ASDC Data with Python 3
The provided example script is only meant to get data from links found in asdc.larc.nasa.gov/data/. It looks like your looking for MISR data, you should be able to get it form here using the script example above:
https://asdc.larc.nasa.gov/data/MISR/
https://asdc.larc.nasa.gov/data/MISR/
- Mon Mar 21, 2022 8:59 am America/New_York
- Forum: Questions/Comments
- 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 ...
- Thu Jan 20, 2022 9:40 am America/New_York
- Forum: Questions/Comments
- Question: Download ASDC Files with Wget
- Replies: 22
Re: Download Multiple ASDC Files with Wget
I think I may have used poor wording in the example, thank you for pointing this out. I can see where "URL=<your url here>" is could be confusing, because it's not your personal URL, but instead it's the URL of the files you want to download. I'll update the wording later today. Thank you!...
- Mon Jan 10, 2022 12:57 pm America/New_York
- Forum: Questions/Comments
- Question: Downloading ASDC Data with Python 3
- Replies: 21
Re: Downloading ASDC Data with Python 3
What data are you trying to get?