Commit 5cbc4e9d authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Implementation of CDI_reduce_dim for x/y axis.

parent 85e48994
......@@ -5,6 +5,7 @@
2017-08-30 Uwe Schulzweida
* Implementation of CDI_reduce_dim for time axis
* Implementation of CDI_reduce_dim for x/y axis
* cdfDefAxisCommon: bug fix for zaxis bounds in CDI_cmor_mode
2017-08-08 Uwe Schulzweida
......
......@@ -1875,6 +1875,13 @@ void cdfDefGrid(stream_t *streamptr, int gridID, int gridindex)
if ( CDI_Debug )
Message("gridtype = %d size = %d", gridtype, size);
if ( CDI_reduce_dim && size == 1 )
{
// no grid information
streamptr->ncgrid[gridindex].gridID = gridID;
return;
}
if ( gridtype == GRID_GAUSSIAN ||
gridtype == GRID_LONLAT ||
gridtype == GRID_PROJECTION ||
......@@ -1884,7 +1891,7 @@ void cdfDefGrid(stream_t *streamptr, int gridID, int gridindex)
{
if ( size == 1 && gridInqXsize(gridID) == 0 && gridInqYsize(gridID) == 0 )
{
/* no grid information */
// no grid information
streamptr->ncgrid[gridindex].gridID = gridID;
}
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