diff --git a/definitions/grib2/templates/template.4.optical.def b/definitions/grib2/templates/template.4.optical.def index 985c97805..fb27c3571 100644 --- a/definitions/grib2/templates/template.4.optical.def +++ b/definitions/grib2/templates/template.4.optical.def @@ -18,7 +18,7 @@ constant billion = 1000000000 : hidden; meta firstWavelengthInNanometres multdouble(firstWavelength, billion) : read_only; meta secondWavelengthInNanometres multdouble(secondWavelength, billion) : read_only; -if (defined(MTG2Switch) and MTG2Switch == 0) { +if (defined(MTG2Switch) and MTG2Switch != 0) { # typeOfWavelengthInterval (table 4.91 specifies if first / second / first+second limit(s) are to be defined) if ( typeOfWavelengthInterval == 0 || typeOfWavelengthInterval == 3 || typeOfWavelengthInterval == 5 || typeOfWavelengthInterval == 8 || typeOfWavelengthInterval == 11 ){ alias mars.wavelength = firstWavelengthInNanometres ;