说明:数据是用python下载的,安装python请百度。
第一步:注册账号,尽量用gmail邮箱。
第二步:在c盘 用户/用户名 这个目录下创建一个 .ecmwfapirc的文件(以点开头,以点结尾)
第三步:打开https://confluence.ecmwf.int/display/WEBAPI/Access+ECMWF+Public+Datasets/点击
会出现以下内容,把内容复制到之前创建的那个.ecmwfapirc文件。
第四步:在cmd 控制台或者anacond的promp 输入以下内容,目的是安装下载模块
pip install https://software.ecmwf.int/wiki/download/attachments/56664858/ecmwf-api-client-python.tgz
第五步:写脚本下载数据。以日降水为例。更多可看官网:https://confluence.ecmwf.int/pages/viewpage.action?pageId=56658233 output换成自己的目录。
#!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
server.retrieve({
"class": "ei",
"dataset": "interim",
"stream": "oper",
"expver": "1",
"date": "2017-01-01/to/2017-01-31",
"type": "fc",
"levtype": "sfc",
"param": "228.128", # parameter 'total precipitation'
"step": "12", # accumulation over 12 hours
"time": "00:00:00/12:00:00", # from the two forecasts initialized at 00:00 and 12:00
"grid": "0.75/0.75",
"target": "output", # change this to your output file name
})
气象家园有一个帖子可以参考:http://bbs.06climate.com/forum.php?mod=viewthread&tid=24435