Go to the documentation of this file.
80 #ifndef vtkMPASReader_h
81 #define vtkMPASReader_h
83 #include "vtkIONetCDFModule.h"
108 vtkSetStringMacro(FileName);
116 vtkGetMacro(MaximumCells,
int);
123 vtkGetMacro(MaximumPoints,
int);
150 vtkGetMacro(UseDimensionedArrayNames,
bool)
160 int GetNumberOfPointArrays();
161 const
char* GetPointArrayName(
int index);
162 int GetPointArrayStatus(const
char*
name);
163 void SetPointArrayStatus(const
char*
name,
int status);
164 void DisableAllPointArrays();
165 void EnableAllPointArrays();
168 int GetNumberOfCellArrays();
169 const
char* GetCellArrayName(
int index);
170 int GetCellArrayStatus(const
char*
name);
171 void SetCellArrayStatus(const
char*
name,
int status);
172 void DisableAllCellArrays();
173 void EnableAllCellArrays();
184 int GetNumberOfDimensions();
185 std::
string GetDimensionName(
int idx);
187 int GetDimensionCurrentIndex(const std::
string &dim);
188 void SetDimensionCurrentIndex(const std::
string &dim,
int idx);
189 int GetDimensionSize(const std::
string &dim);
198 vtkGetMacro(VerticalDimension, std::
string)
207 int GetVerticalLevel();
210 vtkGetVector2Macro(VerticalLevelRange,
int)
213 vtkGetMacro(LayerThickness,
int)
214 vtkGetVector2Macro(LayerThicknessRange,
int)
216 void SetCenterLon(
int val);
217 vtkGetVector2Macro(CenterLonRange,
int)
220 vtkGetMacro(ProjectLatLon,
bool)
223 vtkGetMacro(IsAtmosphere,
bool)
226 vtkGetMacro(IsZeroCentered,
bool)
229 vtkGetMacro(ShowMultilayerView,
bool)
234 static
int CanReadFile(const
char *filename);
241 void ReleaseNcData();
246 int NumberOfTimeSteps;
258 static
void SelectionCallback(
vtkObject* caller,
unsigned long eid,
259 void* clientdata,
void* calldata);
269 void UpdateDimensions(
bool force = false);
271 std::
string VerticalDimension;
272 int VerticalLevelRange[2];
275 int LayerThicknessRange[2];
278 int CenterLonRange[2];
327 int GetNcVars(
const char* cellDimName,
const char* pointDimName);
389 static int NcTypeToVtkType(
int ncType);
392 vtkIdType ComputeNumberOfTuples(NcVar *ncVar);
394 template <
typename ValueType>
395 bool LoadDataArray(NcVar *ncVar,
vtkDataArray *array,
bool resize =
true);
397 template <
typename ValueType>
398 int LoadPointVarDataImpl(NcVar *ncVar,
vtkDataArray *array);
400 template <
typename ValueType>
401 int LoadCellVarDataImpl(NcVar *ncVar,
vtkDataArray *array);
static vtkMPASReader * New()
vtkDataArray * LookupPointDataArray(int varIdx)
virtual int GetNumberOfPointVars()
int AllocProjectedGeometry()
abstract base class for most VTK objects
virtual int GetNumberOfCellVars()
Get the number of data variables at the cell centers and points.
abstract superclass for arrays of numeric data
vtkDataArray * LoadPointVarData(int variable)
vtkDataArray * LookupCellDataArray(int varIdx)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int AddMirrorPoint(int index, double dividerX, double offset)
bool UseDimensionedArrayNames
Store on/off settings for data arrays for a vtkSource.
vtkTypeUInt64 vtkMTimeType
Read an MPAS netCDF file.
void LoadTimeFieldData(vtkUnstructuredGrid *dataset)
Update the "Time" vtkStringArray in dataset's FieldData to contain the xtime string for the current t...
vtkDataArray * LoadCellVarData(int variable)
long InitializeDimension(const NcDim *dim)
For an arbitrary (i.e.
a simple class to control print indentation
int AllocPlanarGeometry()
bool ValidateDimensions(NcVar *var, bool silent, int ndims,...)
Returns true if the dimensions in var match the expected args, or prints a warning and returns false ...
int AllocSphericalGeometry()
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
size_t GetCountForDimension(const NcDim *dim)
Return the number of values to read for the specified dimension.
long GetCursorForDimension(const NcDim *dim)
Return the cursor position for the specified dimension.
vtkUnstructuredGrid * GetOutput(int index)
supports function callbacks
unsigned char GetCellType()
a vtkAbstractArray subclass for strings
vtkUnstructuredGrid * GetOutput()
Get the reader's output.
Superclass for algorithms that produce only unstructured grid as output.
dynamic, self-adjusting array of double
dataset represents arbitrary combinations of all possible cell types
Wrapper around std::string to keep symbols short.
int GetNcVars(const char *cellDimName, const char *pointDimName)