BUFR: Changing the subtype in the local section has effect on other keys
@@ -60,9 +60,9 @@ if (section2Present && bufrHeaderCentre==98 && section2Length==52) {
meta localLongitude2 bits(keyMore,0,26,-18000000,100000) : dump,no_copy;
meta localLatitude2 bits(keyMore,32,25,-9000000,100000) : dump,no_copy;
- if (rdbSubtype > 255 || numberOfSubsets>255 ||
- ( rdbSubtype>=121 && rdbSubtype <=130 ) ||
- rdbSubtype==31) {
+ if (oldSubtype == 255 || numberOfSubsets>255 ||
+ ( oldSubtype>=121 && oldSubtype <=130 ) ||
+ oldSubtype==31) {
meta ls.localNumberOfObservations bits(keySat,0,16) : dump,long_type,no_copy;
meta ls.satelliteID bits(keySat,16,16) : dump,long_type,no_copy;
} else {
