Commit 8c2a62c3 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

netCDF: skip 4D variables without time dimension (bug fix)

parent 4ec4478d
......@@ -2,6 +2,10 @@
* Version 1.6.1 released
2013-05-29 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* netCDF: skip 4D variables without time dimension (bug fix)
2013-05-28 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* GRIB2: added support for pressure levels with 3 fractional digits
......
......@@ -6678,7 +6678,15 @@ int cdfInqContents(stream_t *streamptr)
if ( ncvars[ncvarid].ndims > 4 )
{
ncvars[ncvarid].isvar = 0;
Warning("%d dimensional variables unsupported, skipped variable %s!",
Warning("%d dimensional variables are not supported, skipped variable %s!",
ncvars[ncvarid].ndims, ncvars[ncvarid].name);
continue;
}
if ( ncvars[ncvarid].ndims == 4 && timedimid == UNDEFID )
{
ncvars[ncvarid].isvar = 0;
Warning("%d dimensional variables without time dimension are not supported, skipped variable %s!",
ncvars[ncvarid].ndims, ncvars[ncvarid].name);
continue;
}
......
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