CCSDS packing: add test for different orders

This commit is contained in:
Shahram Najm 2021-01-21 20:07:02 +00:00
parent 52c06dae7f
commit a27618253e
3 changed files with 130948 additions and 4 deletions

View File

@ -330,7 +330,7 @@ static int pack_double(grib_accessor* a, const double* val, size_t* len)
unsigned char* buf = NULL;
unsigned char* encoded = NULL;
size_t n_vals = 0;
long nn = 0;
//long nn = 0;
long binary_scale_factor = 0;
long decimal_scale_factor = 0;
@ -350,9 +350,10 @@ static int pack_double(grib_accessor* a, const double* val, size_t* len)
self->dirty = 1;
if ((err = grib_value_count(a, &nn)) != GRIB_SUCCESS)
return err;
n_vals = nn;
//if ((err = grib_value_count(a, &nn)) != GRIB_SUCCESS)
// return err;
//n_vals = nn;
n_vals = *len;
if ((err = grib_get_long_internal(hand, self->bits_per_value, &bits_per_value)) != GRIB_SUCCESS)
return err;

View File

@ -35,6 +35,7 @@ list(APPEND test_bins
grib_sh_ieee64
ieee
grib_set_bytes
grib_packing_order
grib_sh_imag
grib_sh_spectral_complex
grib_lam_bf

130942
tests/grib_packing_order.c Normal file

File diff suppressed because it is too large Load Diff