爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
楼主: leeol

[其他] 利用python脚本,批量自动下载欧洲中心的气象数据

  [复制链接]
发表于 2017-3-27 15:00:17 | 显示全部楼层
Traceback (most recent call last):
  File "C:\Users\hp\Desktop\example.py", line 17, in <module>
    server = ECMWFDataServer()
  File "C:\Users\hp\Desktop\ecmwfapi\api.py", line 471, in __init__
    key, url, email = get_apikey_values()
  File "C:\Users\hp\Desktop\ecmwfapi\api.py", line 100, in get_apikey_values
    key_values = _get_apikey_from_rcfile()
  File "C:\Users\hp\Desktop\ecmwfapi\api.py", line 69, in _get_apikey_from_rcfile
    raise APIKeyFetchError(str(e))
APIKeyFetchError: [Errno 2] No such file or directory: 'C:\\Users\\hp\\.ecmwfapirc'
>>>
请问这是什么错误啊?
密码修改失败请联系微信:mofangbao
发表于 2017-5-8 21:51:44 | 显示全部楼层
强大的python 谢谢lz
密码修改失败请联系微信:mofangbao
发表于 2017-5-20 19:05:23 | 显示全部楼层
好厉害,我每次都是打包下载,有这个的话的确很方便噢,赞
密码修改失败请联系微信:mofangbao
发表于 2017-5-20 19:17:36 | 显示全部楼层
xuexile,thx
密码修改失败请联系微信:mofangbao
发表于 2017-5-24 08:32:46 | 显示全部楼层
lz,thx
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

发表于 2017-5-24 09:09:30 | 显示全部楼层
学习了。。。
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

发表于 2017-6-12 10:38:22 | 显示全部楼层
谢谢分享~~~
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

发表于 2017-6-19 10:13:41 | 显示全部楼层
讲的很实用
密码修改失败请联系微信:mofangbao
发表于 2017-6-19 10:13:55 | 显示全部楼层
希望向你多多请教
密码修改失败请联系微信:mofangbao
发表于 2017-7-31 09:22:41 | 显示全部楼层
本帖最后由 crazygod 于 2017-7-31 09:24 编辑

为什么一直显示在排队
帮忙看下我这个脚本编辑有没有问题

#!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
server.retrieve({
    "class": "ea",
    "dataset": "era5",
    "date": "20100101/20100201/20100301/20100401/20100501/20100601/20100701/20100801/20100901/20101001/20101101/20101201/20110101/20110201/20110301/20110401/20110501/20110601/20110701/20110801/20110901/20111001/20111101/20111201/20120101/20120201/20120301/20120401/20120501/20120601/20120701/20120801/20120901/20121001/20121101/20121201/20130101/20130201/20130301/20130401/20130501/20130601/20130701/20130801/20130901/20131001/20131101/20131201/20140101/20140201/20140301/20140401/20140501/20140601/20140701/20140801/20140901/20141001/20141101/20141201/20150101/20150201/20150301/20150401/20150501/20150601/20150701/20150801/20150901/20151001/20151101/20151201/20160101/20160201/20160301/20160401/20160501/20160601/20160701/20160801/20160901/20161001/20161101/20161201",
    "decade": "2010",
    "expver": "1",
    "levtype": "sfc",
    "param": "207.128",
    "stream": "moda",
    "type": "an",
    "target": "D:/python/2.ncoutput",
})


阿里旺旺图片20170731093459.jpg
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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