从NASA数据中心下载CH2O数据时,步骤:
创建帐户
链接GES DISC到账户(应该处于登录状态下)
通过下载此示例数据文件URL进行验证
A version of wget 1.18 complied with gnuTLS 3.3.3 or OpenSSL 1.0.2 or LibreSSL 2.0.2 or later is recommended.
This file will let you download GES DISC resources without having to re-login.
C:
NUL > .urs_cookies
.wget
without valid authentication.https://zhuanlan.zhihu.com/p/40307530?utm_source=qq
注:在命令行里输入NUL > .urs_cookies 可能会出现如下,拒绝访问,
但别担心看下URS_Cookoies(至于这个是啥,你们可以自己百度,内容太多,哈哈)在你的主目录下没?打开你的用户地址看下,
wget --load-cookies C:\.urs_cookies --save-cookies C:\.urs_cookies --auth-no-challenge=on --keep-session-cookies --user=<your username> --ask-password --content-disposition <url>
--auth-no-challenge
may not be needed depending on your version of wget
<your username>
is the username belonging to your Earthdata account<url>
is the link that points to a file you wish to download or to an OPeNDAP resource.wget --load-cookies C:\.urs_cookies --save-cookies C:\.urs_cookies --auth-no-challenge=on --keep-session-cookies -np -r --content-disposition <url>
To download multiple data files at once, create a plain-text <url.txt>
file with each line containing a GES DISC data file URL. Then, enter the following command:
wget --load-cookies C:\.urs_cookies --save-cookies C:\.urs_cookies --auth-no-challenge=on --keep-session-cookies --user=<your username> --ask-password --content-disposition -i <url.txt>
原文:https://www.cnblogs.com/lqbkw/p/13677350.html