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

Method IsTimeDimension

IO/NetCDF/vtkNetCDFReader.cxx:754–760  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

752
753//------------------------------------------------------------------------------
754int vtkNetCDFReader::IsTimeDimension(int ncFD, int dimId)
755{
756 char name[NC_MAX_NAME + 1];
757 CALL_NETCDF_INT(this->Accessor->inq_dimname(ncFD, dimId, name));
758 name[4] = '\0'; // Truncate to 4 characters.
759 return (vtksys::SystemTools::Strucmp(name, "time") == 0);
760}
761
762//------------------------------------------------------------------------------
763vtkSmartPointer<vtkDoubleArray> vtkNetCDFReader::GetTimeValues(int ncFD, int dimId)

Callers 3

RequestInformationMethod · 0.95
LoadVariableMethod · 0.95

Calls 1

inq_dimnameMethod · 0.45

Tested by

no test coverage detected