pygrib icon indicating copy to clipboard operation
pygrib copied to clipboard

pygrib reports incorrect forecast time in str() representation for HRRR 15 minute grib file

Open akrherz opened this issue 10 months ago • 0 comments

Using pygrib 2.1.5, the attached HRRR grib file is instantaneous solar radiation at sixty minutes from model initialization

hrrr_grib2.zip

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.

akrherz avatar Apr 08 '24 12:04 akrherz