Commit 4a333b09 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

GRIB2: use typeOfSecondFixedSurface if present.

parent 67dde6e9
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
2018-01-04 Uwe Schulzweida 2018-01-04 Uwe Schulzweida
* GRIB2: use typeOfSecondFixedSurface if present
* Added support for GRIB2 key tablesVersion/localTablesVersion * Added support for GRIB2 key tablesVersion/localTablesVersion
* Added CDI function cdiDefKeyInt()/cdiInqKeyInt() * Added CDI function cdiDefKeyInt()/cdiInqKeyInt()
......
...@@ -2351,7 +2351,7 @@ void gribapiDefLevel(int editionNumber, grib_handle *gh, int zaxisID, int levelI ...@@ -2351,7 +2351,7 @@ void gribapiDefLevel(int editionNumber, grib_handle *gh, int zaxisID, int levelI
} }
long grib_ltype = (editionNumber <= 1) ? zaxisTypeToGrib1ltype(zaxistype) : zaxisTypeToGrib2ltype(zaxistype); long grib_ltype = (editionNumber <= 1) ? zaxisTypeToGrib1ltype(zaxistype) : zaxisTypeToGrib2ltype(zaxistype);
// long grib_ltype2 = (ltype != ltype2) ? ltype2 : grib_ltype; long grib_ltype2 = (ltype != ltype2) ? ltype2 : grib_ltype;
switch (zaxistype) switch (zaxistype)
{ {
...@@ -2415,7 +2415,7 @@ void gribapiDefLevel(int editionNumber, grib_handle *gh, int zaxisID, int levelI ...@@ -2415,7 +2415,7 @@ void gribapiDefLevel(int editionNumber, grib_handle *gh, int zaxisID, int levelI
if ( editionNumber <= 1 ) if ( editionNumber <= 1 )
grib1DefLevel(gh, gcinit, grib_ltype, lbounds, level, dlevel1, dlevel2); grib1DefLevel(gh, gcinit, grib_ltype, lbounds, level, dlevel1, dlevel2);
else else
grib2DefLevel(gh, gcinit, grib_ltype, grib_ltype, lbounds, level, dlevel1, dlevel2); grib2DefLevel(gh, gcinit, grib_ltype, grib_ltype2, lbounds, level, dlevel1, dlevel2);
break; break;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment