登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
利用python批量下载ECWMF数据时会提示如下错误:
Traceback (most recent call last):
File "E:\axd_scripts\PythonScripts\ecwmf\oz.py", line 15, in <module>
"target": "output.nc",
File "D:\python\python3.6.8\lib\site-packages\ecmwfapi\api.py", line 519, in retrieve
c = APIRequest(self.url, "datasets/%s" % (dataset,), self.email, self.key, self.trace, verbose=self.verbose)
File "D:\python\python3.6.8\lib\site-packages\ecmwfapi\api.py", line 391, in __init__
user = self.connection.call("%s/%s" % (self.url, "who-am-i"))
File "D:\python\python3.6.8\lib\site-packages\ecmwfapi\api.py", line 140, in wrapped
return func(self, *args, **kwargs)
File "D:\python\python3.6.8\lib\site-packages\ecmwfapi\api.py", line 340, in call
raise APIException("ecmwf.API error 1: %s" % (self.last["error"],))
ecmwfapi.api.APIException: 'ecmwf.API error 1: Invalid or missing key or token'
原因是此网址https://api.ecmwf.int/v1/key/下载密码有有效期,过期作废,故提示
Invalid or missing key or token 这是我的新密码提示的截止时间(valid until March 29, 2020, 6:32 a.m.) 所以只需重新点该网址,生成新密码,然后复制到.ecmwfapirc里面即可。 |