Commit 39c4c571 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cgribexAddRecord: correct xinc/yinc if necessary

parent b417227d
2010-10-26 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* cgribexAddRecord: correct xinc/yinc if necessary [report: Anders Ullerstig]
2010-10-12 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* cdfDefVCT: remove var mlev and ilev (bug fix) [report: Torsten Weber]
......
......@@ -312,6 +312,9 @@ void cgribexAddRecord(int streamID, int param, int *isec1, int *isec2, double *f
{
if ( grid.xsize > 1 )
{
if ( ISEC2_ResFlag && ISEC2_LonIncr > 0 )
if ( ISEC2_LonIncr*(grid.xsize-1) > 360000 ) ISEC2_LonIncr = 0;
if ( ISEC2_ResFlag && ISEC2_LonIncr > 0 )
grid.xinc = ISEC2_LonIncr * 0.001;
else
......@@ -338,6 +341,9 @@ void cgribexAddRecord(int streamID, int param, int *isec1, int *isec2, double *f
{
if ( grid.ysize > 1 )
{
if ( ISEC2_ResFlag && ISEC2_LatIncr > 0 )
if ( ISEC2_LatIncr*(grid.ysize-1) > 180000 ) ISEC2_LatIncr = 0;
if ( ISEC2_ResFlag && ISEC2_LatIncr > 0 )
grid.yinc = ISEC2_LatIncr * 0.001;
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