Skip to content

Commit

Permalink
Fix validity date in title when step is 60m [MAGP-1362]
Browse files Browse the repository at this point in the history
  • Loading branch information
iainrussell committed Feb 21, 2024
1 parent 0891014 commit 47cff3c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/decoders/GribDecoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 47cff3c

Please sign in to comment.