爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 7961|回复: 6

[netcdf] 关于nasa的daily数据下载问题

[复制链接]

新浪微博达人勋

发表于 2017-10-21 15:22:39 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
不知有没有大神知道这类数据是如何下载,求大神们帮忙,这类数据如何去下载??不可能是一个一个点击下载吧?跪谢各位大神了
WechatIMG37.jpeg
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-10-21 15:35:28 | 显示全部楼层
wget或者curl简单设置即可,下载页面上有详细说明的
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-10-23 15:17:57 | 显示全部楼层
lqouc 发表于 2017-10-21 15:35
wget或者curl简单设置即可,下载页面上有详细说明的

您好,非常感谢您的回复,想知道哪里可以看到关于wget的下载方式啊?新手不太懂这个,求告诉我如何下载这类的数据。
是从这个网址看么?
https://disc.gsfc.nasa.gov/datasets/AIRS3SPD_006/summary
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-10-23 16:46:32 | 显示全部楼层
常山赵子龙 发表于 2017-10-23 15:17
您好,非常感谢您的回复,想知道哪里可以看到关于wget的下载方式啊?新手不太懂这个,求告诉我如何下载这 ...

Instructions:
wget:
1. Save the list of URLs to your local workstation as myfile.dat
2. Create a ~/.netrc file pointing to urs.earthdata.nasa.gov and an empty ~/.urs_cookies file
3. On your command line, using wget 1.18 ( or higher ):
wget --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --auth-no-challenge=on --keep-session-cookies -i myfile.dat
If you get an error of Filename too long use the --content-disposition option in your wget call, or -O option for single file download

a UNIX curl example:
1. Save the list of URLs to your local workstation as myfile.dat
2. re-arrange the urls and provide output filenames as described in the curl config file format described below:                             
                                url    = http://host.example.gov/dir/filename.hdf
                                output = filename.hdf
                                url    = http://host.example.gov/dir/filename2.hdf
                                output = filename2.hdf
                                ...
3. Create a ~/.netrc file pointing to urs.earthdata.nasa.gov and an empty ~/.urs_cookies file
4. On your command line:
curl -b ~/.urs_cookies -c ~/.urs_cookies -K ./myfile.dat

更详细的看这里
https://disc.gsfc.nasa.gov/infor ... rvice%20with%20wget

当然我没有在windows下设置过netrc,如果你是在windows下使用,可以自行百度下netrc的设置方法。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-10-25 09:58:04 | 显示全部楼层
lqouc 发表于 2017-10-23 16:46
Instructions:
wget:
1. Save the list of URLs to your local workstation as myfile.dat

好的,谢谢师兄,我回去看一下如何下载这样的数据,第一次接触这个,不是很明白啊。。。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2017-10-29 21:52:34 | 显示全部楼层
lqouc 发表于 2017-10-23 16:46
Instructions:
wget:
1. Save the list of URLs to your local workstation as myfile.dat

不好意思又来打扰师兄了,我想问你一下,就是我选择了温度和层数下载,但是下载的数据无法使用。
生成的txt文件当中是这样的:
http://acdisc.gesdisc.eosdis.nas ... df.nc?SurfAirTemp_A[0:179][0:359],Latitude[0:179],Longitude[0:359]
我发现,问题貌似是nc后面那一些问号的东东,导致无法下载(自动回复:请不要使用迅雷等下载工具,点我查看下载帮助),请问怎么选择才能不会有nc后面的那些东西呢,如果去掉nc后面的东东下载就是对的,但是一共有500多条不知道如何去处理,谢谢师兄了。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2017-11-2 20:23:06 | 显示全部楼层
常山赵子龙 发表于 2017-10-29 21:52
不好意思又来打扰师兄了,我想问你一下,就是我选择了温度和层数下载,但是下载的数据无法使用。
生成的 ...

才看到这个
问号后面的应该是用来选去区域的设置,不过你下载全球的话似乎就没啥用了,可以去掉,至于怎么在txt中去掉这些内容可以用fortran编程实现,对字符串操作即可。
不过这个地址应该是可以下载东西的,可能是这个地址里面有些字符有问题,有兴趣的话你可以百度下转义字符。
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表