tigge_check packing type check
@@ -1122,9 +1122,9 @@ static void check_parameter(grib_handle* h,double min,double max)
}
}
-#if 0
static void check_packing(grib_handle* h)
{
+ /* ECC-1009: Warn if not using simple packing */
int err = 0;
char packingType[254] = {0,};
size_t len = sizeof(packingType);
@@ -1133,13 +1133,11 @@ static void check_packing(grib_handle* h)
err = grib_get_string(h, "packingType", packingType, &len);
if (err) return;
if (strcmp(packingType, expected_packingType)!=0) {
- /* ECC-1009: Warn if not using simple packing */
printf("warning: %s, field %d [%s]: invalid packingType %s (Should be %s)\n",
file, field, param, packingType, expected_packingType);
warning++;
}
}
-#endif
static void verify(grib_handle* h)
{
@@ -1215,7 +1213,7 @@ static void verify(grib_handle* h)
check_parameter(h,min,max);
- /*check_packing(h);*/
+ check_packing(h);
/* Section 1 */
