Skip to content

Commit b5e5866

Browse files
committed
number=1 for oper/lwda pre-mtg2 data with local section 45
1 parent f1db061 commit b5e5866

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

definitions/mars/grib.lwda.me.def

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
#alias mars.number=perturbationNumber;
22
alias mars.anoffset=offsetToEndOf4DvarWindow;
33

4-
if ( grib2LocalSectionNumber == 45) {
5-
#alias mars.number = perturbationNumber;
4+
if ( grib2LocalSectionNumber == 45 && MTG2Switch == 0) {
5+
# mars.number = componentIndex from the other local sections for this type
6+
# this has always value 1, so we mimick this for pre-mtg2 which 50r1 is part of
7+
transient pertNumber=1;
8+
alias mars.number = pertNumber;
9+
alias mars.coefficient = fourierCoefficientIndex;
10+
} else {
611
alias mars.coefficient = fourierCoefficientIndex;
712
}

definitions/mars/grib.me.def

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
label "_model errors";
22
#alias mars.number=perturbationNumber;
33

4-
if ( grib2LocalSectionNumber == 45) {
5-
#alias mars.number = perturbationNumber;
4+
if ( grib2LocalSectionNumber == 45 && MTG2Switch == 0) {
5+
# mars.number = componentIndex from the other local sections for this type
6+
# this has always value 1, so we mimick this for pre-mtg2 which 50r1 is part of
7+
transient pertNumber=1;
8+
alias mars.number = pertNumber;
9+
alias mars.coefficient = fourierCoefficientIndex;
10+
} else {
611
alias mars.coefficient = fourierCoefficientIndex;
712
}

0 commit comments

Comments
 (0)