mirror of https://github.com/ecmwf/eccodes.git
correction for mars namespace with quantile key
This commit is contained in:
parent
125ea19326
commit
53f5ae704b
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue