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

patch from Nathanael Huebbe: 0016 use cdfReadVarSliceSP() in cdiStreamReadVarSlice()

parent 18af1074
......@@ -1608,9 +1608,13 @@ void cdiStreamReadVarSlice(int streamID, int varID, int levelID, int memtype, vo
case FILETYPE_NC2:
case FILETYPE_NC4:
case FILETYPE_NC4C:
if ( memtype == MEMTYPE_FLOAT ) Error("cdfReadVarSlice not implemented for memtype float!");
cdfReadVarSliceDP(streamptr, varID, levelID, data, nmiss);
break;
{
if ( memtype == MEMTYPE_FLOAT )
cdfReadVarSliceSP(streamptr, varID, levelID, data, nmiss);
else
cdfReadVarSliceDP(streamptr, varID, levelID, data, nmiss);
break;
}
#endif
default:
{
......
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