Commit 2dc1921c authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

gridCompare: added check for 1D generic grid

parent 4a62cc4e
This diff is collapsed.
......@@ -2359,6 +2359,10 @@ int gridCompare(int gridID, grid_t grid)
compareXYvals(gridID, xsize, ysize, grid.xvals, grid.yvals, &differ);
}
}
else if ( (grid.ysize == 0 || grid.ysize == 1) &&
grid.xsize == gridInqXsize(gridID)*gridInqYsize(gridID) )
{
}
else
differ = 1;
}
......
......@@ -889,6 +889,7 @@ void cdfDefTime(int streamID)
int timeunit;
timeunit = taxis->unit;
if ( timeunit == -1 ) timeunit = TUNIT_HOUR;
rdate = taxis->rdate;
rtime = taxis->rtime;
if ( rdate == -1 )
......
......@@ -92,7 +92,7 @@ int cgribexGetZaxisHasBounds(int grb_ltype)
static
int cgribexGetTimeUnit(int *isec1)
{
int timeunit = -1;
int timeunit = TUNIT_HOUR;
static int lprint = TRUE;
switch ( ISEC1_TimeUnit )
......@@ -1539,8 +1539,8 @@ int cgribexDefDateTime(int *isec1, int timeunit, int date, int time)
if ( ISEC1_Year == 0 )
{
ISEC1_Year = 100;
century -= 1;
ISEC1_Year = 100;
}
century += 1;
......
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