Hi all,
I am attempting to download 3-hourly ERA5 data on model levels using the FLEXPART preprocessing software flex_extract, but am running into some issues. I have had success downloading ERA5 data with class=EA, stream=OPER, and field type=AN, however when I try to download data with field type=FC I receive a 400 Client Error. The corresponding Control file is:
START_DATE 20001025
DTIME 1
TYPE FC FC FC FC FC FC FC FC
TIME 00 03 06 09 12 15 18 21
STEP 00 00 00 00 00 00 00 00
ACCTYPE FC
ACCTIME 06/18
ACCMAXSTEP 12
CLASS EA
STREAM OPER
GRID 1.
LEFT -179.
LOWER -90.
UPPER 90.
RIGHT 180.
LEVELIST 1/to/137
RESOL 159
ETA 1
CWC 1
PREFIX EN
ECTRANS 1
Which produces the error:
MARS Request failed!
400 Client Error: Bad Request for url: https://cds.climate.copernicus.eu/api/retrieve/v1/jobs/e7f11bcb-d239-450f-b771-f6fc15840f6e/results
The job has failed.
MARS has returned an error, please check your selection.
Request submitted to the MARS server:
[{'accuracy': '24', 'area': '90.0/-179.0/-90.0/180.0', 'class': ['ea'], 'dataset': 'None', 'date': '20001024/to/20001025', 'expver': ['1'], 'grid': '1.0/1.0', 'levelist': '1/to/137', 'levtype': 'ML', 'number': 'OFF', 'param': '130.128/133.128/131.128/132.128/077.128/246.128/247.128', 'resol': '159', 'step': '00', 'stream': 'OPER', 'target': '/mnt/c/Users/meb369/flex_extract/Run/./Workspace/ERA5_test/FCOG__ML.20001024.1596.1597.grb', 'time': '00/03/06/09/12/15/18/21', 'type': 'FC', 'database': 'fdbmarser'}]
Full error message:
mars - ERROR - 20241030.205941 - Last error is -43
mars - ERROR - 20241030.205941 - Expected 15344, got 3836.
mars - ERROR - 20241030.205941 - Request failed
mars - ERROR - 20241030.205941 - Some errors reported (last error -1)
The job failed with: MarsRuntimeError
Traceback (most recent call last):
. . .
To test that this data was something that I could actually access, I also tried downloading using a cds api Python script (see below), which did successfully download the data.
#!/usr/bin/env python
import cdsapi
c = cdsapi.Client()
c.retrieve("reanalysis-era5-complete", {
"class": "ea",
"date": "2000-10-25",
"expver": "1",
"levelist": "1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41/42/43/44/45/46/47/48/49/50/51/52/53/54/55/56/57/58/59/60/61/62/63/64/65/66/67/68/69/70/71/72/73/74/75/76/77/78/79/80/81/82/83/84/85/86/87/88/89/90/91/92/93/94/95/96/97/98/99/100/101/102/103/104/105/106/107/108/109/110/111/112/113/114/115/116/117/118/119/120/121/122/123/124/125/126/127/128/129/130/131/132/133/134/135/136/137",
"levtype": "ml",
"param": "75/76/77/129/130/131/132/133/135/138/152/155/203/246/247/248/235001/235002/235003/235004/235005/235006/235007/235008/235009/235010/235011/235012/235013/235014",
"step": "0/1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18",
"stream": "oper",
"time": "06:00:00/18:00:00",
"type": "fc"
}, "output")
I am confused as to why my attempts at retrieving the FC data with flex_extract are hitting this error, and was hopeful that someone might have some insight.
Thanks in advance!