GPM降水数据下载

GPM降水数据下载  GPM降水只有08-08的降水;

相关连接http://blog.sina.com.cn/s/blog_b3fc09530102xiuz.html

https://blog.csdn.net/weixin_44975806/article/details/99653793

https://blog.csdn.net/hhd1056530546/article/details/88970746?utm_medium=distribute.pc_relevant.none-task-blog-title-1&spm=1001.2101.3001.4242

https://blog.csdn.net/hhd1056530546/article/details/88970746?utm_medium=distribute.pc_relevant.none-task-blog-title-1&spm=1001.2101.3001.4242(主要参考的博客)

需求描述

1、下载说明

下载地址:

https://gpm1.gesdisc.eosdis.nasa.gov/data/GPM_L3/GPM_3IMERGDL.06/

方法说明:

https://disc.gsfc.nasa.gov/data-access

2.下载说明

1.注册Outlook微软邮箱

注册信息只能填该邮箱

2.申请账户

https://urs.earthdata.nasa.gov/home

首先需要注册Outlook微软邮箱,注册信息只能填该邮箱

用户名:XXXXXX

密码:XXXXXXXX

邮箱XXXXX@outlook.com

https://urs.earthdata.nasa.gov/profile

下载方法连接

https://disc.gsfc.nasa.gov/data-access

3.添加数据授权

https://disc.gsfc.nasa.gov/earthdata-login

查看权限列表URL

https://urs.earthdata.nasa.gov/users/XXXXXXXX/authorized_apps

下载命令

https://disc.gsfc.nasa.gov/data-access

(注意下载的时候一定要记得登陆网站 不然下载会失败)

4.下载单个文件

wget --load-cookies C:\Users\avata\.urs_cookies --save-cookies C:\Users\avata\.urs_cookies --auth-no-challenge=on --keep-session-cookies --user=XXXXXXXX --password=XXXXXX --no-check-certificate --content-disposition https://gpm1.gesdisc.eosdis.nasa.gov/data/GPM_L3/GPM_3IMERGDL.06/2000/06/3B-DAY-L.MS.MRG.3IMERG.20000601-S000000-E235959.V06.nc4

出现如上报错是因为没有进行数据授权,数据下载速度很慢3k/s

5.下载整个目录

wget --load-cookies C:\Users\avata\.urs_cookies --save-cookies C:\Users\avata\.urs_cookies --auth-no-challenge=on --keep-session-cookies --user=XXXXXXXX --password=XXXXXXXX --no-check-certificate -np -r --content-disposition https://gpm1.gesdisc.eosdis.nasa.gov/data/GPM_L3/GPM_3IMERGDL.06/2000/

下载速度也很慢

6.指定单个文件批量下载

wget --load-cookies C:\Users\avata\.urs_cookies --save-cookies C:\Users\avata\.urs_cookies --auth-no-challenge=on --keep-session-cookies --user=XXXXXXXX --password=XXXXXXXX --no-check-certificate  --content-disposition -i Z:\任务列表\200819GPM降水数据下载\url.txt

复制网站下载方法

wget for Windows

1.Make sure you have setup your Earthdata account.

2.Install wget if necessary. 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.

3.Create a cookie file. This file will let you download GES DISC resources without having to re-login.

a.Open a run-command window by pressing WinKey + R

b.Next, enter "cmd" in the text field and click "OK"

c.Navigate to the directory you wish to create the cookies file in. In this guide, we place it under the C drive, but any directory will do. You can navigate to the C drive by entering C:

d.Finally, enter NUL > .urs_cookies.

Note: you may need to re-create .urs_cookies in case you have already executed wget without valid authentication.

Note: you can get 'Access denied' error. Enter 'dir' to verify that '.urs_cookies' file is listed in your directory.

4.Download your data using wget:

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>

a.--auth-no-challenge may not be needed depending on your version of wget

b.<your username> is the username belonging to your Earthdata account

c.<url> is the link that points to a file you wish to download or to an OPeNDAP resource.

d.Your Earthdata password might be requested on the first download

e.If you wish to download an entire directory, such as this example URL, use the following command:

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>

(0)

相关推荐