mirror of https://github.com/ecmwf/eccodes.git
ECC-1221: Encoding with packingType=grid_complex via codes_grib_util_set_spec (Part 1)
This commit is contained in:
parent
5598ea52dd
commit
0f946776a4
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue