MCPcopy Create free account
hub / github.com/Kitware/VTK / NetCDFTypeToVTKType

Function NetCDFTypeToVTKType

IO/ParallelNetCDF/vtkPSLACReader.cxx:105–126  ·  view source on GitHub ↗

=============================================================================

Source from the content-addressed store, hash-verified

103
104//=============================================================================
105VTK_ABI_NAMESPACE_BEGIN
106static int NetCDFTypeToVTKType(nc_type type)
107{
108 switch (type)
109 {
110 case NC_BYTE:
111 return VTK_UNSIGNED_CHAR;
112 case NC_CHAR:
113 return VTK_CHAR;
114 case NC_SHORT:
115 return VTK_SHORT;
116 case NC_INT:
117 return VTK_INT;
118 case NC_FLOAT:
119 return VTK_FLOAT;
120 case NC_DOUBLE:
121 return VTK_DOUBLE;
122 default:
123 vtkGenericWarningMacro(<< "Unknown netCDF variable type " << type);
124 return -1;
125 }
126}
127
128//=============================================================================
129// In this version, indexMap points from outArray to inArray. All the values

Callers 1

ReadPointDataArrayMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected