- 积分
 - 18563
 
	- 贡献
 -  
 
	- 精华
 
	- 在线时间
 -  小时
 
	- 注册时间
 - 2011-7-12
 
	- 最后登录
 - 1970-1-1
 
 
 
 
 
 
 | 
	
 
 
发表于 2024-6-27 02:11:04
|
显示全部楼层
 
 
 
 
不知道你从哪里找到的这个脚本,建议仿照网站上的例子进行下载。 
import cdsapi 
 
c = cdsapi.Client() 
 
c.retrieve( 
    'reanalysis-era5-single-levels', 
    { 
        'product_type': 'reanalysis', 
        'format': 'grib', 
        'variable': 'mean_sea_level_pressure', 
        'year': '2018', 
        'month': '01', 
        'day': '01', 
        'time': [ 
            '00:00', '01:00', '02:00', 
            '03:00', '04:00', '05:00', 
            '06:00', '07:00', '08:00', 
            '09:00', '10:00', '11:00', 
            '12:00', '13:00', '14:00', 
            '15:00', '16:00', '17:00', 
            '18:00', '19:00', '20:00', 
            '21:00', '22:00', '23:00', 
        ], 
    }, 
    'download.grib') |   
 
 
 
 |