------------------------------------------------------------------------------
| 239 | |
| 240 | //------------------------------------------------------------------------------ |
| 241 | int vtkMINCImageReader::OpenNetCDFFile(const char* filename, int& ncid) |
| 242 | { |
| 243 | int status = 0; |
| 244 | |
| 245 | if (filename == nullptr) |
| 246 | { |
| 247 | vtkErrorMacro("No filename was set"); |
| 248 | return 0; |
| 249 | } |
| 250 | |
| 251 | status = nc_open(filename, 0, &ncid); |
| 252 | if (status != NC_NOERR) |
| 253 | { |
| 254 | vtkErrorMacro("Could not open the MINC file:\n" << nc_strerror(status)); |
| 255 | return 0; |
| 256 | } |
| 257 | |
| 258 | return 1; |
| 259 | } |
| 260 | |
| 261 | //------------------------------------------------------------------------------ |
| 262 | int vtkMINCImageReader::CloseNetCDFFile(int ncid) |
no test coverage detected