Skip to content

Commit

Permalink
Add step:int remapping for coords computation
Browse files Browse the repository at this point in the history
  • Loading branch information
kmpaul committed Apr 11, 2024
1 parent a0c4f3b commit 9d89ef5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions kerchunk/grib2.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,11 @@ def scan_grib(
z[varName].attrs["_ARRAY_DIMENSIONS"] = dims

for coord in cfgrib.dataset.COORD_ATTRS:
coord2 = {"latitude": "latitudes", "longitude": "longitudes"}.get(
coord, coord
)
coord2 = {
"latitude": "latitudes",
"longitude": "longitudes",
"step": "step:int",
}.get(coord, coord)
try:
x = m.get(coord2)
except eccodes.WrongStepUnitError as e:
Expand Down

0 comments on commit 9d89ef5

Please sign in to comment.