pygrib
pygrib copied to clipboard
pygrib reports incorrect forecast time in str() representation for HRRR 15 minute grib file
Using pygrib 2.1.5, the attached HRRR grib file is instantaneous solar radiation at sixty minutes from model initialization
wgrib2 properly reports this as
$ wgrib2 hrrr.grib2
1:0:d=2024040807:DSWRF:surface:60 min fcst:
pygrib says this
>>> import pygrib
>>> str(pygrib.open("hrrr.grib2")[1])
'1:Downward short-wave radiation flux:W m**-2 (instant):lambert:surface:level 0:fcst time 1 mins:from 202404080700'
So 1 mins
is in error here.