ECC-1933 and ECC-1935

This commit is contained in:
shahramn 2024-10-14 15:28:30 +01:00
parent b95024fa23
commit 0964fc1001
14 changed files with 44 additions and 32 deletions

View File

@ -43,10 +43,10 @@ g1_message_length[3] totalLength(section4Length);
position startOfHeaders;
unsigned[1] editionNumber = 1 : edition_specific,dump;
template section_1 "grib1/section.1.def";
alias ls.edition = editionNumber;
template section_1 "grib1/section.1.def";
# Note flagbit numbers 7 to 0, while wmo is 1 to 8
flagbit gridDescriptionSectionPresent(section1Flags,7) = 1;
meta GDSPresent gds_is_present(gridDescriptionSectionPresent,gridDefinition,bitmapPresent,values): dump;

View File

@ -1,4 +1,3 @@
alias mars.step = stepRange;
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
alias mars.quantile = marsQuantile;
include "mars/mars.quantile.def"

View File

@ -1,4 +1,4 @@
alias mars.step = stepRange;
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
alias mars.quantile = marsQuantile;
alias mars.step = stepRange;
include "mars/mars.quantile.def"

View File

@ -1,4 +1,3 @@
alias mars.step = stepRange;
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
alias mars.quantile = marsQuantile;
include "mars/mars.quantile.def"

View File

@ -1,3 +1,3 @@
alias mars.step = stepRange;
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
alias mars.quantile = marsQuantile;
include "mars/mars.quantile.def"

View File

@ -1,3 +1,3 @@
alias mars.step = stepRange;
alias mars.quantile = quantile;
include "mars/mars.quantile.def"

View File

@ -1,3 +1,3 @@
alias mars.step = stepRange;
alias mars.quantile = quantile;
include "mars/mars.quantile.def"

View File

@ -1,4 +1,3 @@
alias mars.step = stepRange;
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
alias mars.quantile = marsQuantile;
include "mars/mars.quantile.def"

View File

@ -1,3 +1,3 @@
alias mars.step = stepRange;
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
alias mars.quantile = marsQuantile;
include "mars/mars.quantile.def"

View File

@ -3,8 +3,7 @@ alias mars.origin = centre;
meta forecastperiod g1fcperiod(P1,P2,timeRangeIndicator,indicatorOfUnitOfTimeRange) : no_copy;
alias mars.fcperiod = forecastperiod;
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
alias mars.quantile = marsQuantile;
include "mars/mars.quantile.def"
# TODO: Check why they are set in the first place
unalias mars.step;

View File

@ -3,8 +3,7 @@ alias mars.origin = centre;
meta forecastperiod g1fcperiod(P1,P2,timeRangeIndicator,indicatorOfUnitOfTimeRange) : no_copy;
alias mars.fcperiod = forecastperiod;
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
alias mars.quantile = marsQuantile;
include "mars/mars.quantile.def"
# TODO: Check why they are set in the first place
unalias mars.step;

View File

@ -1,3 +1,3 @@
alias mars.step = stepRange;
alias mars.quantile = quantile;
include "mars/mars.quantile.def"

View File

@ -1,3 +1,3 @@
alias mars.step = stepRange;
alias mars.quantile = quantile;
include "mars/mars.quantile.def"

View File

@ -0,0 +1,17 @@
if ((stream is "eehs" or stream is "efhs" or stream is "wees" or stream is "wehs") and (type is "cd")){
if (edition == 1){
# defined in local section 19
alias mars.quantile = quantile;
} else {
meta marsQuantile sprintf("%d:%d",quantileValue,totalNumberOfQuantiles);
alias mars.quantile = marsQuantile;
}
} else {
if (edition == 1){
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
alias mars.quantile = marsQuantile;
} else {
meta marsQuantile sprintf("%d:%d",quantileValue,totalNumberOfQuantiles);
alias mars.quantile = marsQuantile;
}
}