Skip to content

Commit 47cff3c

Browse files
committedFeb 21, 2024
Fix validity date in title when step is 60m [MAGP-1362]
1 parent 0891014 commit 47cff3c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
 

‎src/decoders/GribDecoder.cc

+1-5
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,7 @@ long computeStep(const GribDecoder& grib, const string& key) {
159159
stepUnits["30Y"] = stepUnits["M"] * 30;
160160
stepUnits["C"] = stepUnits["M"] * 100;
161161
}
162-
string units;
163-
if (grib.getstring("indicatorOfUnitOfTimeRange") == "m")
164-
units = "m";
165-
else
166-
units = grib.getstring("stepUnits");
162+
string units = grib.getstring("stepUnits");
167163

168164
long step = grib.getLong(key);
169165

0 commit comments

Comments
 (0)
Please sign in to comment.