Commit d92ff985 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

NetCDF: added support for single scalar variable .

parent fc581d66
2018-11-08 Uwe Schulzweida
* Version 1.9.6 released
2018-09-04 Uwe Schulzweida
* NetCDF: added support for single scalar variable
2018-08-10 Uwe Schulzweida 2018-08-10 Uwe Schulzweida
* using CGRIBEX library version 1.9.1 * using CGRIBEX library version 1.9.1
......
...@@ -3639,10 +3639,9 @@ int cdf_check_vars(int nvars, ncvar_t *ncvars, size_t ntsteps, int timedimid) ...@@ -3639,10 +3639,9 @@ int cdf_check_vars(int nvars, ncvar_t *ncvars, size_t ntsteps, int timedimid)
cdf_set_var(ncvars, ncvarid, TRUE); cdf_set_var(ncvars, ncvarid, TRUE);
if ( ncvars[ncvarid].isvar == -1 && ncvars[ncvarid].ndims == 0 ) if ( ncvars[ncvarid].isvar == -1 && ncvars[ncvarid].ndims == 0 )
cdf_set_var(ncvars, ncvarid, FALSE); cdf_set_var(ncvars, ncvarid, nvars == 1 ? TRUE : FALSE);
//if ( ncvars[ncvarid].isvar == -1 && ncvars[ncvarid].ndims > 1 ) if ( ncvars[ncvarid].isvar == -1 && ncvars[ncvarid].ndims > 0 )
if ( ncvars[ncvarid].isvar == -1 && ncvars[ncvarid].ndims >= 1 )
cdf_set_var(ncvars, ncvarid, TRUE); cdf_set_var(ncvars, ncvarid, TRUE);
if ( ncvars[ncvarid].isvar == -1 ) if ( ncvars[ncvarid].isvar == -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