ecmwf-lab / ai-models

Apache License 2.0
406 stars 68 forks source link

Could anyone else provides a grib format example to use the --file option with graphcast? #22

Closed oubahe closed 10 months ago

b8raoult commented 10 months ago

Just type:

ai-models graphcast --retrieve

that will give you the list of parameters and level expressed as ECMWF's MARS requests.

retrieve,
   levtype=pl,
   levelist=50/100/150/200/250/300/400/500/600/700/850/925/1000,
   param=t/z/u/v/w/q,
   date=20231227,
   time=6,
   target=input.grib,
   grid=0.25/0.25,
   area=90/0/-90/360,
   type=fc,
   stream=scda

retrieve,
   levtype=sfc,
   param=lsm/2t/msl/10u/10v/tp/z,
   date=20231227,
   time=6,
   target=input.grib,
   grid=0.25/0.25,
   area=90/0/-90/360,
   type=fc,
   stream=scda

retrieve,
   levtype=pl,
   levelist=50/100/150/200/250/300/400/500/600/700/850/925/1000,
   param=t/z/u/v/w/q,
   date=20231227,
   time=12,
   type=fc,
   stream=oper

retrieve,
   levtype=sfc,
   param=lsm/2t/msl/10u/10v/tp/z,
   date=20231227,
   time=12,
   type=fc,
   stream=oper
oubahe commented 10 months ago

Just type:

ai-models graphcast --retrieve

that will give you the list of parameters and level expressed as ECMWF's MARS requests.

retrieve,
   levtype=pl,
   levelist=50/100/150/200/250/300/400/500/600/700/850/925/1000,
   param=t/z/u/v/w/q,
   date=20231227,
   time=6,
   target=input.grib,
   grid=0.25/0.25,
   area=90/0/-90/360,
   type=fc,
   stream=scda

retrieve,
   levtype=sfc,
   param=lsm/2t/msl/10u/10v/tp/z,
   date=20231227,
   time=6,
   target=input.grib,
   grid=0.25/0.25,
   area=90/0/-90/360,
   type=fc,
   stream=scda

retrieve,
   levtype=pl,
   levelist=50/100/150/200/250/300/400/500/600/700/850/925/1000,
   param=t/z/u/v/w/q,
   date=20231227,
   time=12,
   type=fc,
   stream=oper

retrieve,
   levtype=sfc,
   param=lsm/2t/msl/10u/10v/tp/z,
   date=20231227,
   time=12,
   type=fc,
   stream=oper

Thanks a lot. And if I use --time 0600, I am getting the error : ValueError: Error setting step=6 (Unable to set step). Do you have any ideas for this issue?

chomutovskij commented 10 months ago

@oubahe see https://github.com/ecmwf-lab/ai-models/issues/21 - update your dependencies and it should be fixed

oubahe commented 10 months ago

@oubahe see #21 - update your dependencies and it should be fixed

Thanks for giving, the problem is solved.