Definitions: Simplify IF statements

This commit is contained in:
shahramn 2024-09-10 18:14:35 +01:00
parent 15685f9922
commit b74bc1e46c
16 changed files with 49 additions and 55 deletions

View File

@ -4,5 +4,6 @@ alias mars.fcmonth = marsForecastMonth;
unalias mars.step; unalias mars.step;
alias mars.method = methodNumber; alias mars.method = methodNumber;
if (class is "od") { alias mars.system = systemNumber; } if (class is "od" || class is "en") {
if (class is "en") { alias mars.system = systemNumber; } alias mars.system = systemNumber;
}

View File

@ -5,10 +5,9 @@ unalias mars.step;
alias mars.origin = centre; alias mars.origin = centre;
alias mars.method = methodNumber; alias mars.method = methodNumber;
if (class is "od") { alias mars.system = systemNumber; } if (class is "od" || class is "me" || class is "en" || class is "c3") {
if (class is "me") { alias mars.system = systemNumber; } alias mars.system = systemNumber;
if (class is "en") { alias mars.system = systemNumber; } }
if (class is "c3") { alias mars.system = systemNumber; }
# See ECC-624 # See ECC-624
if (centre == 80 && subCentre == 98 && (class is "c3" || class is "ci")) { if (centre == 80 && subCentre == 98 && (class is "c3" || class is "ci")) {

View File

@ -6,10 +6,9 @@ alias mars.number = perturbationNumber;
alias mars.origin = centre; alias mars.origin = centre;
alias mars.method = methodNumber; alias mars.method = methodNumber;
if (class is "od") { alias mars.system = systemNumber; } if (class is "od" || class is "me" || class is "en" || class is "c3") {
if (class is "me") { alias mars.system = systemNumber; } alias mars.system = systemNumber;
if (class is "en") { alias mars.system = systemNumber; } }
if (class is "c3") { alias mars.system = systemNumber; }
# See ECC-624 # See ECC-624
if (centre == 80 && subCentre == 98 && (class is "c3" || class is "ci")) { if (centre == 80 && subCentre == 98 && (class is "c3" || class is "ci")) {

View File

@ -6,11 +6,9 @@ alias mars.method = methodNumber;
unalias mars.step; unalias mars.step;
if (class is "od") { alias mars.system = systemNumber; } if (class is "od" || class is "me" || class is "en" || class is "c3" || class is "ci") {
if (class is "me") { alias mars.system = systemNumber; } 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; }
# See ECC-624 # See ECC-624
if (centre == 80 && subCentre == 98 && (class is "c3" || class is "ci")) { if (centre == 80 && subCentre == 98 && (class is "c3" || class is "ci")) {

View File

@ -5,11 +5,9 @@ alias mars.number = perturbationNumber;
alias mars.origin = centre; alias mars.origin = centre;
alias mars.method = methodNumber; alias mars.method = methodNumber;
if (class is "od" || class is "me" || class is "en" || class is "c3") {
if (class is "od") { alias mars.system = systemNumber; } 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; }
# See ECC-624 # See ECC-624
if (centre == 80 && subCentre == 98 && (class is "c3" || class is "ci")) { if (centre == 80 && subCentre == 98 && (class is "c3" || class is "ci")) {

View File

@ -7,10 +7,9 @@ unalias mars.step;
alias mars.method = methodNumber; alias mars.method = methodNumber;
if (class is "od") { alias mars.system = systemNumber; } if (class is "od" || class is "me" || class is "en" || class is "c3") {
if (class is "me") { alias mars.system = systemNumber; } alias mars.system = systemNumber;
if (class is "en") { alias mars.system = systemNumber; } }
if (class is "c3") { alias mars.system = systemNumber; }
# See ECC-624 # See ECC-624
if (centre == 80 && subCentre == 98 && (class is "c3" || class is "ci")) { if (centre == 80 && subCentre == 98 && (class is "c3" || class is "ci")) {

View File

@ -5,10 +5,9 @@ unalias mars.step;
alias mars.origin = centre; alias mars.origin = centre;
alias mars.method = methodNumber; alias mars.method = methodNumber;
if (class is "od") { alias mars.system = systemNumber; } if (class is "od" || class is "me" || class is "en" || class is "c3") {
if (class is "me") { alias mars.system = systemNumber; } alias mars.system = systemNumber;
if (class is "en") { alias mars.system = systemNumber; } }
if (class is "c3") { alias mars.system = systemNumber; }
# See ECC-624 # See ECC-624
if (centre == 80 && subCentre == 98 && (class is "c3" || class is "ci")) { if (centre == 80 && subCentre == 98 && (class is "c3" || class is "ci")) {

View File

@ -1,5 +1,6 @@
alias mars.number = perturbationNumber; alias mars.number = perturbationNumber;
alias mars.method = methodNumber; alias mars.method = methodNumber;
if (class is "od") { alias mars.system = systemNumber; }
if (class is "me") { alias mars.system = systemNumber; } if (class is "od" || class is "me" || class is "en") {
if (class is "en") { alias mars.system = systemNumber; } alias mars.system = systemNumber;
}

View File

@ -1,5 +1,5 @@
alias mars.number = perturbationNumber; alias mars.number = perturbationNumber;
alias mars.method = methodNumber; alias mars.method = methodNumber;
if (class is "od") { alias mars.system = systemNumber; } if (class is "od" || class is "me" || class is "en") {
if (class is "me") { alias mars.system = systemNumber; } alias mars.system = systemNumber;
if (class is "en") { alias mars.system = systemNumber; } }

View File

@ -1,5 +1,5 @@
alias mars.number = perturbationNumber; alias mars.number = perturbationNumber;
alias mars.method = methodNumber; alias mars.method = methodNumber;
if (class is "od") { alias mars.system = systemNumber; } if (class is "od" || class is "me" || class is "en") {
if (class is "me") { alias mars.system = systemNumber; } alias mars.system = systemNumber;
if (class is "en") { alias mars.system = systemNumber; } }

View File

@ -1,5 +1,5 @@
alias mars.number = perturbationNumber; alias mars.number = perturbationNumber;
alias mars.method = methodNumber; alias mars.method = methodNumber;
if (class is "od") { alias mars.system = systemNumber; } if (class is "od" || class is "me" || class is "en") {
if (class is "me") { alias mars.system = systemNumber; } alias mars.system = systemNumber;
if (class is "en") { alias mars.system = systemNumber; } }

View File

@ -1,5 +1,5 @@
alias mars.number = perturbationNumber; alias mars.number = perturbationNumber;
alias mars.method = methodNumber; alias mars.method = methodNumber;
if (class is "od") { alias mars.system = systemNumber; } if (class is "od" || class is "me" || class is "en") {
if (class is "me") { alias mars.system = systemNumber; } alias mars.system = systemNumber;
if (class is "en") { alias mars.system = systemNumber; } }

View File

@ -4,6 +4,6 @@ alias mars.number = perturbationNumber;
unalias mars.step; unalias mars.step;
alias mars.method = methodNumber; alias mars.method = methodNumber;
if (class is "od") { alias mars.system = systemNumber; } if (class is "od" || class is "me" || class is "en") {
if (class is "me") { alias mars.system = systemNumber; } alias mars.system = systemNumber;
if (class is "en") { alias mars.system = systemNumber; } }

View File

@ -4,6 +4,6 @@ alias mars.number = perturbationNumber;
unalias mars.step; unalias mars.step;
alias mars.method = methodNumber; alias mars.method = methodNumber;
if (class is "od") { alias mars.system = systemNumber; } if (class is "od" || class is "me" || class is "en") {
if (class is "me") { alias mars.system = systemNumber; } alias mars.system = systemNumber;
if (class is "en") { alias mars.system = systemNumber; } }

View File

@ -4,6 +4,6 @@ alias mars.number = perturbationNumber;
unalias mars.step; unalias mars.step;
alias mars.method = methodNumber; alias mars.method = methodNumber;
if (class is "od") { alias mars.system = systemNumber; } if (class is "od" || class is "me" || class is "en") {
if (class is "me") { alias mars.system = systemNumber; } alias mars.system = systemNumber;
if (class is "en") { alias mars.system = systemNumber; } }

View File

@ -4,6 +4,6 @@ alias mars.number = perturbationNumber;
unalias mars.step; unalias mars.step;
alias mars.method = methodNumber; alias mars.method = methodNumber;
if (class is "od") { alias mars.system = systemNumber; } if (class is "od" || class is "me" || class is "en") {
if (class is "me") { alias mars.system = systemNumber; } alias mars.system = systemNumber;
if (class is "en") { alias mars.system = systemNumber; } }