mirror of https://github.com/ecmwf/eccodes.git
Cleanup
This commit is contained in:
parent
dfa9547bcc
commit
f2e980eb3c
|
@ -1,5 +1,4 @@
|
|||
# START grib1::section
|
||||
# SECTION 4, Binary data section
|
||||
# GRIB1 SECTION 4, Binary data section
|
||||
# Length of section
|
||||
position offsetSection4;
|
||||
|
||||
|
@ -125,7 +124,6 @@ alias ls.packingType=packingType;
|
|||
alias typeOfPacking=packingType;
|
||||
|
||||
if( binaryScaleFactor == -32767) {
|
||||
|
||||
unsigned[1] bitsPerValue : dump ;
|
||||
alias numberOfBitsContainingEachPackedValue = bitsPerValue;
|
||||
|
||||
|
@ -220,7 +218,6 @@ concept gridType {
|
|||
"regular_stretched_gg" = { dataRepresentationType = 24; sphericalHarmonics = 0; PLPresent=0; } # = stretched_gg
|
||||
"regular_stretched_rotated_gg" = { dataRepresentationType = 34; sphericalHarmonics = 0; PLPresent=0; } # = stretched_rotated_gg
|
||||
|
||||
|
||||
"sh" = {dataRepresentationType = 50; sphericalHarmonics = 1; PLPresent=0; }
|
||||
"rotated_sh" = {dataRepresentationType = 60; sphericalHarmonics = 1; PLPresent=0; }
|
||||
"stretched_sh" = {dataRepresentationType = 70; sphericalHarmonics = 1; PLPresent=0; }
|
||||
|
|
|
@ -144,7 +144,6 @@ static void dump(grib_accessor* a, grib_dumper* dumper)
|
|||
|
||||
static int unpack_long(grib_accessor* a, long* val, size_t *len)
|
||||
{
|
||||
|
||||
unsigned char dat = 0;
|
||||
if(*len < 1)
|
||||
{
|
||||
|
@ -154,7 +153,6 @@ static int unpack_long (grib_accessor* a, long* val, size_t *len)
|
|||
}
|
||||
dat = grib_handle_of_accessor(a)->buffer->data[a->offset] & 0x0f;
|
||||
|
||||
|
||||
*val = dat;
|
||||
*len = 1;
|
||||
return GRIB_SUCCESS;
|
||||
|
@ -207,4 +205,3 @@ static int compare(grib_accessor* a,grib_accessor* b) {
|
|||
if (bval != aval) return GRIB_VALUE_MISMATCH;
|
||||
return GRIB_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue