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

stream_grb:grbDefGrid use ISEC2_ScanFlag

parent fca87ace
......@@ -1791,6 +1791,8 @@ void grbDefGrid(int *isec1, int *isec2, int gridID)
ISEC2_Reduced = FALSE;
ISEC2_ScanFlag = 0;
switch (gridtype)
{
case GRID_LONLAT:
......@@ -1851,6 +1853,12 @@ void grbDefGrid(int *isec1, int *isec2, int gridID)
ISEC2_LonSP = NINT((gridInqXpole(gridID) + 180) * 1000);
}
/* East -> West */
if ( ISEC2_LastLon < ISEC2_FirstLon ) ISEC2_ScanFlag += 1;
/* South -> North */
if ( ISEC2_LastLat > ISEC2_FirstLat ) ISEC2_ScanFlag += 2;
break;
}
case GRID_SPECTRAL:
......@@ -1880,8 +1888,6 @@ void grbDefGrid(int *isec1, int *isec2, int gridID)
default:
Error(func, "%s grid unsupported!", gridNamePtr(gridtype));
}
ISEC2_ScanFlag = 0;
}
......
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