爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 13568|回复: 2

[求助] 用python脚本下载ERA-interim数据报错

[复制链接]

新浪微博达人勋

发表于 2020-4-23 09:56:36 | 显示全部楼层 |阅读模式

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

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

x
用python脚本下载ERA-interim数据出现和存储路径相关的报错,实在是不知道怎么回事,以前也用python下载过该数据都没有问题,检查脚本自己也没发现错误,求助各位前辈。
这是我的脚本:
from ecmwfapi import ECMWFDataServer

# To run this example, you need an API key
# available from https://api.ecmwf.int/v1/key/

server = ECMWFDataServer()

#data=["1979","1980","1981","1982","1983","1984","1985","1986","1987","1988","1989","1990","1991","1992","1993","1994","1995","1996","1997","1998","1999","2000","2001","2002","2003","2004","2005","2006","2007","2008","2009","2010","2011","2012","2013","2014","2015","2016","2017","2018"]
data=["2001","2002","2003","2004","2005","2006","2007","2008","2009","2010","2011","2012","2013","2014","2015","2016","2017","2018"]
#data=["2016","2017"]
for idata in range(len(data)):

server.retrieve({
    "class": "ei",
    "dataset": "interim",
    "date": data[idata]+"0101"+"/to/"+data[idata]+"0203",
    "expver": "1",
    "grid": "0.25/0.25",
    "levelist": "100/200/250/300/400/500/600/700/850/925/1000",
    "levtype": "pl",
    "param": "129.128/130.128/131.128/132.128/133.128",
    "step": "0",
    "stream": "oper",
    "area": "45/75/15/125",
    "time": "00:00:00/06:00:00/12:00:00/18:00:00",
    "type": "an",
    "format" : "netcdf",
    "target": "E:/science/EC-interim-DATA/"+data[idata]+"0101-0203.nc",
})

报错提示:

错误提示

错误提示
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2020-4-23 13:02:02 | 显示全部楼层
不行的话,可以试试这个:http://bbs.06climate.com/forum.p ... id=95338&extra=
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2020-4-23 14:42:06 | 显示全部楼层
shou_ju 发表于 2020-4-23 13:02
不行的话,可以试试这个:http://bbs.06climate.com/forum.php?mod=viewthread&tid=95338&extra=

好的非常感谢!我先试试是不是网络的问题。
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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