ECC-1261: GRIB local definition 12: MARS 'time' key should be HHMM not single digit

This commit is contained in:
Shahram Najm 2021-07-08 14:36:35 +01:00
parent eac182b328
commit a516cdcc5f
2 changed files with 10 additions and 2 deletions

View File

@ -57,8 +57,12 @@ alias totalNumber=numberOfForecastsInEnsemble;
unsigned[4] indexingDate: dump; # MARS archiving date (YYYYMMDD)
unsigned[2] indexingTime: dump; # MARS archiving time (HHMM)
transient indexingTimeHH = indexingTime/100 : hidden;
transient indexingTimeMM = indexingTime - 100 * indexingTimeHH : hidden;
meta indexingTimeHHMM sprintf("%.2d%.2d",indexingTimeHH,indexingTimeMM);
alias mars.date = indexingDate;
alias mars.time = indexingTime;
alias mars.time = indexingTimeHHMM;
# spareSetToZero
pad padding_loc12_1(50);

View File

@ -8,7 +8,11 @@ alias local.methodNumber=methodNumber;
unsigned[4] indexingDate: dump; # MARS archiving date (YYYYMMDD)
unsigned[2] indexingTime: dump; # MARS archiving time (HHMM)
transient indexingTimeHH = indexingTime/100 : hidden;
transient indexingTimeMM = indexingTime - 100 * indexingTimeHH : hidden;
meta indexingTimeHHMM sprintf("%.2d%.2d",indexingTimeHH,indexingTimeMM);
alias mars.date = indexingDate;
alias mars.time = indexingTime;
alias mars.time = indexingTimeHHMM;
pad padding_loc12_1(50);