Encoding with packingType=grid_ccsds via codes_grib_util_set_spec
@@ -1429,7 +1429,7 @@ grib_handle* grib_util_set_spec2(grib_handle* h,
* Reason 1: It is not available in GRIB1 and so we have to wait until we change edition
* Reason 2: It has to be done AFTER we set the data values
*/
- if (strcmp(input_packing_type, "grid_ccsds") && !strcmp(input_packing_type, "grid_simple"))
+ if (!STR_EQUAL(input_packing_type, "grid_ccsds"))
setCcsdsPacking = 1;
break;
case GRIB_UTIL_PACKING_TYPE_IEEE:
