#include <vtkMPASReader.h>
This program reads an MPAS netCDF data file to allow paraview to display a dual-grid sphere or latlon projection. Also allows display of primal-grid sphere. The variables that have time dim are available to ParaView.
Assume all variables are of interest if they have dims (Time, nCells|nVertices, nVertLevels, [nTracers]) Assume no more than 100 vars each for cell and point data Does not deal with edge data.
When using this reader, it is important that you remember to do the following: 1. When changing a selected variable, remember to select it also in the drop down box to "color by". It doesn't color by that variable automatically. 2. When selecting multilayer sphere view, make layer thickness around 100,000. 3. When selecting multilayer lat/lon view, make layer thickness around 10. 4. Always click the -Z orientation after making a switch from lat/lon to sphere, from single to multilayer or changing thickness. 5. Be conservative on the number of changes you make before hitting Apply, since there may be bugs in this reader. Just make one change and then hit Apply.
Christine Ahrens (cahrens@lanl.gov) Version 1.3
Definition at line 91 of file vtkMPASReader.h.
vtkMPASReader::vtkMPASReader | ( | ) | [protected] |
vtkMPASReader::~vtkMPASReader | ( | ) | [protected] |
static vtkMPASReader* vtkMPASReader::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkUnstructuredGridAlgorithm.
virtual const char* vtkMPASReader::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkUnstructuredGridAlgorithm.
static int vtkMPASReader::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkUnstructuredGridAlgorithm.
virtual int vtkMPASReader::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkUnstructuredGridAlgorithm.
static vtkMPASReader* vtkMPASReader::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkUnstructuredGridAlgorithm.
void vtkMPASReader::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkUnstructuredGridAlgorithm.
virtual void vtkMPASReader::SetFileName | ( | const char * | ) | [virtual] |
Specify file name of MPAS data file to read.
virtual char* vtkMPASReader::GetFileName | ( | ) | [virtual] |
Specify file name of MPAS data file to read.
virtual int vtkMPASReader::GetmaxCells | ( | ) | [virtual] |
Get the number of data cells
virtual int vtkMPASReader::GetmaxPoints | ( | ) | [virtual] |
Get the number of points
virtual int vtkMPASReader::GetnumCellVars | ( | ) | [virtual] |
Get the number of data variables at the cell centers and points
virtual int vtkMPASReader::GetnumPointVars | ( | ) | [virtual] |
Get the number of data variables at the cell centers and points
vtkUnstructuredGrid* vtkMPASReader::GetOutput | ( | ) |
Get the reader's output
Reimplemented from vtkUnstructuredGridAlgorithm.
vtkUnstructuredGrid* vtkMPASReader::GetOutput | ( | int | index | ) |
Get the reader's output
Reimplemented from vtkUnstructuredGridAlgorithm.
int vtkMPASReader::GetNumberOfPointArrays | ( | ) |
The following methods allow selective reading of solutions fields. By default, ALL data fields on the nodes are read, but this can be modified.
const char* vtkMPASReader::GetPointArrayName | ( | int | index | ) |
The following methods allow selective reading of solutions fields. By default, ALL data fields on the nodes are read, but this can be modified.
int vtkMPASReader::GetPointArrayStatus | ( | const char * | name | ) |
The following methods allow selective reading of solutions fields. By default, ALL data fields on the nodes are read, but this can be modified.
void vtkMPASReader::SetPointArrayStatus | ( | const char * | name, | |
int | status | |||
) |
The following methods allow selective reading of solutions fields. By default, ALL data fields on the nodes are read, but this can be modified.
void vtkMPASReader::DisableAllPointArrays | ( | ) |
The following methods allow selective reading of solutions fields. By default, ALL data fields on the nodes are read, but this can be modified.
void vtkMPASReader::EnableAllPointArrays | ( | ) |
The following methods allow selective reading of solutions fields. By default, ALL data fields on the nodes are read, but this can be modified.
int vtkMPASReader::GetNumberOfCellArrays | ( | ) |
const char* vtkMPASReader::GetCellArrayName | ( | int | index | ) |
int vtkMPASReader::GetCellArrayStatus | ( | const char * | name | ) |
void vtkMPASReader::SetCellArrayStatus | ( | const char * | name, | |
int | status | |||
) |
void vtkMPASReader::DisableAllCellArrays | ( | ) |
void vtkMPASReader::EnableAllCellArrays | ( | ) |
void vtkMPASReader::SetVerticalLevel | ( | int | level | ) |
virtual int* vtkMPASReader::GetVerticalLevelRange | ( | ) | [virtual] |
virtual void vtkMPASReader::GetVerticalLevelRange | ( | int & | , | |
int & | ||||
) | [virtual] |
virtual void vtkMPASReader::GetVerticalLevelRange | ( | int | [2] | ) | [virtual] |
void vtkMPASReader::SetLayerThickness | ( | int | val | ) |
virtual int* vtkMPASReader::GetLayerThicknessRange | ( | ) | [virtual] |
virtual void vtkMPASReader::GetLayerThicknessRange | ( | int & | , | |
int & | ||||
) | [virtual] |
virtual void vtkMPASReader::GetLayerThicknessRange | ( | int | [2] | ) | [virtual] |
void vtkMPASReader::SetCenterLon | ( | int | val | ) |
virtual int* vtkMPASReader::GetCenterLonRange | ( | ) | [virtual] |
virtual void vtkMPASReader::GetCenterLonRange | ( | int & | , | |
int & | ||||
) | [virtual] |
virtual void vtkMPASReader::GetCenterLonRange | ( | int | [2] | ) | [virtual] |
void vtkMPASReader::SetProjectLatLon | ( | bool | val | ) |
virtual bool vtkMPASReader::GetProjectLatLon | ( | ) | [virtual] |
void vtkMPASReader::SetIsAtmosphere | ( | bool | val | ) |
virtual bool vtkMPASReader::GetIsAtmosphere | ( | ) | [virtual] |
void vtkMPASReader::SetIsZeroCentered | ( | bool | val | ) |
virtual bool vtkMPASReader::GetIsZeroCentered | ( | ) | [virtual] |
void vtkMPASReader::SetShowMultilayerView | ( | bool | val | ) |
virtual bool vtkMPASReader::GetShowMultilayerView | ( | ) | [virtual] |
static int vtkMPASReader::CanReadFile | ( | const char * | filename | ) | [static] |
Returns true if the given file can be read.
void vtkMPASReader::DestroyData | ( | ) | [protected] |
int vtkMPASReader::RequestData | ( | vtkInformation * | request, | |
vtkInformationVector ** | inputVector, | |||
vtkInformationVector * | outputVector | |||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkUnstructuredGridAlgorithm.
int vtkMPASReader::RequestInformation | ( | vtkInformation * | , | |
vtkInformationVector ** | , | |||
vtkInformationVector * | ||||
) | [protected, virtual] |
Reimplemented from vtkUnstructuredGridAlgorithm.
static void vtkMPASReader::SelectionCallback | ( | vtkObject * | caller, | |
unsigned long | eid, | |||
void * | clientdata, | |||
void * | calldata | |||
) | [static, protected] |
void vtkMPASReader::SetDefaults | ( | ) | [protected] |
int vtkMPASReader::GetNcDims | ( | ) | [protected] |
int vtkMPASReader::CheckParams | ( | ) | [protected] |
int vtkMPASReader::GetNcVars | ( | const char * | cellDimName, | |
const char * | pointDimName | |||
) | [protected] |
int vtkMPASReader::ReadAndOutputGrid | ( | bool | init | ) | [protected] |
int vtkMPASReader::ReadAndOutputVariableData | ( | ) | [protected] |
int vtkMPASReader::BuildVarArrays | ( | ) | [protected] |
int vtkMPASReader::AllocSphereGeometry | ( | ) | [protected] |
int vtkMPASReader::AllocLatLonGeometry | ( | ) | [protected] |
void vtkMPASReader::ShiftLonData | ( | ) | [protected] |
int vtkMPASReader::AddMirrorPoint | ( | int | index, | |
double | dividerX | |||
) | [protected] |
void vtkMPASReader::FixPoints | ( | ) | [protected] |
int vtkMPASReader::EliminateXWrap | ( | ) | [protected] |
void vtkMPASReader::OutputPoints | ( | bool | init | ) | [protected] |
void vtkMPASReader::OutputCells | ( | bool | init | ) | [protected] |
unsigned char vtkMPASReader::GetCellType | ( | ) | [protected] |
void vtkMPASReader::LoadGeometryData | ( | int | var, | |
double | dTime | |||
) | [protected] |
int vtkMPASReader::LoadPointVarData | ( | int | variable, | |
double | dTime | |||
) | [protected] |
int vtkMPASReader::LoadCellVarData | ( | int | variable, | |
double | dTime | |||
) | [protected] |
int vtkMPASReader::RegenerateGeometry | ( | ) | [protected] |
char* vtkMPASReader::FileName [protected] |
Definition at line 174 of file vtkMPASReader.h.
vtkStdString* vtkMPASReader::VariableName [protected] |
Definition at line 183 of file vtkMPASReader.h.
int* vtkMPASReader::VariableType [protected] |
Definition at line 184 of file vtkMPASReader.h.
int vtkMPASReader::NumberOfTimeSteps [protected] |
Definition at line 186 of file vtkMPASReader.h.
double* vtkMPASReader::TimeSteps [protected] |
Definition at line 187 of file vtkMPASReader.h.
double vtkMPASReader::dTime [protected] |
Definition at line 188 of file vtkMPASReader.h.
vtkCallbackCommand* vtkMPASReader::SelectionObserver [protected] |
Definition at line 192 of file vtkMPASReader.h.
bool vtkMPASReader::infoRequested [protected] |
Definition at line 203 of file vtkMPASReader.h.
bool vtkMPASReader::dataRequested [protected] |
Definition at line 204 of file vtkMPASReader.h.
Definition at line 209 of file vtkMPASReader.h.
Definition at line 210 of file vtkMPASReader.h.
vtkDoubleArray** vtkMPASReader::cellVarDataArray [protected] |
Definition at line 212 of file vtkMPASReader.h.
vtkDoubleArray** vtkMPASReader::pointVarDataArray [protected] |
Definition at line 213 of file vtkMPASReader.h.
int vtkMPASReader::VerticalLevelSelected [protected] |
Definition at line 215 of file vtkMPASReader.h.
int vtkMPASReader::VerticalLevelRange[2] [protected] |
Definition at line 216 of file vtkMPASReader.h.
int vtkMPASReader::LayerThickness [protected] |
Definition at line 218 of file vtkMPASReader.h.
int vtkMPASReader::LayerThicknessRange[2] [protected] |
Definition at line 219 of file vtkMPASReader.h.
int vtkMPASReader::CenterLon [protected] |
Definition at line 221 of file vtkMPASReader.h.
int vtkMPASReader::CenterLonRange[2] [protected] |
Definition at line 222 of file vtkMPASReader.h.
bool vtkMPASReader::ProjectLatLon [protected] |
Definition at line 224 of file vtkMPASReader.h.
bool vtkMPASReader::IsAtmosphere [protected] |
Definition at line 225 of file vtkMPASReader.h.
bool vtkMPASReader::IsZeroCentered [protected] |
Definition at line 226 of file vtkMPASReader.h.
bool vtkMPASReader::ShowMultilayerView [protected] |
Definition at line 227 of file vtkMPASReader.h.
bool vtkMPASReader::includeTopography [protected] |
Definition at line 229 of file vtkMPASReader.h.
bool vtkMPASReader::doBugFix [protected] |
Definition at line 230 of file vtkMPASReader.h.
double vtkMPASReader::centerRad [protected] |
Definition at line 231 of file vtkMPASReader.h.
int vtkMPASReader::maxNVertLevels [protected] |
Definition at line 235 of file vtkMPASReader.h.
int vtkMPASReader::numCells [protected] |
Definition at line 236 of file vtkMPASReader.h.
int vtkMPASReader::numPoints [protected] |
Definition at line 237 of file vtkMPASReader.h.
int vtkMPASReader::cellOffset [protected] |
Definition at line 238 of file vtkMPASReader.h.
int vtkMPASReader::pointOffset [protected] |
Definition at line 239 of file vtkMPASReader.h.
int vtkMPASReader::pointsPerCell [protected] |
Definition at line 240 of file vtkMPASReader.h.
int vtkMPASReader::currentExtraPoint [protected] |
Definition at line 241 of file vtkMPASReader.h.
int vtkMPASReader::currentExtraCell [protected] |
Definition at line 242 of file vtkMPASReader.h.
double* vtkMPASReader::pointX [protected] |
Definition at line 243 of file vtkMPASReader.h.
double* vtkMPASReader::pointY [protected] |
Definition at line 244 of file vtkMPASReader.h.
double* vtkMPASReader::pointZ [protected] |
Definition at line 245 of file vtkMPASReader.h.
int vtkMPASReader::modNumPoints [protected] |
Definition at line 246 of file vtkMPASReader.h.
int vtkMPASReader::modNumCells [protected] |
Definition at line 247 of file vtkMPASReader.h.
int* vtkMPASReader::origConnections [protected] |
Definition at line 248 of file vtkMPASReader.h.
int* vtkMPASReader::modConnections [protected] |
Definition at line 249 of file vtkMPASReader.h.
int* vtkMPASReader::cellMap [protected] |
Definition at line 250 of file vtkMPASReader.h.
int* vtkMPASReader::pointMap [protected] |
Definition at line 251 of file vtkMPASReader.h.
int* vtkMPASReader::maxLevelPoint [protected] |
Definition at line 252 of file vtkMPASReader.h.
int vtkMPASReader::maxCells [protected] |
Definition at line 253 of file vtkMPASReader.h.
int vtkMPASReader::maxPoints [protected] |
Definition at line 254 of file vtkMPASReader.h.
int vtkMPASReader::verticalIndex [protected] |
Definition at line 255 of file vtkMPASReader.h.
int vtkMPASReader::numCellVars [protected] |
Definition at line 258 of file vtkMPASReader.h.
int vtkMPASReader::numPointVars [protected] |
Definition at line 259 of file vtkMPASReader.h.
double* vtkMPASReader::pointVarData [protected] |
Definition at line 260 of file vtkMPASReader.h.
double* vtkMPASReader::cellVarData [protected] |
Definition at line 261 of file vtkMPASReader.h.