ECC-1018: Fix offset mismatch error when setting numChars

This commit is contained in:
Shahram Najm 2019-11-14 19:51:26 +00:00
parent c32c322d0b
commit 3d7580a69a
2 changed files with 4 additions and 9 deletions

View File

@ -98,3 +98,5 @@ meta endStepInHours long_vector(stepRangeInHours,1) : dump;
constant paramId = 0; constant paramId = 0;
alias parameter = paramId; alias parameter = paramId;
alias ls.parameter=parameter; alias ls.parameter=parameter;
section_padding section1Padding : read_only;

View File

@ -11,8 +11,6 @@ section_length[3] section4Length ;
unsigned[1] reserved1=0 : hidden; unsigned[1] reserved1=0 : hidden;
if (reserved1 == 0) {
flags[1] missingDataFlag 'grib1/1.table'; flags[1] missingDataFlag 'grib1/1.table';
unsigned[1] numberOfBytesPerInteger ; unsigned[1] numberOfBytesPerInteger ;
@ -43,13 +41,8 @@ if(numberOfBytesPerInteger == 2) { signed[2] integerValues[numberOfIntegers]; }
if(numberOfBytesPerInteger == 3) { signed[3] integerValues[numberOfIntegers]; } if(numberOfBytesPerInteger == 3) { signed[3] integerValues[numberOfIntegers]; }
if(numberOfBytesPerInteger == 4) { signed[4] integerValues[numberOfIntegers]; } if(numberOfBytesPerInteger == 4) { signed[4] integerValues[numberOfIntegers]; }
charValues list(numberOfChars) { charValues list(numberOfCharacters) {
ascii[1] char; ascii[1] char;
} }
alias charVal=charValues; alias charVal=charValues;
} else { #section_padding padding;
#TODO: decode properly these old data
section_padding padding;
}