本帖最后由 Sebastian 于 2017-11-4 23:14 编辑
对,目前下载月数据已经不能选择全部年份了,ecmwf给出了一个脚本
 - def retrieve_era20c_mnth():
- """
- A function to demonstrate how to iterate efficiently over all months,
- for a list of years of the same decade (eg from 2000 to 2009) for an ERA-20C synoptic monthly means request.
- You can extend the number of years to adapt the iteration to your needs.
- You can use the variable 'target' to organise the requested data in files as you wish.
- """
- yearStart = 1900
- yearEnd = 2010
- monthStart = 1
- monthEnd = 12
- requestMonthList = []
- for year in list(range(yearStart, yearEnd + 1)):
- for month in list(range(monthStart, monthEnd + 1)):
- requestMonthList.append('%04d-%02d-01' % (year, month))
- requestMonths = "/".join(requestMonthList)
- target_pl = "era20c_from_%s_to_%s_sfc_Var2.nc" % (yearStart, yearEnd)
- era20c_mnth_pl_request(requestMonths, target_pl)
写个年月循环的函数就好了,然后 “date”:“requestMonths” 就可以了。
详细:https://software.ecmwf.int/wiki/ ... etrieval+efficiency
|