Quantcast
Channel: Earthdata Forum
Viewing all articles
Browse latest Browse all 1307

Questions/Comments • Re: Can't download GPM IMERG files in Windows 11 using wget

$
0
0
Hello,

Have u solved your question? maybe I can help.I'm a commidity analyst with a few coding skills, and I figured this wget thing out after many tries,if u are actually willing to use wget to download data on opendap,please follow me:

1.Have an Earthdata account with username and password.

2.check your python scripts working dir, you can activate your python environment and run jupyter notebook to check your working dir, for myself is C:\Users\erc\myscripts\

3.download wget.exe, then put exe into your python scripts working dir.

4.Prerequisite file,the most perplexing one.The most simple solution is 'Create prerequisite files using Python', made by earthdata official,you can find the code in https://disc.gsfc.nasa.gov/information/howto?title=How%20to%20Generate%20Earthdata%20Prerequisite%20Files, just simply copy it to your jupyter notebook(guess you already have ) in your python environment and run without any modification, it will prompt you to input username and password,just input and enter, your prerequisite files will be accurately set.

5.now open cmd and run wget code,

wget --load-cookies C:\Users\erc\mycripts\.urs_cookies --save-cookies C:\Users\erc\mycripts\.urs_cookies --keep-session-cookies --user=() --password=() -r -c -nH -nd -np -A nc4 --content-disposition -P E:\fds "https://gpm1.gesdisc.eosdis.nasa.gov/opendap/GPM_L3/GPM_3IMERGDF.07/2014/"

Attention : this code above is my version,user and password should be filled and don't keep (),and '.urs_cookies' path should be replaced to your own,'nc4' should be your wanted format, 'E:\fds' is the filepath you wanna place downloaded files into .

That's all.

Statistics: Posted by sxww — Thu Mar 07, 2024 3:42 am America/New_York



Viewing all articles
Browse latest Browse all 1307

Trending Articles