diff --git a/src/decoders/GribDecoder.cc b/src/decoders/GribDecoder.cc index 72992912..634d5827 100644 --- a/src/decoders/GribDecoder.cc +++ b/src/decoders/GribDecoder.cc @@ -159,11 +159,7 @@ long computeStep(const GribDecoder& grib, const string& key) { stepUnits["30Y"] = stepUnits["M"] * 30; stepUnits["C"] = stepUnits["M"] * 100; } - string units; - if (grib.getstring("indicatorOfUnitOfTimeRange") == "m") - units = "m"; - else - units = grib.getstring("stepUnits"); + string units = grib.getstring("stepUnits"); long step = grib.getLong(key);