From 9d89ef5263d80fa45adbd1796f9ac149d61294c3 Mon Sep 17 00:00:00 2001 From: Kevin Paul Date: Thu, 11 Apr 2024 12:45:58 +0200 Subject: [PATCH] Add step:int remapping for coords computation --- kerchunk/grib2.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kerchunk/grib2.py b/kerchunk/grib2.py index 0003cd79..2eb49d39 100644 --- a/kerchunk/grib2.py +++ b/kerchunk/grib2.py @@ -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: