From 36dd2dd880a319842e3cf83d4c6c37c007b3af8a Mon Sep 17 00:00:00 2001 From: Uwe Schulzweida <uwe.schulzweida@mpimet.mpg.de> Date: Tue, 14 Feb 2017 09:23:16 +0100 Subject: [PATCH] gribapiDefLevelType: check for GRIB1_LTYPE_ISOBARIC_PA. --- src/stream_gribapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream_gribapi.c b/src/stream_gribapi.c index 1a48553ac..79ed40b25 100644 --- a/src/stream_gribapi.c +++ b/src/stream_gribapi.c @@ -2258,7 +2258,7 @@ static void gribapiDefLevelType(grib_handle *gh, int gcinit, const char *keyname, long leveltype) { bool lset = false; - if ( (leveltype == 99 || leveltype == 100) && gribEditionNumber(gh) == 1 ) + if ( (leveltype == GRIB1_LTYPE_ISOBARIC_PA || leveltype == 99 || leveltype == 100) && gribEditionNumber(gh) == 1 ) { if ( gribGetLong(gh, "indicatorOfTypeOfLevel") != leveltype ) lset = true; } -- GitLab