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

stream_cdf::setDimType: fill dims only if ndims >= 1

parent 0ecd2f5b
......@@ -19,10 +19,6 @@
* app/cdi: added optional compression level -z zip[_1-9]
2012-11-13 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* stream_cdf::setDimType: fill dims only if ndims > 1
2012-11-09 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* file.c::file_initialize: added support for env GRIB_API_IO_BUFFER_SIZE [request: Florian Prill]
......
......@@ -4956,7 +4956,7 @@ void setDimType(int nvars, ncvar_t *ncvars, ncdim_t *ncdims)
/* else if ( ncvars[ncvarid].dimtype[i] == T_AXIS ) ltdim = TRUE; */
}
if ( ndims > 1 )
// if ( ndims > 1 )
for ( i = ndims-1; i >= 0; i-- )
{
if ( ncvars[ncvarid].dimtype[i] == -1 )
......@@ -5167,7 +5167,7 @@ void copy_numeric_projatts(int gridID, int ncvarID, int ncfileID)
cdf_inq_atttype(ncfileID, ncvarID, attname, &xtype);
cdf_inq_attlen(ncfileID, ncvarID, attname, &attlen);
printf("%s %d\n", attname, (int)attlen);
// printf("%s %d\n", attname, (int)attlen);
}
}
......
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