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

cgribexGetGrid: if firstLon >= 180 sub 360.

parent dcef83da
2018-08-09 Uwe Schulzweida 2018-08-10 Uwe Schulzweida
* using CGRIBEX library version 1.9.1 * using CGRIBEX library version 1.9.1
* Version 1.9.5 released * Version 1.9.5 released
2018-08-10 Uwe Schulzweida
* cgribexGetGrid: if firstLon >= 180 sub 360
2018-08-05 Uwe Schulzweida 2018-08-05 Uwe Schulzweida
* taxisCopyTimestep: delete target units if reference time differ (bug fix) * taxisCopyTimestep: delete target units if reference time differ (bug fix)
......
...@@ -68,6 +68,8 @@ AC_CHECK_MEMBERS([struct stat.st_blksize]) ...@@ -68,6 +68,8 @@ AC_CHECK_MEMBERS([struct stat.st_blksize])
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# Checks for header files # Checks for header files
AC_CHECK_HEADERS([malloc.h]) AC_CHECK_HEADERS([malloc.h])
AC_CHECK_HEADERS([unistd.h])
AC_CHECK_HEADERS([sys/time.h])
AX_EXECINFO AX_EXECINFO
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# Checks for the availability of functions # Checks for the availability of functions
......
...@@ -187,7 +187,13 @@ void cgribexGetGrid(stream_t *streamptr, int *isec2, int *isec4, grid_t *grid, i ...@@ -187,7 +187,13 @@ void cgribexGetGrid(stream_t *streamptr, int *isec2, int *isec4, grid_t *grid, i
{ {
bool recompinc = true; bool recompinc = true;
if ( ISEC2_LastLon < ISEC2_FirstLon ) ISEC2_LastLon += 360000; if ( ISEC2_LastLon < ISEC2_FirstLon )
{
if ( ISEC2_FirstLon >= 180000 )
ISEC2_FirstLon -= 360000;
else
ISEC2_LastLon += 360000;
}
if ( ijDirectionIncrementGiven && ISEC2_LonIncr > 0 ) if ( ijDirectionIncrementGiven && ISEC2_LonIncr > 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