Commit 8971a299 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

grbDefGrid: write absolute value of y-inc

parent 3acc3352
2007-02-?? Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* using GRIB library version 1.0.5
* grbDefTime: change to absolute time axis if value < 0
* grbDefGrid: write absolute value of y-inc [report: Paul Dando]
* grbDefTime: change to absolute time axis if value < 0 [report: Frank Toussaint]
* grbDefGrid: change generic grid to lonlat grid
* grbScanTimestep: bug fix for unsorted codes
* LOCK/UNLOCK around _init_pointer
......
......@@ -12,7 +12,10 @@
#if ! defined (HAVE_CONFIG_H)
#if ! defined (HAVE_MALLOC_H)
/*
# if defined (__sun) || defined (__i386) || defined (__ia64) || defined (SX)
*/
# if defined (__i386) || defined (__ia64) || defined (SX)
# define HAVE_MALLOC_H
# endif
#endif
......
......@@ -1767,6 +1767,8 @@ void grbDefGrid(int *isec1, int *isec2, int gridID)
ISEC2_LatIncr = NINT(gridInqYinc(gridID)*1000);
if ( fabs(gridInqYinc(gridID)*1000 - ISEC2_LatIncr) > FLT_EPSILON )
ISEC2_LatIncr = 0;
if ( ISEC2_LatIncr < 0 ) ISEC2_LatIncr = -ISEC2_LatIncr;
}
if ( ISEC2_LatIncr == 0 || 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