mirror of https://github.com/ecmwf/eccodes.git
Merging multiple if clauses into a single one
This commit is contained in:
parent
d21279d857
commit
63d7f7ffae
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue