ECC-1221: Encoding with packingType=grid_complex via codes_grib_util_set_spec (Part 1)

This commit is contained in:
Shahram Najm 2021-05-13 12:13:12 +01:00
parent 5598ea52dd
commit 0f946776a4
1 changed files with 3 additions and 1 deletions

View File

@ -1413,8 +1413,10 @@ grib_handle* grib_util_set_spec2(grib_handle* h,
SET_STRING_VALUE("packingType", "grid_simple");
break;
case GRIB_UTIL_PACKING_TYPE_GRID_COMPLEX:
if (strcmp(input_packing_type, "grid_complex") && !strcmp(input_packing_type, "grid_simple"))
if (!STR_EQUAL(input_packing_type, "grid_complex")) {
SET_STRING_VALUE("packingType", "grid_complex");
convertEditionEarlier=1;
}
break;
case GRIB_UTIL_PACKING_TYPE_JPEG:
/* Have to delay JPEG packing: