Skip to content

Commit d056844

Browse files
committed
Merge branch 'hotfix/2.38.3'
2 parents 194ab2b + e075697 commit d056844

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.38.2
1+
2.38.3

definitions/grib1/localConcepts/ecmf/stepTypeForConversion.def

+3
Original file line numberDiff line numberDiff line change
@@ -218,3 +218,6 @@
218218
"avg"={gribTablesVersionNo=172;indicatorOfParameter=178;centre=98;}
219219
# mtntrf
220220
"avg"={gribTablesVersionNo=172;indicatorOfParameter=179;centre=98;}
221+
222+
# 10fg6
223+
"max"={gribTablesVersionNo=128;indicatorOfParameter=123;centre=98;}

definitions/grib2/templates/template.4.horizontal.def

+5-8
Original file line numberDiff line numberDiff line change
@@ -64,25 +64,22 @@ if (extraDim) {
6464
alias mars.levelist = dimension;
6565
alias mars.levtype = dimensionType;
6666
} else {
67+
# ECC-1333: levtype should be read-only in GRIB2
68+
concept mars.levtype(unknown,"marsLevtypeConcept.def",conceptsDir2,conceptsDir1):no_copy, read_only;
69+
# GRIB-372: levelist alias does not pertain to surface parameters
70+
transient tempLevtype = levtype; # Faster to copy the concept so we evaluate it once
6771
# See GRIB-74 why we store the pressureUnits in a transient
6872
transient tempPressureUnits=pressureUnits;
6973
# Same as typeOfLevel != "surface" but much quicker to evaluate
7074
# than via the concept
71-
if ( ! (typeOfFirstFixedSurface == 1 && typeOfSecondFixedSurface == 255) ) {
75+
if ( ! ((typeOfFirstFixedSurface == 1 && typeOfSecondFixedSurface == 255) || tempLevtype is "sfc" || tempLevtype is "o2d")) {
7276
if (tempPressureUnits is "Pa") {
7377
meta marsLevel scale(level,one,hundred) : read_only;
7478
alias mars.levelist=marsLevel;
7579
} else {
7680
alias mars.levelist = level;
7781
}
7882
}
79-
# ECC-1333: levtype should be read-only in GRIB2
80-
concept mars.levtype(unknown,"marsLevtypeConcept.def",conceptsDir2,conceptsDir1):no_copy, read_only;
81-
# GRIB-372: levelist alias does not pertain to surface parameters
82-
transient tempLevtype = levtype; # Faster to copy the concept so we evaluate it once
83-
if (tempLevtype is "sfc" || tempLevtype is "o2d") {
84-
unalias mars.levelist;
85-
}
8683
}
8784

8885
# See ECC-854, ECC-1435, ECC-1451, ECC-1462

0 commit comments

Comments
 (0)