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
ifgrb.has_key('forecastTime'):
ifgrb.has_key('forecastTime'): # always Trueftime=grb.forecastTimeelifgrb.has_key('stepRange'): # mis-indentation?# if forecastTime doesn't exist, use end of stepRange.ftime=grb['stepRange'] # computed key, uses stepUnitsifgrb.has_key('stepUnits') andgrb.stepUnitsin_ftimedict:
grb.fcstimeunits=_ftimedict[grb.stepUnits]
# if it's a range, use the end of the range to define validDatetry:
ftime=float(ftime.split('-')[1])
except:
ftime=Noneelse:
ftime=0
The text was updated successfully, but these errors were encountered:
There seems to be an error in the logic for setting dates:
pygrib/src/pygrib/_pygrib.pyx
Line 690 in b99db98
The text was updated successfully, but these errors were encountered: