ecmwf-lab / ai-models

Apache License 2.0
400 stars 68 forks source link

for a given date, retrieving 00z analysis from MARS using the ECMWF WebAPI ('--date & --time option') #8

Closed fbaordo closed 1 year ago

fbaordo commented 1 year ago

From the README seems that it is possible to use a specific date (option '--date YYYYMMDD') and analysis time (option '--time HHMM') to retrieve data from MARS (ECMWF WebAPI).

For instance, for a given date YYYYMMDD, I use the following line to generate forecasts starting form the analysis time HHMM:

   ai-models --date YYYYMMDD --time HHMM --lead-time NN fourcastnet

When 'HHMM=1200' the MARS retrieval (surface and pressure variables) is consistent with the DATE/TIME that I request, but if I change to 'HHMM=0000', the dataset retrieved from MARS is always for the 12z analysis.

Below I copied the printed lines I got when I request the 00z analysis ('HHMM=0000'). TIME is equal to 1200 and not to 0000 as it should be.

RETRIEVE, CLASS = OD, TYPE = AN, STREAM = OPER, EXPVER = 0001, REPRES = GG, LEVTYPE = SFC, PARAM = 165/166/167/134/151/137/246.228/247.228, TIME = 1200, STEP = 00, DOMAIN = G, RESOL = AUTO, AREA = 90.0/0.0/-90.0/359.75, GRID = 0.25/0.25, PADDING = 0, DATE = 20230914

b8raoult commented 1 year ago

Thanks for reporting that problem. It should be fixed in CliMetLab 0.17.8. Please run pip3 install --upgrade climetlab.