- 积分
- 3678
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-11-22
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
第一学着批量下载ERA-interim数据驱动WRF模式,不知道为什么,按照家园上相关介绍,自己安装上Python后,居然就是用不了,那个人可以给我一点思路,让我想想怎么解决。问题如下:
这是我运行的个例:
#!/usr/bin/env python
#
# (C) Copyright 2012-2013 ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernmental organisation nor
# does it submit to any jurisdiction.
#
from ecmwfapi import ECMWFDataServer
# To run this example, you need an API key
# available from https://api.ecmwf.int/v1/key/
server = ECMWFDataServer()
server.retrieve({
'dataset' : "interim",
'step' : "24",
'number' : "all",
'levtype' : "sl",
'date' : "20071001",
'time' : "00",
'origin' : "all",
'type' : "pf",
'param' : "tp",
'area' : "70/-130/30/-60",
'grid' : "2/2",
'target' : "data.grib"
})
下面是错误:
======== RESTART: C:\Users\yinana\ecmwf-api-client-python\example.py ========
Traceback (most recent call last):
File "C:\Users\yinana\ecmwf-api-client-python\example.py", line 17, in <module>
server = ECMWFDataServer()
File "C:\Users\yinana\ecmwf-api-client-python\ecmwfapi\api.py", line 471, in __init__
key, url, email = get_apikey_values()
File "C:\Users\yinana\ecmwf-api-client-python\ecmwfapi\api.py", line 100, in get_apikey_values
key_values = _get_apikey_from_rcfile()
File "C:\Users\yinana\ecmwf-api-client-python\ecmwfapi\api.py", line 69, in _get_apikey_from_rcfile
raise APIKeyFetchError(str(e))
APIKeyFetchError: [Errno 2] No such file or directory: 'C:\\Users\\yinana\\.ecmwfapirc'
>>>
怎么破?
|
|