33 #ifndef vtkNetCDFCFReader_h
34 #define vtkNetCDFCFReader_h
36 #include "vtkIONetCDFModule.h"
60 vtkGetMacro(SphericalCoordinates,
int);
77 vtkGetMacro(VerticalScale,
double);
79 vtkGetMacro(VerticalBias,
double);
91 vtkGetMacro(OutputType,
int);
92 virtual void SetOutputType(
int type);
105 static int CanReadFile(
const char *filename);
111 int SphericalCoordinates;
113 double VerticalScale;
134 int ReadMetaData(
int ncFD) VTK_OVERRIDE;
135 int IsTimeDimension(
int ncFD,
int dimId) VTK_OVERRIDE;
142 vtkDimensionInfo(
int ncFD,
int id);
143 const char *
GetName()
const {
return this->Name.c_str(); }
158 return this->SpecialVariables;
169 int LoadMetaData(
int ncFD);
171 class vtkDimensionInfoVector;
172 friend class vtkDimensionInfoVector;
184 return this->GridDimensions;
187 return this->LongitudeCoordinates;
190 return this->LatitudeCoordinates;
193 return this->SpecialVariables;
204 int LoadCoordinateVariable(
int ncFD,
int varId,
vtkDoubleArray *coords);
205 int LoadBoundsVariable(
int ncFD,
int varId,
vtkDoubleArray *coords);
206 int LoadUnstructuredBoundsVariable(
int ncFD,
int varId,
210 class vtkDependentDimensionInfoVector;
211 friend class vtkDependentDimensionInfoVector;
223 virtual void IdentifySphericalCoordinates(
vtkIntArray *dimensions,
237 COORDS_SPHERICAL_PSIDED_CELLS
245 CoordinateTypesEnum CoordinateType(
vtkIntArray *dimensions);
257 void ExtentForDimensionsAndPiece(
int pieceNumber,
271 void AddRectilinearCoordinates(
vtkImageData *imageOutput);
309 void AddUnstructuredRectilinearCoordinates(
312 void AddUnstructuredSphericalCoordinates(
323 #endif //vtkNetCDFCFReader_h
vtkDependentDimensionInfo()
Wrapper around std::string to keep symbols short.
vtkSmartPointer< vtkDoubleArray > Coordinates
vtkSmartPointer< vtkDoubleArray > GetCoordinates()
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
vtkSmartPointer< vtkDoubleArray > LatitudeCoordinates
void SetOutputTypeToStructured()
Set/get the data type of the output.
#define VTK_RECTILINEAR_GRID
Reads netCDF files that follow the CF convention.
abstract class to specify dataset behavior
virtual bool DimensionsAreForPointData(vtkIntArray *vtkNotUsed(dimensions))
Called internally to determine whether a variable with the given set of dimensions should be loaded a...
vtkDimensionInfoVector * DimensionInfo
vtkSmartPointer< vtkStringArray > SpecialVariables
void SetOutputTypeToUnstructured()
Set/get the data type of the output.
bool GetCellsUnstructured() const
UnitsEnum GetUnits() const
Hold a reference to a vtkObjectBase instance.
void SetOutputTypeToImage()
Set/get the data type of the output.
A superclass for reading netCDF files.
dynamic, self-adjusting array of double
dynamic, self-adjusting array of int
void SetOutputTypeToAutomatic()
Set/get the data type of the output.
static vtkNetCDFReader * New()
virtual void GetUpdateExtentForOutput(vtkDataSet *output, int extent[6])
Retrieves the update extent for the output object.
a simple class to control print indentation
double GetSpacing() const
vtkSmartPointer< vtkDoubleArray > GetLatitudeCoordinates() const
topologically and geometrically regular array of data
dataset represents arbitrary combinations of all possible cell types
vtkSmartPointer< vtkStringArray > GetSpecialVariables() const
vtkSmartPointer< vtkStringArray > SpecialVariables
vtkSmartPointer< vtkDoubleArray > GetBounds()
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool GetHasBounds() const
bool GetHasRegularSpacing() const
vtkSmartPointer< vtkDoubleArray > LongitudeCoordinates
vtkDependentDimensionInfoVector * DependentDimensionInfo
topologically regular array of data
void SetOutputTypeToRectilinear()
Set/get the data type of the output.
vtkSmartPointer< vtkDoubleArray > GetLongitudeCoordinates() const
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
const char * GetName() const
vtkSmartPointer< vtkDoubleArray > Bounds
vtkSmartPointer< vtkIntArray > GridDimensions
#define VTK_STRUCTURED_GRID
represent and manipulate 3D points
#define VTK_UNSTRUCTURED_GRID
vtkSmartPointer< vtkStringArray > GetSpecialVariables() const
vtkSmartPointer< vtkIntArray > GetGridDimensions() const