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

Method CheckParams

IO/NetCDF/vtkMPASReader.cxx:1343–1376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1341//------------------------------------------------------------------------------
1342
1343int vtkMPASReader::CheckParams()
1344{
1345
1346 if ((this->PointsPerCell != 3) && (this->PointsPerCell != 4))
1347 {
1348 vtkErrorMacro("This code is only for hexagonal or quad primal grids" << endl);
1349 return (0);
1350 }
1351
1352 this->VerticalLevelRange[0] = 0;
1353 this->VerticalLevelRange[1] = static_cast<int>(this->MaximumNVertLevels - 1);
1354
1355 if (this->OnASphere)
1356 {
1357 if (this->ProjectLatLon)
1358 {
1359 this->Geometry = Projected;
1360 }
1361 else
1362 {
1363 this->Geometry = Spherical;
1364 }
1365 }
1366 else
1367 {
1368 this->Geometry = Planar;
1369 if (this->ProjectLatLon)
1370 {
1371 vtkWarningMacro("Ignoring ProjectLatLong -- Data is not on_a_sphere.");
1372 }
1373 }
1374
1375 return (1);
1376}
1377
1378//------------------------------------------------------------------------------
1379// Get the NetCDF variables on cell or vertex

Callers 1

RequestInformationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected