mirror of https://github.com/ecmwf/eccodes.git
Definitions: Simplify IF statements
This commit is contained in:
parent
15685f9922
commit
b74bc1e46c
|
@ -4,5 +4,6 @@ alias mars.fcmonth = marsForecastMonth;
|
|||
unalias mars.step;
|
||||
|
||||
alias mars.method = methodNumber;
|
||||
if (class is "od") { alias mars.system = systemNumber; }
|
||||
if (class is "en") { alias mars.system = systemNumber; }
|
||||
if (class is "od" || class is "en") {
|
||||
alias mars.system = systemNumber;
|
||||
}
|
||||
|
|
|
@ -5,10 +5,9 @@ unalias mars.step;
|
|||
alias mars.origin = centre;
|
||||
alias mars.method = methodNumber;
|
||||
|
||||
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 "od" || class is "me" || class is "en" || class is "c3") {
|
||||
alias mars.system = systemNumber;
|
||||
}
|
||||
|
||||
# See ECC-624
|
||||
if (centre == 80 && subCentre == 98 && (class is "c3" || class is "ci")) {
|
||||
|
|
|
@ -6,10 +6,9 @@ alias mars.number = perturbationNumber;
|
|||
alias mars.origin = centre;
|
||||
alias mars.method = methodNumber;
|
||||
|
||||
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 "od" || class is "me" || class is "en" || class is "c3") {
|
||||
alias mars.system = systemNumber;
|
||||
}
|
||||
|
||||
# See ECC-624
|
||||
if (centre == 80 && subCentre == 98 && (class is "c3" || class is "ci")) {
|
||||
|
|
|
@ -6,11 +6,9 @@ alias mars.method = methodNumber;
|
|||
|
||||
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;
|
||||
}
|
||||
|
||||
# See ECC-624
|
||||
if (centre == 80 && subCentre == 98 && (class is "c3" || class is "ci")) {
|
||||
|
|
|
@ -5,11 +5,9 @@ alias mars.number = perturbationNumber;
|
|||
alias mars.origin = centre;
|
||||
alias mars.method = methodNumber;
|
||||
|
||||
|
||||
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 "od" || class is "me" || class is "en" || class is "c3") {
|
||||
alias mars.system = systemNumber;
|
||||
}
|
||||
|
||||
# See ECC-624
|
||||
if (centre == 80 && subCentre == 98 && (class is "c3" || class is "ci")) {
|
||||
|
|
|
@ -7,10 +7,9 @@ unalias mars.step;
|
|||
|
||||
alias mars.method = methodNumber;
|
||||
|
||||
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 "od" || class is "me" || class is "en" || class is "c3") {
|
||||
alias mars.system = systemNumber;
|
||||
}
|
||||
|
||||
# See ECC-624
|
||||
if (centre == 80 && subCentre == 98 && (class is "c3" || class is "ci")) {
|
||||
|
|
|
@ -5,10 +5,9 @@ unalias mars.step;
|
|||
alias mars.origin = centre;
|
||||
alias mars.method = methodNumber;
|
||||
|
||||
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 "od" || class is "me" || class is "en" || class is "c3") {
|
||||
alias mars.system = systemNumber;
|
||||
}
|
||||
|
||||
# See ECC-624
|
||||
if (centre == 80 && subCentre == 98 && (class is "c3" || class is "ci")) {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
alias mars.number = perturbationNumber;
|
||||
alias mars.method = methodNumber;
|
||||
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 "od" || class is "me" || class is "en") {
|
||||
alias mars.system = systemNumber;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
alias mars.number = perturbationNumber;
|
||||
alias mars.method = methodNumber;
|
||||
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 "od" || class is "me" || class is "en") {
|
||||
alias mars.system = systemNumber;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
alias mars.number = perturbationNumber;
|
||||
alias mars.method = methodNumber;
|
||||
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 "od" || class is "me" || class is "en") {
|
||||
alias mars.system = systemNumber;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
alias mars.number = perturbationNumber;
|
||||
alias mars.method = methodNumber;
|
||||
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 "od" || class is "me" || class is "en") {
|
||||
alias mars.system = systemNumber;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
alias mars.number = perturbationNumber;
|
||||
alias mars.method = methodNumber;
|
||||
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 "od" || class is "me" || class is "en") {
|
||||
alias mars.system = systemNumber;
|
||||
}
|
||||
|
|
|
@ -4,6 +4,6 @@ alias mars.number = perturbationNumber;
|
|||
unalias mars.step;
|
||||
|
||||
alias mars.method = methodNumber;
|
||||
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 "od" || class is "me" || class is "en") {
|
||||
alias mars.system = systemNumber;
|
||||
}
|
||||
|
|
|
@ -4,6 +4,6 @@ alias mars.number = perturbationNumber;
|
|||
unalias mars.step;
|
||||
|
||||
alias mars.method = methodNumber;
|
||||
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 "od" || class is "me" || class is "en") {
|
||||
alias mars.system = systemNumber;
|
||||
}
|
||||
|
|
|
@ -4,6 +4,6 @@ alias mars.number = perturbationNumber;
|
|||
unalias mars.step;
|
||||
|
||||
alias mars.method = methodNumber;
|
||||
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 "od" || class is "me" || class is "en") {
|
||||
alias mars.system = systemNumber;
|
||||
}
|
||||
|
|
|
@ -4,6 +4,6 @@ alias mars.number = perturbationNumber;
|
|||
unalias mars.step;
|
||||
|
||||
alias mars.method = methodNumber;
|
||||
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 "od" || class is "me" || class is "en") {
|
||||
alias mars.system = systemNumber;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue