From 7de26c396a9263258382f4e9a1cc0f179516ecbb Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 26 Jul 2019 15:19:51 +0100 Subject: [PATCH] ECC-960: grib_util_set_spec: Interpolation fails on GRIB message with no levelType key --- src/grib_util.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/grib_util.c b/src/grib_util.c index 4d44b77a6..ffb4b4e88 100644 --- a/src/grib_util.c +++ b/src/grib_util.c @@ -1050,9 +1050,6 @@ grib_handle* grib_util_set_spec2(grib_handle* h, /* The "pl" is given from the template, but "section_copy" will take care of setting the right headers */ { - char levtype[80]; - size_t n = sizeof(levtype); - Assert(grib_get_string(h,"levelType",levtype,&n) == 0); switch (spec->grid_type) { case GRIB_UTIL_GRID_SPEC_REDUCED_GG: case GRIB_UTIL_GRID_SPEC_REDUCED_ROTATED_GG: