From 47cff3cd28e1a357c8ac3b940d483037ec973f20 Mon Sep 17 00:00:00 2001 From: Iain Russell Date: Wed, 21 Feb 2024 15:19:21 +0000 Subject: [PATCH] Fix validity date in title when step is 60m [MAGP-1362] --- src/decoders/GribDecoder.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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);