ECC-1220: Encoding with packingType=grid_ieee via codes_grib_util_set_spec

This commit is contained in:
Shahram Najm 2021-05-07 23:39:18 +01:00
parent b1f044b822
commit 85652e5e05
1 changed files with 1 additions and 1 deletions

View File

@ -1433,7 +1433,7 @@ grib_handle* grib_util_set_spec2(grib_handle* h,
setCcsdsPacking = 1;
break;
case GRIB_UTIL_PACKING_TYPE_IEEE:
if (strcmp(input_packing_type, "grid_ieee") && !strcmp(input_packing_type, "grid_simple"))
if ( !STR_EQUAL(input_packing_type, "grid_ieee") )
SET_STRING_VALUE("packingType", "grid_ieee");
break;
case GRIB_UTIL_PACKING_TYPE_GRID_SECOND_ORDER: