=============================================================================
| 103 | |
| 104 | //============================================================================= |
| 105 | VTK_ABI_NAMESPACE_BEGIN |
| 106 | static 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 |