You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello.
Sorry for my (very) poor english.
i try to get air temp, wind direction, wind speed from various grib files for comparing prevision in 1 spot, with automatic download in second times.
i load grib files from xygrib, and pygrib examples works finely, i can read informations. (just an iterator on file)
grbs = pygrib.open("/home/bernard/MTO_gribs/20230308_213001_GFS_P25_.grb2")
grbs.seek(0)
for grb in grbs :
print("--- grb -----------------------------------------------------")
print(repr(grb))
(data, lats, lons) = grb.data(lat1=47, lat2=47, lon1=-1, lon2=-3)
#print("keys", grb.keys())
#print("data", data)
if (len(data) > 0 and 1==2) :
print("data", data)
print("lats", lats)
print("lons", lons)
319:2 metre temperature:K (instant):regular_ll:heightAboveGround:level 2 m:fcst time 237 hrs:from 202303081200
320:Wind speed (gust):m s**-1 (instant):regular_ll:surface:level 0:fcst time 237 hrs:from 202303081200
321:10 metre U wind component:m s**-1 (instant):regular_ll:heightAboveGround:level 10 m:fcst time 240 hrs:from 202303081200
322:10 metre V wind component:m s**-1 (instant):regular_ll:heightAboveGround:level 10 m:fcst time 240 hrs:from 202303081200
323:2 metre temperature:K (instant):regular_ll:heightAboveGround:level 2 m:fcst time 240 hrs:from 202303081200
324:Wind speed (gust):m s**-1 (instant):regular_ll:surface:level 0:fcst time 240 hrs:from 202303081200
Hello.
Sorry for my (very) poor english.
i try to get air temp, wind direction, wind speed from various grib files for comparing prevision in 1 spot, with automatic download in second times.
i load grib files from xygrib, and pygrib examples works finely, i can read informations. (just an iterator on file)
But :
i search same informations, from other models (ECMWF, Arpege, Arome, others...)
By example :
http://grib.weather4d.com/AromeHD/
https://openskiron.org/en/openwrf (to unzip)
And with just same icode, i cant find desired information.
grbs = pygrib.open("/home/bernard/MTO_gribs/AromeHD_Atlantique_lastest.grb")
What's happen ?
Thanks by advance, and big thanks to read me :-)
The text was updated successfully, but these errors were encountered: