CCSDS: set bitsPerValue=0 for constant field

This commit is contained in:
Shahram Najm 2022-05-06 19:10:03 +01:00
parent 75ae84704b
commit 417a68fb3d
1 changed files with 3 additions and 0 deletions

View File

@ -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);