Commit 01664144 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cgribex: check for reduced_ll grid

parent f2534422
......@@ -36,7 +36,7 @@ int cgribexGetGridType(int *isec2)
switch (ISEC2_GridType)
{
case GRIB1_GTYPE_LATLON:
case GRIB1_GTYPE_LATLON: { if ( ISEC2_Reduced ) break; }
case GRIB1_GTYPE_LATLON_ROT: { gridtype = GRID_LONLAT; break; }
case GRIB1_GTYPE_LCC: { gridtype = GRID_LCC; break; }
case GRIB1_GTYPE_GAUSSIAN: { if ( ISEC2_Reduced )
......
......@@ -72,10 +72,14 @@ int gribapiGetGridType(grib_handle *gh)
switch (gribgridtype)
{
case GRIB2_GTYPE_LATLON:
case GRIB2_GTYPE_LATLON: { GRIB_CHECK(grib_get_long(gh, "Ni", &lpar), 0);
// printf("lpar = %ld\n", lpar);
if ( lpar < 0 ) break;
}
case GRIB2_GTYPE_LATLON_ROT: { gridtype = GRID_LONLAT; break; }
case GRIB2_GTYPE_LCC: { gridtype = GRID_LCC; break; }
case GRIB2_GTYPE_GAUSSIAN: { GRIB_CHECK(grib_get_long(gh, "Ni", &lpar), 0);
// printf("lpar = %ld\n", lpar);
if ( lpar < 0 )
gridtype = GRID_GAUSSIAN_REDUCED;
else
......
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