When I use the python code to apply ERA5 pressure level data like this:
import cdsapi
import os
os.environ[‘CDSAPI_RC’] = ‘F:/.cdsapirc’
创建一个CDS API客户端
client = cdsapi.Client()
定义数据集名称
dataset = “reanalysis-era5-pressure-levels”
定义公共请求参数
common_request_params = {
“product_type”: [“reanalysis”],
“month”: [
“01”, “02”, “03”,
“04”, “05”, “06”,
“07”, “08”, “09”,
“10”, “11”, “12”
],
“day”: [
“01”, “02”, “03”,
“04”, “05”, “06”,
“07”, “08”, “09”,
“10”, “11”, “12”,
“13”, “14”, “15”,
“16”, “17”, “18”,
“19”, “20”, “21”,
“22”, “23”, “24”,
“25”, “26”, “27”,
“28”, “29”, “30”,
“31”
],
“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”
],
“pressure_level”: [“925”],
“data_format”: “netcdf”,
“download_format”: “unarchived”,
“variable”: [“vertical_velocity”]
}
定义要下载的年份
years = list(range(1970, 1979))+[2023]
遍历每一年,下载数据并保存
for year in years:
request = common_request_params.copy()
request[“year”] = [str(year)]
# 下载数据
client.retrieve(dataset, request)
It can be used before 7 days ago,but last days,it can’t be work, will be raise error like this:
If you think there’s something wrong, contact the User Support by providing:
- Request ID:
c9257074-459a-4334-a6e0-2ded0290f386
In ERA5 official web “Your request”,it will raise error like this:
Worker has been killed due to memory usage.
If you think there’s something wrong, contact the User Support by providing:
- Request ID:
c9257074-459a-4334-a6e0-2ded0290f386
- Your user ID:
- Trace ID of the error: b60e5219-79f9-4031-b369-88fb1f5a1657
I want to know why,it is a my code matter or ERA5 official matter?
If you can resolve this problem,I will very appreciate!