mirror of https://github.com/ecmwf/eccodes.git
ECC-1018: Fix offset mismatch error when setting numChars
This commit is contained in:
parent
c32c322d0b
commit
3d7580a69a
|
@ -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;
|
||||||
|
|
|
@ -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;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue