Commit 54ec0b59 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

netCDF: added support 1D level variables

parent 9b52d3db
......@@ -3,6 +3,10 @@
* Version 1.6.5 released
* using CGRIBEX library version 1.6.5
2014-10-10 Uwe Schulzweida
* netCDF: added support 1D level variables
2014-10-07 Uwe Schulzweida
* read netCDF: cache time variable
......
......@@ -6229,7 +6229,7 @@ void define_all_grids(stream_t *streamptr, int vlistID, ncdim_t *ncdims, int nva
if ( skipvar )
{
Warning("1Unsupported array structure, skipped variable %s!", ncvars[ncvarid].name);
Warning("Unsupported array structure, skipped variable %s!", ncvars[ncvarid].name);
ncvars[ncvarid].isvar = -1;
continue;
}
......@@ -6306,7 +6306,7 @@ void define_all_grids(stream_t *streamptr, int vlistID, ncdim_t *ncdims, int nva
if ( skipvar )
{
Warning("2Unsupported array structure, skipped variable %s!", ncvars[ncvarid].name);
Warning("Unsupported array structure, skipped variable %s!", ncvars[ncvarid].name);
ncvars[ncvarid].isvar = -1;
continue;
}
......@@ -6455,8 +6455,8 @@ void define_all_grids(stream_t *streamptr, int vlistID, ncdim_t *ncdims, int nva
if ( grid.size == 0 )
{
if ( (ncvars[ncvarid].ndims == 1 && ncvars[ncvarid].dimtype[0] == T_AXIS) ||
(ncvars[ncvarid].ndims == 2 && ncvars[ncvarid].dimtype[0] == T_AXIS &&
ncvars[ncvarid].dimtype[1] == Z_AXIS) )
(ncvars[ncvarid].ndims == 1 && ncvars[ncvarid].dimtype[0] == Z_AXIS) ||
(ncvars[ncvarid].ndims == 2 && ncvars[ncvarid].dimtype[0] == T_AXIS && ncvars[ncvarid].dimtype[1] == Z_AXIS) )
{
grid.type = GRID_GENERIC;
grid.size = 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