mirror of https://github.com/ecmwf/eccodes.git
Feature/mars namespace quantiles (#250)
* initial commit * quantile mars namespace - GRIB2 and GRIB3 same -> if else * ECC-1935: include mars.quantile.def instead of repeating same definitions several times * Update grib.efhs.cd.def Fix error * ECC-1935: remove GRIB2 from if clause --------- Co-authored-by: shahramn <masn@ecmwf.int>
This commit is contained in:
parent
3812f5ef18
commit
886460db9b
|
@ -1,4 +1,3 @@
|
|||
alias mars.step = stepRange;
|
||||
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
|
||||
alias mars.quantile = marsQuantile;
|
||||
alias mars.step = stepRange;
|
||||
|
||||
include "mars/mars.quantile.def"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
alias mars.step = stepRange;
|
||||
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
|
||||
alias mars.quantile = marsQuantile;
|
||||
alias mars.step = stepRange;
|
||||
|
||||
include "mars/mars.quantile.def"
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
alias mars.step = stepRange;
|
||||
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
|
||||
alias mars.quantile = marsQuantile;
|
||||
alias mars.step = stepRange;
|
||||
|
||||
include "mars/mars.quantile.def"
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
alias mars.step = stepRange;
|
||||
alias mars.quantile = quantile;
|
||||
alias mars.step = stepRange;
|
||||
|
||||
include "mars/mars.quantile.def"
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
alias mars.step = stepRange;
|
||||
alias mars.quantile = quantile;
|
||||
alias mars.step = stepRange;
|
||||
|
||||
include "mars/mars.quantile.def"
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
alias mars.step = stepRange;
|
||||
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
|
||||
alias mars.quantile = marsQuantile;
|
||||
alias mars.step = stepRange;
|
||||
|
||||
include "mars/mars.quantile.def"
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
alias mars.step = stepRange;
|
||||
meta marsQuantile sprintf("%d:%d",perturbationNumber,numberOfForecastsInEnsemble);
|
||||
alias mars.quantile = marsQuantile;
|
||||
alias mars.step = stepRange;
|
||||
|
||||
include "mars/mars.quantile.def"
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
alias mars.step = stepRange;
|
||||
alias mars.quantile = quantile;
|
||||
alias mars.step = stepRange;
|
||||
|
||||
include "mars/mars.quantile.def"
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
alias mars.step = stepRange;
|
||||
alias mars.quantile = quantile;
|
||||
alias mars.step = stepRange;
|
||||
|
||||
include "mars/mars.quantile.def"
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue