91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 29.53MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2023-06-15
  • 語言: Python
  • 標簽: Python??ECMWF??

資源簡介

使用Python批量下載ECMWF歐洲中心數據,附Python程序+相應安裝包+使用圖文教程.

資源截圖

代碼片段和文件信息

#!/usr/bin/env?python
import?linecache
a=linecache.getlines(“H:\shuju\month.txt“)
for?i?in?range(19971998):#年份1996-2009
????if?i%4==0:
????????m=29
????else:
????????m=28
????for?j?in?range(113):#月份1到12月
????????if?j==2:
????????????b=m
????????else:
????????????b=a[j-1]
????????if?j<10:
????????????y1=“0“+str(j)
????????else:
????????????y1=str(j)
????????date=str(i)+“-“+y1+“-01/to/“+str(i)+“-“+y1+“-“+str(b)
????????print?date
????????from?ecmwfapi?import?ECMWFDataServer
????????server?=?ECMWFDataServer()??
????????server.retrieve({
????????????‘stream‘????:?“oper“
????????????‘area‘??????:?“60/70/10/140“?#下載區域
????????????‘levtype‘???:?“sfc“
????????????‘param‘?????:?“39.128/40.128“?#下載內容對應編號
????????????‘dataset‘???:?“interim_land“??#數據集
????????????‘step‘??????:?“0“?????????????#步長
????????????‘grid‘??????:?“0.25/0.25“?????#分辨率
????????????‘time‘??????:?“00/06/12/18“???#時間0點/6點/12點/18點
????????????‘date‘??????:?date????????????#下載日期范圍例如1996-01-01/to/2009-12-31
????????????‘type‘??????:?“an“????????????#再分析數據
????????????‘class‘?????:?“ei“???????
????????????‘format‘????:?“netcdf“????????#格式
????????????‘target‘????:?“H:/shuju/“+str(i)+y1+“.nc“??#輸出位置(左斜線)及文件名
????????})
print?“all?have?done!“



?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????16973??2017-09-05?20:28??ecmwf-api-client-python\ecmwfapi\api.py

?????文件????????621??2016-03-08?19:36??ecmwf-api-client-python\ecmwfapi\__init__.py

?????文件????????895??2016-03-08?19:36??ecmwf-api-client-python\setup.py

?????目錄??????????0??2018-01-06?22:27??ecmwf-api-client-python\ecmwfapi

?????目錄??????????0??2018-01-06?22:30??ecmwf-api-client-python

-----------?---------??----------?-----??----

????????????????18489????????????????????5


評論

共有 條評論