Testing: GRIB1 data_dummy_field packing

This commit is contained in:
Shahram Najm 2024-01-10 16:20:19 +00:00
parent f3f8025d57
commit 78aa519961
1 changed files with 8 additions and 13 deletions

View File

@ -140,8 +140,7 @@ static void init(grib_accessor* a, const long v, grib_arguments* args)
static int unpack_double(grib_accessor* a, double* val, size_t* len)
{
grib_accessor_data_dummy_field* self = (grib_accessor_data_dummy_field*)a;
size_t i = 0;
size_t n_vals = 0;
size_t i = 0, n_vals = 0;
long numberOfPoints;
double missing_value = 0;
int err = 0;
@ -174,14 +173,10 @@ static int pack_double(grib_accessor* a, const double* val, size_t* len)
{
grib_accessor_data_dummy_field* self = (grib_accessor_data_dummy_field*)a;
size_t n_vals = *len;
int err = 0;
long bits_per_value = 0;
long half_byte = 0;
size_t buflen = 0;
unsigned char* buf = NULL;