39#ifndef vtkMPASReader_h
40#define vtkMPASReader_h
42#include "vtkIONetCDFModule.h"
47VTK_ABI_NAMESPACE_BEGIN
72 vtkGetMacro(MaximumCells,
int);
79 vtkGetMacro(MaximumPoints,
int);
105 vtkSetMacro(UseDimensionedArrayNames,
bool);
106 vtkGetMacro(UseDimensionedArrayNames,
bool);
107 vtkBooleanMacro(UseDimensionedArrayNames,
bool);
153 vtkSetMacro(VerticalDimension, std::string);
154 vtkGetMacro(VerticalDimension, std::string);
166 vtkGetVector2Macro(VerticalLevelRange,
int);
168 vtkSetMacro(LayerThickness,
int);
169 vtkGetMacro(LayerThickness,
int);
170 vtkGetVector2Macro(LayerThicknessRange,
int);
173 vtkGetVector2Macro(CenterLonRange,
int);
175 vtkSetMacro(ProjectLatLon,
bool);
176 vtkGetMacro(ProjectLatLon,
bool);
178 vtkSetMacro(IsAtmosphere,
bool);
179 vtkGetMacro(IsAtmosphere,
bool);
181 vtkSetMacro(IsZeroCentered,
bool);
182 vtkGetMacro(IsZeroCentered,
bool);
184 vtkSetMacro(ShowMultilayerView,
bool);
185 vtkGetMacro(ShowMultilayerView,
bool);
212 vtkObject* caller,
unsigned long eid,
void* clientdata,
void* calldata);
225 int VerticalLevelRange[2];
228 int LayerThicknessRange[2];
231 int CenterLonRange[2];
280 int GetNcVars(
const char* cellDimName,
const char* pointDimName);
supports function callbacks
Store on/off settings for data arrays, etc.
abstract superclass for arrays of numeric data
dynamic, self-adjusting array of double
a simple class to control print indentation
Read an MPAS netCDF file.
void UpdateDimensions(bool force=false)
Update the list of available dimensions.
int GetNumberOfPointArrays()
The following methods allow selective reading of solutions fields.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkDataArray * LookupPointDataArray(int varIdx)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCallbackCommand * SelectionObserver
vtkDataArray * LookupCellDataArray(int varIdx)
virtual int GetNumberOfPointVars()
Get the number of data variables at the cell centers and points.
int AllocPlanarGeometry()
vtkUnstructuredGrid * GetOutput(int idx)
Get the reader's output.
void SetPointArrayStatus(const char *name, int status)
The following methods allow selective reading of solutions fields.
void EnableAllPointArrays()
The following methods allow selective reading of solutions fields.
int GetDimensionCurrentIndex(const std::string &dim)
If the point/cell arrays contain dimensions other than Time, nCells, or nVertices,...
int GetCellArrayStatus(const char *name)
int GetVerticalLevel()
Convenience function for setting/querying [GS]etDimensionCurrentIndex for the dimension returned by G...
vtkIdType GetNumberOfDimensions()
If the point/cell arrays contain dimensions other than Time, nCells, or nVertices,...
std::string GetDimensionName(int idx)
If the point/cell arrays contain dimensions other than Time, nCells, or nVertices,...
const char * GetCellArrayName(int index)
vtkGetFilePathMacro(FileName)
Specify file name of MPAS data file to read.
void EnableAllCellArrays()
void SetDimensionCurrentIndex(const std::string &dim, int idx)
If the point/cell arrays contain dimensions other than Time, nCells, or nVertices,...
void SetCellArrayStatus(const char *name, int status)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkStringArray * GetAllDimensions()
If the point/cell arrays contain dimensions other than Time, nCells, or nVertices,...
size_t MaximumNVertLevels
int AllocSphericalGeometry()
int AddMirrorPoint(int index, double dividerX, double offset)
int GetNumberOfCellArrays()
vtkDataArraySelection * PointDataArraySelection
static void SelectionCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
std::string VerticalDimension
static vtkMPASReader * New()
void DisableAllPointArrays()
The following methods allow selective reading of solutions fields.
virtual int GetNumberOfCellVars()
Get the number of data variables at the cell centers and points.
unsigned char GetCellType()
int GetNcVars(const char *cellDimName, const char *pointDimName)
void SetVerticalLevel(int level)
Convenience function for setting/querying [GS]etDimensionCurrentIndex for the dimension returned by G...
~vtkMPASReader() override
vtkDataArray * LoadPointVarData(int variable)
int GetDimensionSize(const std::string &dim)
If the point/cell arrays contain dimensions other than Time, nCells, or nVertices,...
static int CanReadFile(VTK_FILEPATH const char *filename)
Returns true if the given file can be read.
int GetPointArrayStatus(const char *name)
The following methods allow selective reading of solutions fields.
void DisableAllCellArrays()
const char * GetPointArrayName(int index)
The following methods allow selective reading of solutions fields.
vtkUnstructuredGrid * GetOutput()
Get the reader's output.
vtkSetFilePathMacro(FileName)
Specify file name of MPAS data file to read.
vtkDataArraySelection * CellDataArraySelection
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)
vtkMTimeType GetMTime() override
Return this object's modified time.
bool UseDimensionedArrayNames
void SetCenterLon(int val)
int AllocProjectedGeometry()
abstract base class for most VTK objects
a vtkAbstractArray subclass for strings
Superclass for algorithms that produce only unstructured grid as output.
dataset represents arbitrary combinations of all possible cell types
vtkTypeUInt32 vtkMTimeType