mirror of https://github.com/ecmwf/eccodes.git
CCSDS: set bitsPerValue=0 for constant field
This commit is contained in:
parent
75ae84704b
commit
417a68fb3d
|
@ -400,6 +400,9 @@ static int pack_double(grib_accessor* a, const double* val, size_t* len)
|
|||
|
||||
if ((err = grib_set_long_internal(hand, self->number_of_values, n_vals)) != GRIB_SUCCESS)
|
||||
return err;
|
||||
bits_per_value = 0;
|
||||
if ((err = grib_set_long_internal(hand, self->bits_per_value, bits_per_value)) != GRIB_SUCCESS)
|
||||
return err;
|
||||
|
||||
grib_buffer_replace(a, NULL, 0, 1, 1);
|
||||
|
||||
|
|
Loading…
Reference in New Issue