Merging multiple if clauses into a single one

This commit is contained in:
Robert Osinski 2024-03-11 11:33:53 +00:00
parent d21279d857
commit 63d7f7ffae
1 changed files with 1 additions and 25 deletions

View File

@ -313,31 +313,7 @@ alias time.stepType=stepType;
# ECC-457: GRIB1 to GRIB2 conversion
concept_nofail stepTypeForConversion (unknown, "stepTypeForConversion.def", conceptsDir2, conceptsDir1);
if (stepTypeForConversion is "accum" ) {
if (productDefinitionTemplateNumber == 1) {
alias productDefinitionTemplateNumber=eleven;
}
else {
alias productDefinitionTemplateNumber=eight;
}
}
if (stepTypeForConversion is "max" ) {
if (productDefinitionTemplateNumber == 1) {
alias productDefinitionTemplateNumber=eleven;
}
else {
alias productDefinitionTemplateNumber=eight;
}
}
if (stepTypeForConversion is "min" ) {
if (productDefinitionTemplateNumber == 1) {
alias productDefinitionTemplateNumber=eleven;
}
else {
alias productDefinitionTemplateNumber=eight;
}
}
if (stepTypeForConversion is "avg" ) {
if (stepTypeForConversion is "accum" || stepTypeForConversion is "max" || stepTypeForConversion is "min" || stepTypeForConversion is "avg") {
if (productDefinitionTemplateNumber == 1) {
alias productDefinitionTemplateNumber=eleven;
}