correction for mars namespace with quantile key

This commit is contained in:
Robert Osinski 2024-08-07 14:09:40 +00:00
parent 125ea19326
commit 53f5ae704b
13 changed files with 119 additions and 25 deletions

View File

@ -1,9 +1,17 @@
alias mars.step = stepRange;
if (edition == 1){
if (defined(editionNumber)){
transient gribEdition=editionNumber;
}
if (defined(edition)){
transient gribEdition=edition;
}
if (gribEdition == 1){
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
alias mars.quantile = marsQuantile;
}
if (edition == 2){
if (gribEdition == 2){
meta marsQuantile sprintf("%d:%d",quantileValue,totalNumberOfQuantiles);
alias mars.quantile = marsQuantile;
}

View File

@ -1,9 +1,17 @@
alias mars.step = stepRange;
if (edition == 1){
if (defined(editionNumber)){
transient gribEdition=editionNumber;
}
if (defined(edition)){
transient gribEdition=edition;
}
if (gribEdition == 1){
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
alias mars.quantile = marsQuantile;
}
if (edition == 2){
if (gribEdition == 2){
meta marsQuantile sprintf("%d:%d",quantileValue,totalNumberOfQuantiles);
alias mars.quantile = marsQuantile;
}

View File

@ -1,9 +1,17 @@
alias mars.step = stepRange;
if (edition == 1){
if (defined(editionNumber)){
transient gribEdition=editionNumber;
}
if (defined(edition)){
transient gribEdition=edition;
}
if (gribEdition == 1){
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
alias mars.quantile = marsQuantile;
}
if (edition == 2){
if (gribEdition == 2){
meta marsQuantile sprintf("%d:%d",quantileValue,totalNumberOfQuantiles);
alias mars.quantile = marsQuantile;
}

View File

@ -1,9 +1,17 @@
alias mars.step = stepRange;
if (edition == 1){
if (defined(editionNumber)){
transient gribEdition=editionNumber;
}
if (defined(edition)){
transient gribEdition=edition;
}
if (gribEdition == 1){
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
alias mars.quantile = marsQuantile;
}
if (edition == 2){
if (gribEdition == 2){
meta marsQuantile sprintf("%d:%d",quantileValue,totalNumberOfQuantiles);
alias mars.quantile = marsQuantile;
}

View File

@ -1,8 +1,16 @@
alias mars.step = stepRange;
if (edition == 1){
if (defined(editionNumber)){
transient gribEdition=editionNumber;
}
if (defined(edition)){
transient gribEdition=edition;
}
if (gribEdition == 1){
alias mars.quantile = quantile;
}
if (edition == 2){
if (gribEdition == 2){
meta marsQuantile sprintf("%d:%d",quantileValue,totalNumberOfQuantiles);
alias mars.quantile = marsQuantile;
}

View File

@ -1,8 +1,16 @@
alias mars.step = stepRange;
if (edition == 1){
if (defined(editionNumber)){
transient gribEdition=editionNumber;
}
if (defined(edition)){
transient gribEdition=edition;
}
if (gribEdition == 1){
alias mars.quantile = quantile;
}
if (edition == 2){
if (gribEdition == 2){
meta marsQuantile sprintf("%d:%d",quantileValue,totalNumberOfQuantiles);
alias mars.quantile = marsQuantile;
}

View File

@ -1,9 +1,17 @@
alias mars.step = stepRange;
if (edition == 1){
if (defined(editionNumber)){
transient gribEdition=editionNumber;
}
if (defined(edition)){
transient gribEdition=edition;
}
if (gribEdition == 1){
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
alias mars.quantile = marsQuantile;
}
if (edition == 2){
if (gribEdition == 2){
meta marsQuantile sprintf("%d:%d",quantileValue,totalNumberOfQuantiles);
alias mars.quantile = marsQuantile;
}

View File

@ -1,9 +1,17 @@
alias mars.step = stepRange;
if (edition == 1){
if (defined(editionNumber)){
transient gribEdition=editionNumber;
}
if (defined(edition)){
transient gribEdition=edition;
}
if (gribEdition == 1){
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
alias mars.quantile = marsQuantile;
}
if (edition == 2){
if (gribEdition == 2){
meta marsQuantile sprintf("%d:%d",quantileValue,totalNumberOfQuantiles);
alias mars.quantile = marsQuantile;
}

View File

@ -3,11 +3,18 @@ alias mars.origin = centre;
meta forecastperiod g1fcperiod(P1,P2,timeRangeIndicator,indicatorOfUnitOfTimeRange) : no_copy;
alias mars.fcperiod = forecastperiod;
if (edition == 1){
if (defined(editionNumber)){
transient gribEdition=editionNumber;
}
if (defined(edition)){
transient gribEdition=edition;
}
if (gribEdition == 1){
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
alias mars.quantile = marsQuantile;
}
if (edition == 2){
if (gribEdition == 2){
meta marsQuantile sprintf("%d:%d",quantileValue,totalNumberOfQuantiles);
alias mars.quantile = marsQuantile;
}

View File

@ -3,11 +3,18 @@ alias mars.origin = centre;
meta forecastperiod g1fcperiod(P1,P2,timeRangeIndicator,indicatorOfUnitOfTimeRange) : no_copy;
alias mars.fcperiod = forecastperiod;
if (edition == 1){
if (defined(editionNumber)){
transient gribEdition=editionNumber;
}
if (defined(edition)){
transient gribEdition=edition;
}
if (gribEdition == 1){
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
alias mars.quantile = marsQuantile;
}
if (edition == 2){
if (gribEdition == 2){
meta marsQuantile sprintf("%d:%d",quantileValue,totalNumberOfQuantiles);
alias mars.quantile = marsQuantile;
}

View File

@ -12,7 +12,7 @@ if (class is "od") { alias mars.origin = centre; }
# Special rule for Grib 2 local definition 11:
# Key "centre" should be set to ECMWF and key "originatingCentreOfAnalysis"
# should be the original centre
if (editionNumber == 2 && localDefinitionNumber == 11) {
if (gribEditionNumber == 2 && localDefinitionNumber == 11) {
alias mars.origin = originatingCentreOfAnalysis;
}

View File

@ -1,8 +1,16 @@
alias mars.step = stepRange;
if (edition == 1){
if (defined(editionNumber)){
transient gribEdition=editionNumber;
}
if (defined(edition)){
transient gribEdition=edition;
}
if (gribEdition == 1){
alias mars.quantile = quantile;
}
if (edition == 2){
if (gribEdition == 2){
meta marsQuantile sprintf("%d:%d",quantileValue,totalNumberOfQuantiles);
alias mars.quantile = marsQuantile;
}

View File

@ -1,8 +1,16 @@
alias mars.step = stepRange;
if (edition == 1){
if (defined(editionNumber)){
transient gribEdition=editionNumber;
}
if (defined(edition)){
transient gribEdition=edition;
}
if (gribEdition == 1){
alias mars.quantile = quantile;
}
if (edition == 2){
if (gribEdition == 2){
meta marsQuantile sprintf("%d:%d",quantileValue,totalNumberOfQuantiles);
alias mars.quantile = marsQuantile;
}