Skip to content

Commit

Permalink
Update kerchunk/grib2.py
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Durant <[email protected]>
  • Loading branch information
emfdavid and martindurant authored Nov 30, 2023
1 parent 0b22a2d commit 7f17999
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kerchunk/grib2.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,9 @@ def grib_tree(

def correct_hrrr_subhf_step(group: Dict) -> Dict:
"""
Overrides the definition of the step variable. Sets the value equal to the `valid_time - time`
Overrides the definition of the "step" variable.
Sets the value equal to the `valid_time - time`
in hours as a floating point value. This fixes issues with the HRRR SubHF grib2 step as read by
cfgrib via scan_grib.
The result is a deep copy, the original data is unmodified.
Expand Down

0 comments on commit 7f17999

Please sign in to comment.