ECC-1724: Implement changes for CARRA monthly/daily products

This commit is contained in:
Shahram Najm 2023-11-22 17:09:38 +00:00
parent c2a56f3910
commit 1b245f8a38
1 changed files with 8 additions and 12 deletions

View File

@ -75,8 +75,7 @@ concept marsType(unknown) {
} }
} }
# get the values from the 1st most outer loop which matter! # get the values from the 1st most outer loop which matter
# aarays should be implemented in ecCodes as for bufr i.e. outerLoopLengthOfTimeRange[0] => #0#lengthOfTimeRange
meta outerLoopLengthOfTimeRange element(lengthOfTimeRange, 0); meta outerLoopLengthOfTimeRange element(lengthOfTimeRange, 0);
meta outerLoopTypeOfStatisticalProcessing element(typeOfStatisticalProcessing, 0); meta outerLoopTypeOfStatisticalProcessing element(typeOfStatisticalProcessing, 0);
meta outerLoopTypeOfTimeIncrement element(typeOfTimeIncrement, 0); meta outerLoopTypeOfTimeIncrement element(typeOfTimeIncrement, 0);
@ -119,27 +118,24 @@ alias mars.stream = marsStream;
alias mars.type = marsType; alias mars.type = marsType;
if (marsStream is "moda") { if (marsStream is "moda") {
meta verificationDate g1verificationdate(dataDate, dataTime, outerLoopLengthOfTimeRange) : read_only;
meta verificationDate g1verificationdate(dataDate, dataTime, outerLoopLengthOfTimeRange) : read_only;
meta monthlyVerificationDate g1monthlydate(verificationDate) : no_copy; meta monthlyVerificationDate g1monthlydate(verificationDate) : no_copy;
alias mars.date = monthlyVerificationDate; alias mars.date = monthlyVerificationDate;
unalias mars.time; unalias mars.time;
unalias mars.step; unalias mars.step;
} }
if (marsStream is "dame") { if (marsStream is "dame") {
if (!(outerLoopTypeOfStatisticalProcessing == 3 || outerLoopTypeOfStatisticalProcessing == 2)) { if (!(outerLoopTypeOfStatisticalProcessing == 3 || outerLoopTypeOfStatisticalProcessing == 2)) {
# not mind or maxd # not mind or maxd
alias mars.date = validityDate; alias mars.date = validityDate;
} }
if (outerLoopLengthOfTimeRange == 24) { if (outerLoopLengthOfTimeRange == 24) {
# accumd # accumd
meta verificationDate g1verificationdate(dataDate, dataTime, outerLoopLengthOfTimeRange) : read_only; meta verificationDate g1verificationdate(dataDate, dataTime, outerLoopLengthOfTimeRange) : read_only;
alias mars.date = verificationDate; alias mars.date = verificationDate;
} }
unalias mars.time; unalias mars.time;