Skip to content

Commit 1b245f8

Browse files
committed
ECC-1724: Implement changes for CARRA monthly/daily products
1 parent c2a56f3 commit 1b245f8

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

definitions/grib2/products_crra.def

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ concept marsType(unknown) {
7575
}
7676
}
7777

78-
# get the values from the 1st most outer loop which matter!
79-
# aarays should be implemented in ecCodes as for bufr i.e. outerLoopLengthOfTimeRange[0] => #0#lengthOfTimeRange
78+
# get the values from the 1st most outer loop which matter
8079
meta outerLoopLengthOfTimeRange element(lengthOfTimeRange, 0);
8180
meta outerLoopTypeOfStatisticalProcessing element(typeOfStatisticalProcessing, 0);
8281
meta outerLoopTypeOfTimeIncrement element(typeOfTimeIncrement, 0);
@@ -119,27 +118,24 @@ alias mars.stream = marsStream;
119118
alias mars.type = marsType;
120119

121120
if (marsStream is "moda") {
122-
123-
meta verificationDate g1verificationdate(dataDate, dataTime, outerLoopLengthOfTimeRange) : read_only;
121+
meta verificationDate g1verificationdate(dataDate, dataTime, outerLoopLengthOfTimeRange) : read_only;
124122
meta monthlyVerificationDate g1monthlydate(verificationDate) : no_copy;
125-
alias mars.date = monthlyVerificationDate;
123+
alias mars.date = monthlyVerificationDate;
126124

127125
unalias mars.time;
128126
unalias mars.step;
129127
}
130128

131129
if (marsStream is "dame") {
132-
133130
if (!(outerLoopTypeOfStatisticalProcessing == 3 || outerLoopTypeOfStatisticalProcessing == 2)) {
134-
# not mind or maxd
135-
alias mars.date = validityDate;
131+
# not mind or maxd
132+
alias mars.date = validityDate;
136133
}
137134

138135
if (outerLoopLengthOfTimeRange == 24) {
139-
# accumd
140-
meta verificationDate g1verificationdate(dataDate, dataTime, outerLoopLengthOfTimeRange) : read_only;
141-
alias mars.date = verificationDate;
142-
136+
# accumd
137+
meta verificationDate g1verificationdate(dataDate, dataTime, outerLoopLengthOfTimeRange) : read_only;
138+
alias mars.date = verificationDate;
143139
}
144140

145141
unalias mars.time;

0 commit comments

Comments
 (0)