爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 19210|回复: 12

[求助] 【已解决】利用python下载ECMWF出错

[复制链接]

新浪微博达人勋

发表于 2015-12-30 11:50:43 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 Jepeng 于 2016-2-21 18:26 编辑

每次运行它的时候都会出现这种错误,哪位大神知道怎么解决
WARNING: httplib2.URLError received None <urlopen error [Errno 10060] >
下面是我的脚本
#!/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'    : "0",
          'stream'  : "oper",
          'class'   : "ei",
          'number'  : "all",
          'levtype' : "sfc",
          'date'    : "20120816/to/20120831",
          'time'    : "00/06/12/18",
          'type'    : "AN",
          'param'   : "134.128/151.128/235.128/167.128/165.128/166.128/168.128/34.128/31.128/141.128/139.128/170.128/183.128/236.128/39.128/40.128/41.128/42.128/33.128",
          'grid'    : "0.25/0.25",
          'target'  : "ERA-Int_sfc_20120816_20120831.grib"
          })

多试几次就可以了
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2020-4-14 10:31:33 | 显示全部楼层
GUTIANWEI 发表于 2018-9-15 18:33
我也是这个问题请问怎么解决呢?

在api.py脚本中加入以下命令:
import socket
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
密码修改失败请联系微信:mofangbao
回复 支持 1 反对 0

使用道具 举报

新浪微博达人勋

发表于 2015-12-30 12:56:02 | 显示全部楼层
感觉好像是URL地址不对
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-12-30 15:01:25 | 显示全部楼层
个人的API弄好了?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-4-10 12:16:02 | 显示全部楼层
我运行python脚本出现  Error contacting the WebAPI, retrying in 60 seconds ...   这是什么原因呢
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-4-18 09:13:00 | 显示全部楼层
你好,我也是想要在linux上安装python,批量下载ERA数据。想请教些安装问题。谢谢
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2018-4-18 15:38:49 | 显示全部楼层
小莹子 发表于 2018-4-18 09:13
你好,我也是想要在linux上安装python,批量下载ERA数据。想请教些安装问题。谢谢

我在Windows使用的
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-4-19 15:21:29 | 显示全部楼层
Jepeng 发表于 2018-4-18 15:38
我在Windows使用的

好的,谢谢
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-9-15 18:33:32 | 显示全部楼层
BLUEANGEL2012 发表于 2018-4-10 12:16
我运行python脚本出现  Error contacting the WebAPI, retrying in 60 seconds ...   这是什么原因呢

我也是这个问题请问怎么解决呢?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2019-11-29 15:33:14 | 显示全部楼层
GUTIANWEI 发表于 2018-9-15 18:33
我也是这个问题请问怎么解决呢?

请问这个问题解决了吗?我也出现了这个问题
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2019-12-18 19:33:57 | 显示全部楼层
GUTIANWEI 发表于 2018-9-15 18:33
我也是这个问题请问怎么解决呢?

就是等着,要等待一下
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

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