mirror of https://github.com/ecmwf/eccodes.git
Definitions: Simplify logic, use isnot operator
This commit is contained in:
parent
3381521394
commit
5e4f379ea0
|
@ -4,7 +4,7 @@
|
|||
if (centre is "ecmf" or datasetForLocal is "era6") {
|
||||
concept modelName(unknown, "modelNameConcept.def", conceptsMasterDir, conceptsLocalDirAll): no_copy, dump, read_only;
|
||||
|
||||
if (!(modelName is "unknown")) {
|
||||
if (modelName isnot "unknown") {
|
||||
concept modelVersion(unknown, "modelVersionConcept_[modelName].def", conceptsMasterDir, conceptsLocalDirAll): no_copy, dump, read_only;
|
||||
# alias ls.model = modelName;
|
||||
# alias mars.model = modelName;
|
||||
|
|
|
@ -9,6 +9,6 @@ concept destineOrigin(unknown, "destineOriginConcept.def", conceptsDir2, concept
|
|||
unalias mars.domain;
|
||||
|
||||
# ECC-1796: stepRange indexing for DestinE ExtremesDT and On-Demand ExtremesDT data
|
||||
if ( defined(dataset) && !(dataset is "climate-dt") ) {
|
||||
if ( defined(dataset) && dataset isnot "climate-dt" ) {
|
||||
alias mars.step=stepRange;
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ concept datasetForLocal(unknown) {
|
|||
"unknown" = { dummy=1; }
|
||||
}
|
||||
|
||||
if (!(datasetForLocal is "unknown")) {
|
||||
if (datasetForLocal isnot "unknown") {
|
||||
constant conceptsDir2 = "grib2/localConcepts/[datasetForLocal]": hidden;
|
||||
constant conceptsDir1 = "grib2": hidden;
|
||||
}
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
#no step in type an
|
||||
unalias mars.step;
|
||||
|
||||
if (class is "od") { alias mars.system = systemNumber; }
|
||||
if (class is "me") { alias mars.system = systemNumber; }
|
||||
if (class is "en") { alias mars.system = systemNumber; }
|
||||
if (class is "c3") { alias mars.system = systemNumber; }
|
||||
if (class is "ci") { alias mars.system = systemNumber; }
|
||||
if (class is "od" || class is "me" || class is "en" ||
|
||||
class is "c3" || class is "ci")
|
||||
{
|
||||
alias mars.system = systemNumber;
|
||||
}
|
||||
|
||||
alias mars.number = perturbationNumber;
|
||||
alias mars.method = methodNumber;
|
||||
|
||||
if (!(class is "gw")) { # ECC-1448
|
||||
if (class isnot "gw") { # ECC-1448
|
||||
alias mars.origin = centre;
|
||||
}
|
||||
|
||||
|
@ -20,4 +21,3 @@ if (centre == 80 && subCentre == 98 && class is "c3") {
|
|||
}
|
||||
|
||||
if (class is "ci") { unalias mars.method; }
|
||||
|
||||
|
|
|
@ -4,15 +4,16 @@ if (levtype is "o2d" || levtype is "o3d") {
|
|||
alias mars.step = endStep;
|
||||
}
|
||||
|
||||
if (class is "od") { alias mars.system = systemNumber; }
|
||||
if (class is "me") { alias mars.system = systemNumber; }
|
||||
if (class is "en") { alias mars.system = systemNumber; }
|
||||
if (class is "c3") { alias mars.system = systemNumber; }
|
||||
if (class is "ci") { alias mars.system = systemNumber; }
|
||||
if (class is "od" || class is "me" || class is "en" ||
|
||||
class is "c3" || class is "ci")
|
||||
{
|
||||
alias mars.system = systemNumber;
|
||||
}
|
||||
|
||||
alias mars.number = perturbationNumber;
|
||||
alias mars.method = methodNumber;
|
||||
|
||||
if (!(class is "gw")) { # ECC-1448
|
||||
if (class isnot "gw") { # ECC-1448
|
||||
alias mars.origin = centre;
|
||||
}
|
||||
|
||||
|
@ -23,4 +24,3 @@ if (centre == 80 && subCentre == 98 && class is "c3") {
|
|||
}
|
||||
|
||||
if (class is "ci") { unalias mars.method; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue