Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[help] yes ! ...but no :-( grib files without information #216

Open
BernardMayer opened this issue Mar 20, 2023 · 0 comments
Open

[help] yes ! ...but no :-( grib files without information #216

BernardMayer opened this issue Mar 20, 2023 · 0 comments

Comments

@BernardMayer
Copy link

BernardMayer commented Mar 20, 2023

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

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")

82:34:34 (instant):regular_ll:heightAboveGround:level 10:fcst time 40 hrs:from 202303131200
83:33:33 (instant):regular_ll:heightAboveGround:level 10:fcst time 41 hrs:from 202303131200
84:34:34 (instant):regular_ll:heightAboveGround:level 10:fcst time 41 hrs:from 202303131200
85:33:33 (instant):regular_ll:heightAboveGround:level 10:fcst time 42 hrs:from 202303131200
86:34:34 (instant):regular_ll:heightAboveGround:level 10:fcst time 42 hrs:from 202303131200

What's happen ?

Thanks by advance, and big thanks to read me :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant