Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
vtkUnstructuredPOPReader Class Reference

read NetCDF files More...

#include <vtkUnstructuredPOPReader.h>

Inheritance diagram for vtkUnstructuredPOPReader:
Inheritance graph
[legend]
Collaboration diagram for vtkUnstructuredPOPReader:
Collaboration graph
[legend]

Public Types

typedef vtkUnstructuredGridAlgorithm Superclass
 
- Public Types inherited from vtkUnstructuredGridAlgorithm
typedef vtkAlgorithm Superclass
 
- Public Types inherited from vtkAlgorithm
enum  DesiredOutputPrecision
 
enum  DesiredOutputPrecision
 
typedef vtkObject Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
virtual void SetFileName (const char *)
 The NetCDF file to open. More...
 
virtual char * GetFileName ()
 The NetCDF file to open. More...
 
virtual void SetStride (int, int, int)
 Enable subsampling in i,j and k dimensions for the topologically structured input data. More...
 
virtual void SetStride (int [3])
 Enable subsampling in i,j and k dimensions for the topologically structured input data. More...
 
virtual intGetStride ()
 Enable subsampling in i,j and k dimensions for the topologically structured input data. More...
 
virtual void GetStride (int &, int &, int &)
 Enable subsampling in i,j and k dimensions for the topologically structured input data. More...
 
virtual void GetStride (int [3])
 Enable subsampling in i,j and k dimensions for the topologically structured input data. More...
 
virtual void SetVOI (int, int, int, int, int, int)
 Set the VOI of for the topologically structured input data. More...
 
virtual void SetVOI (int [6])
 Set the VOI of for the topologically structured input data. More...
 
virtual intGetVOI ()
 Set the VOI of for the topologically structured input data. More...
 
virtual void GetVOI (int &, int &, int &, int &, int &, int &)
 Set the VOI of for the topologically structured input data. More...
 
virtual void GetVOI (int [6])
 Set the VOI of for the topologically structured input data. More...
 
virtual int GetNumberOfVariableArrays ()
 Variable array selection. More...
 
virtual const char * GetVariableArrayName (int idx)
 Variable array selection. More...
 
virtual int GetVariableArrayStatus (const char *name)
 Variable array selection. More...
 
virtual void SetVariableArrayStatus (const char *name, int status)
 Variable array selection. More...
 
virtual void SetRadius (double)
 Set the outer radius of the Earth. More...
 
virtual double GetRadius ()
 Set the outer radius of the Earth. More...
 
virtual int GetVectorGrid ()
 Determine whether or not the input data is being interpolated at the U/vector points or T/scalar points. More...
 
virtual void SetVerticalVelocity (bool)
 Specify whether or not to compute the vertical velocity component from the horizontal velocity components. More...
 
virtual bool GetVerticalVelocity ()
 Specify whether or not to compute the vertical velocity component from the horizontal velocity components. More...
 
- Public Member Functions inherited from vtkUnstructuredGridAlgorithm
vtkUnstructuredGridAlgorithmNewInstance () const
 
vtkDataObjectGetInput (int port)
 
vtkDataObjectGetInput ()
 
vtkUnstructuredGridGetUnstructuredGridInput (int port)
 
vtkUnstructuredGridGetOutput ()
 
vtkUnstructuredGridGetOutput (int)
 
virtual void SetOutput (vtkDataObject *d)
 
virtual int ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
void SetInputData (vtkDataObject *)
 
void SetInputData (int, vtkDataObject *)
 
void AddInputData (vtkDataObject *)
 
void AddInputData (int, vtkDataObject *)
 
vtkUnstructuredGridGetOutput ()
 
vtkUnstructuredGridGetOutput (int)
 
virtual void SetOutput (vtkDataObject *d)
 
virtual int ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
void SetInputData (vtkDataObject *)
 
void SetInputData (int, vtkDataObject *)
 
void AddInputData (vtkDataObject *)
 
void AddInputData (int, vtkDataObject *)
 
- Public Member Functions inherited from vtkAlgorithm
vtkAlgorithmNewInstance () const
 
int HasExecutive ()
 
vtkExecutiveGetExecutive ()
 
virtual void SetExecutive (vtkExecutive *executive)
 
virtual int ModifyRequest (vtkInformation *request, int when)
 
vtkInformationGetInputPortInformation (int port)
 
vtkInformationGetOutputPortInformation (int port)
 
int GetNumberOfInputPorts ()
 
int GetNumberOfOutputPorts ()
 
void UpdateProgress (double amount)
 
vtkInformationGetInputArrayInformation (int idx)
 
void RemoveAllInputs ()
 
vtkDataObjectGetOutputDataObject (int port)
 
virtual void RemoveInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void RemoveInputConnection (int port, int idx)
 
virtual void RemoveAllInputConnections (int port)
 
int GetNumberOfInputConnections (int port)
 
int GetTotalNumberOfInputConnections ()
 
vtkAlgorithmOutputGetInputConnection (int port, int index)
 
vtkAlgorithmGetInputAlgorithm (int port, int index, int &algPort)
 
vtkAlgorithmGetInputAlgorithm (int port, int index)
 
vtkExecutiveGetInputExecutive (int port, int index)
 
vtkInformationGetInputInformation (int port, int index)
 
vtkInformationGetOutputInformation (int port)
 
virtual int Update (int port, vtkInformationVector *requests)
 
virtual int Update (vtkInformation *requests)
 
virtual int UpdateExtent (const int extents[6])
 
virtual void UpdateInformation ()
 
virtual void UpdateDataObject ()
 
virtual void PropagateUpdateExtent ()
 
virtual void UpdateWholeExtent ()
 
void ConvertTotalInputToPortConnection (int ind, int &port, int &conn)
 
int SetUpdateExtentToWholeExtent (int port)
 
int SetUpdateExtentToWholeExtent ()
 
void SetUpdateExtent (int port, int extent[6])
 
void SetUpdateExtent (int extent[6])
 
int ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo)
 
virtual int ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, vtkMTimeType *mtime)
 
virtual vtkInformationGetInformation ()
 
virtual void SetInformation (vtkInformation *)
 
void Register (vtkObjectBase *o) VTK_OVERRIDE
 
void UnRegister (vtkObjectBase *o) VTK_OVERRIDE
 
virtual void SetAbortExecute (int)
 
virtual int GetAbortExecute ()
 
virtual void AbortExecuteOn ()
 
virtual void AbortExecuteOff ()
 
virtual void SetProgress (double)
 
virtual double GetProgress ()
 
void SetProgressText (const char *ptext)
 
virtual char * GetProgressText ()
 
virtual unsigned long GetErrorCode ()
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
 
virtual void SetInputArrayToProcess (int idx, vtkInformation *info)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName)
 
vtkDataObjectGetInputDataObject (int port, int connection)
 
virtual void SetInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void SetInputConnection (vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (vtkAlgorithmOutput *input)
 
virtual void SetInputDataObject (int port, vtkDataObject *data)
 
virtual void SetInputDataObject (vtkDataObject *data)
 
virtual void AddInputDataObject (int port, vtkDataObject *data)
 
virtual void AddInputDataObject (vtkDataObject *data)
 
vtkAlgorithmOutputGetOutputPort (int index)
 
vtkAlgorithmOutputGetOutputPort ()
 
vtkAlgorithmGetInputAlgorithm ()
 
vtkExecutiveGetInputExecutive ()
 
vtkInformationGetInputInformation ()
 
virtual void Update (int port)
 
virtual void Update ()
 
virtual int UpdatePiece (int piece, int numPieces, int ghostLevels, const int extents[6]=0)
 
virtual int UpdateTimeStep (double time, int piece=-1, int numPieces=1, int ghostLevels=0, const int extents[6]=0)
 
virtual void SetReleaseDataFlag (int)
 
virtual int GetReleaseDataFlag ()
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, vtkDataObject *output)
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
 
void SetUpdateExtent (int port, int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int piece, int numPieces, int ghostLevel)
 
intGetUpdateExtent ()
 
intGetUpdateExtent (int port)
 
void GetUpdateExtent (int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int port, int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int extent[6])
 
void GetUpdateExtent (int port, int extent[6])
 
int GetUpdatePiece ()
 
int GetUpdatePiece (int port)
 
int GetUpdateNumberOfPieces ()
 
int GetUpdateNumberOfPieces (int port)
 
int GetUpdateGhostLevel ()
 
int GetUpdateGhostLevel (int port)
 
void SetProgressObserver (vtkProgressObserver *)
 
virtual vtkProgressObserverGetProgressObserver ()
 
int ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo)
 
virtual int ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, vtkMTimeType *mtime)
 
virtual vtkInformationGetInformation ()
 
virtual void SetInformation (vtkInformation *)
 
void Register (vtkObjectBase *o) VTK_OVERRIDE
 
void UnRegister (vtkObjectBase *o) VTK_OVERRIDE
 
virtual void SetAbortExecute (int)
 
virtual int GetAbortExecute ()
 
virtual void AbortExecuteOn ()
 
virtual void AbortExecuteOff ()
 
virtual void SetProgress (double)
 
virtual double GetProgress ()
 
void SetProgressText (const char *ptext)
 
virtual char * GetProgressText ()
 
virtual unsigned long GetErrorCode ()
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
 
virtual void SetInputArrayToProcess (int idx, vtkInformation *info)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName)
 
vtkDataObjectGetInputDataObject (int port, int connection)
 
virtual void SetInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void SetInputConnection (vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (vtkAlgorithmOutput *input)
 
virtual void SetInputDataObject (int port, vtkDataObject *data)
 
virtual void SetInputDataObject (vtkDataObject *data)
 
virtual void AddInputDataObject (int port, vtkDataObject *data)
 
virtual void AddInputDataObject (vtkDataObject *data)
 
vtkAlgorithmOutputGetOutputPort (int index)
 
vtkAlgorithmOutputGetOutputPort ()
 
vtkAlgorithmGetInputAlgorithm ()
 
vtkExecutiveGetInputExecutive ()
 
vtkInformationGetInputInformation ()
 
virtual void Update (int port)
 
virtual void Update ()
 
virtual int UpdatePiece (int piece, int numPieces, int ghostLevels, const int extents[6]=0)
 
virtual int UpdateTimeStep (double time, int piece=-1, int numPieces=1, int ghostLevels=0, const int extents[6]=0)
 
virtual void SetReleaseDataFlag (int)
 
virtual int GetReleaseDataFlag ()
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, vtkDataObject *output)
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
 
void SetUpdateExtent (int port, int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int piece, int numPieces, int ghostLevel)
 
intGetUpdateExtent ()
 
intGetUpdateExtent (int port)
 
void GetUpdateExtent (int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int port, int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int extent[6])
 
void GetUpdateExtent (int port, int extent[6])
 
int GetUpdatePiece ()
 
int GetUpdatePiece (int port)
 
int GetUpdateNumberOfPieces ()
 
int GetUpdateNumberOfPieces (int port)
 
int GetUpdateGhostLevel ()
 
int GetUpdateGhostLevel (int port)
 
void SetProgressObserver (vtkProgressObserver *)
 
virtual vtkProgressObserverGetProgressObserver ()
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
virtual vtkMTimeType GetMTime ()
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
void SetReferenceCount (int)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 
void PrintRevisions (ostream &)
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkUnstructuredPOPReaderSafeDownCast (vtkObject *o)
 
static vtkUnstructuredPOPReaderNew ()
 
- Static Public Member Functions inherited from vtkUnstructuredGridAlgorithm
static vtkUnstructuredGridAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkUnstructuredGridAlgorithmSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkAlgorithm
static vtkAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkAlgorithmSafeDownCast (vtkObjectBase *o)
 
static vtkInformationIntegerKeyINPUT_IS_OPTIONAL ()
 
static vtkInformationIntegerKeyINPUT_IS_REPEATABLE ()
 
static vtkInformationInformationVectorKeyINPUT_REQUIRED_FIELDS ()
 
static vtkInformationStringVectorKeyINPUT_REQUIRED_DATA_TYPE ()
 
static vtkInformationInformationVectorKeyINPUT_ARRAYS_TO_PROCESS ()
 
static vtkInformationIntegerKeyINPUT_PORT ()
 
static vtkInformationIntegerKeyINPUT_CONNECTION ()
 
static vtkInformationIntegerKeyCAN_PRODUCE_SUB_EXTENT ()
 
static vtkInformationIntegerKeyCAN_HANDLE_PIECE_REQUEST ()
 
static void SetDefaultExecutivePrototype (vtkExecutive *proto)
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 
static vtkObjectBaseNew ()
 

Protected Member Functions

 vtkUnstructuredPOPReader ()
 
 ~vtkUnstructuredPOPReader () override
 
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
 
bool Transform (vtkUnstructuredGrid *grid, size_t *start, size_t *count, int *wholeExtent, int *subExtent, int numberOfGhostLevels, int wrapped, int piece, int numberOfPieces)
 Transform the grid from a topologically structured grid to a sphere shaped grid and do any vector transformations on field data that is needed. More...
 
int ProcessGrid (vtkUnstructuredGrid *grid, int piece, int numberOfPieces, int numberOfGhostLevels)
 Given the meta data about the grid partitioning, read in the data from the file and create the unstructured grid. More...
 
bool ReadMetaData (int wholeExtent[6])
 Reads the meta data from the NetCDF file for information like what variables exist and the dimensions of the grids and variables. More...
 
int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
 
void LoadPointData (vtkUnstructuredGrid *grid, int netCDFFD, int varidp, size_t *start, size_t *count, ptrdiff_t *rStride, const char *arrayName)
 Adds a point data field given by varidp in the NetCDF file to the grid's point data. More...
 
void ComputeVerticalVelocity (vtkUnstructuredGrid *grid, int *wholeExtent, int *subExtent, int numberOfGhostLevels, int latlonFileId)
 Compute the vertical velocity component and add it into the velocity field. More...
 
void CommunicateParallelVerticalVelocity (int *wholeExtent, int *subExtent, int numberOfGhostLevels, VTKPointIterator &pointIterator, double *w)
 If the reader is being run in parallel, do the necessary communication to finish the vertical velocity integration on each process. More...
 
int GetPointOwnerPiece (int iIndex, int jIndex, int kKindex, int numberOfPieces, int numberOfGhostLevels, int *wholeExtent)
 Given ijk indices with respect to WholeExtent, return the process that is considered owning this point. More...
 
void GetPiecesNeedingPoint (int iIndex, int jIndex, int kKindex, int numberOfPieces, int numberOfGhostLevels, int *wholeExtent, vtkIdList *pieceIds)
 Given ijk indices, fill pieceIds with the pieces which contain need this point for computing the vertical velocity. More...
 
bool GetExtentInformation (int piece, int numberOfPieces, int numberOfGhostLevels, int *wholeExtent, int *subExtent)
 Given piece, numberOfPieces, numberOfGhostLevels, and wholeExtent, this method fills in subExtent. More...
 
bool BuildGhostInformation (vtkUnstructuredGrid *grid, int numberOfGhostLevels, int *wholeExtent, int *subExtent, int wrapped, int piece, int numberOfPieces)
 Build up the requested ghost information. More...
 
- Protected Member Functions inherited from vtkUnstructuredGridAlgorithm
virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkUnstructuredGridAlgorithm ()
 
 ~vtkUnstructuredGridAlgorithm ()
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
- Protected Member Functions inherited from vtkAlgorithm
 vtkAlgorithm ()
 
 ~vtkAlgorithm ()
 
virtual void SetNumberOfInputPorts (int n)
 
virtual void SetNumberOfOutputPorts (int n)
 
int InputPortIndexInRange (int index, const char *action)
 
int OutputPortIndexInRange (int index, const char *action)
 
int GetInputArrayAssociation (int idx, vtkInformationVector **inputVector)
 
virtual vtkExecutiveCreateDefaultExecutive ()
 
void ReportReferences (vtkGarbageCollector *) VTK_OVERRIDE
 
virtual void SetNumberOfInputConnections (int port, int n)
 
int GetInputArrayAssociation (int idx, int connection, vtkInformationVector **inputVector)
 
int GetInputArrayAssociation (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkInformationGetInputArrayFieldInformation (int idx, vtkInformationVector **inputVector)
 
virtual void SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input)
 
void SetInputDataInternal (int port, vtkDataObject *input)
 
void AddInputDataInternal (int port, vtkDataObject *input)
 
int GetInputArrayAssociation (int idx, int connection, vtkInformationVector **inputVector)
 
int GetInputArrayAssociation (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkInformationGetInputArrayFieldInformation (int idx, vtkInformationVector **inputVector)
 
virtual void SetErrorCode (unsigned long)
 
virtual void SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input)
 
void SetInputDataInternal (int port, vtkDataObject *input)
 
void AddInputDataInternal (int port, vtkDataObject *input)
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE
 
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Static Protected Member Functions

static void SelectionModifiedCallback (vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
 
static void EventCallback (vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
 
- Static Protected Member Functions inherited from vtkAlgorithm
static vtkInformationIntegerKeyPORT_REQUIREMENTS_FILLED ()
 

Protected Attributes

vtkCallbackCommandSelectionObserver
 
char * FileName
 The name of the file to be opened. More...
 
int Stride [3]
 
int NCDFFD
 The NetCDF file descriptor. More...
 
double Radius
 The radius of the sphere to be outputted in meters. More...
 
int VOI [6]
 
int VectorGrid
 Specify whether the grid points are at the vector field (U_LAT and U_LON) locations or the scalar field (T_LAT and T_LON) locations or unset. More...
 
bool VerticalVelocity
 If it is a vector grid (i.e. More...
 
bool SubsettingXMin
 State variables so that we know whether or not we are only reading in part of the grid. More...
 
bool SubsettingXMax
 State variables so that we know whether or not we are only reading in part of the grid. More...
 
bool ReducedHeightResolution
 State variables so that we know whether or not we are only reading in part of the grid. More...
 
- Protected Attributes inherited from vtkAlgorithm
vtkInformationInformation
 
double Progress
 
char * ProgressText
 
vtkProgressObserverProgressObserver
 
unsigned long ErrorCode
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 
char * OpenedFileName
 If a file is opened, the file name of the opened file. More...
 
virtual void SetOpenedFileName (const char *)
 If a file is opened, the file name of the opened file. More...
 

Additional Inherited Members

- Public Attributes inherited from vtkAlgorithm
 SINGLE_PRECISION
 
 DOUBLE_PRECISION
 
 DEFAULT_PRECISION
 
int AbortExecute
 
- Static Protected Attributes inherited from vtkAlgorithm
static vtkExecutiveDefaultExecutivePrototype
 

Detailed Description

read NetCDF files

vtkUnstructuredPOPReader reads NetCDF POP files into a spherical shaped grid. The input file has topologically structured data. The striding and VOI are done with respect to the topologically structured ordering. Additionally, the z coordinates of the output grid are negated so that the first slice/plane has the highest z-value and the last slice/plane has the lowest z-value. Note that depth_t is used for the z location of the points. For VOI and striding, striding is done first and then the VOI is done. For example, if stride was [1, 2, 3] for a [3600, 2400, 42] grid then the wholeExtent would be [0, 3600, 0, 1200, 0, 14] and then a VOI of [10, 300, 0, 1400, 2 8] would result in a whole extent of [10, 300, 0, 1200, 2, 8] with the first point being [10, 0, 6] in the [3600, 2400, 42] original grid. The reader also requires a GRID.nc file in the same directory as the main file. This is used to map from tripolar logical coordinates to lat-lon coordinates.

Definition at line 38 of file vtkUnstructuredPOPReader.h.

Member Typedef Documentation

◆ Superclass

Definition at line 42 of file vtkUnstructuredPOPReader.h.

Constructor & Destructor Documentation

◆ vtkUnstructuredPOPReader()

vtkUnstructuredPOPReader::vtkUnstructuredPOPReader ( )
protected

◆ ~vtkUnstructuredPOPReader()

vtkUnstructuredPOPReader::~vtkUnstructuredPOPReader ( )
overrideprotected

Member Function Documentation

◆ GetClassName()

virtual const char* vtkUnstructuredPOPReader::GetClassName ( )
virtual

◆ IsTypeOf()

static int vtkUnstructuredPOPReader::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual int vtkUnstructuredPOPReader::IsA ( const char *  type)
virtual

Reimplemented from vtkUnstructuredGridAlgorithm.

◆ SafeDownCast()

static vtkUnstructuredPOPReader* vtkUnstructuredPOPReader::SafeDownCast ( vtkObject o)
static

◆ New()

static vtkUnstructuredPOPReader* vtkUnstructuredPOPReader::New ( )
static

◆ PrintSelf()

void vtkUnstructuredPOPReader::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
overridevirtual

Reimplemented from vtkUnstructuredGridAlgorithm.

◆ SetFileName()

virtual void vtkUnstructuredPOPReader::SetFileName ( const char *  )
virtual

The NetCDF file to open.

◆ GetFileName()

virtual char* vtkUnstructuredPOPReader::GetFileName ( )
virtual

The NetCDF file to open.

◆ SetStride() [1/2]

virtual void vtkUnstructuredPOPReader::SetStride ( int  ,
int  ,
int   
)
virtual

Enable subsampling in i,j and k dimensions for the topologically structured input data.

Note that if number of points in the z-direction are reduced that the vertical velocity will not be computed.

◆ SetStride() [2/2]

virtual void vtkUnstructuredPOPReader::SetStride ( int  [3])
virtual

Enable subsampling in i,j and k dimensions for the topologically structured input data.

Note that if number of points in the z-direction are reduced that the vertical velocity will not be computed.

◆ GetStride() [1/3]

virtual int* vtkUnstructuredPOPReader::GetStride ( )
virtual

Enable subsampling in i,j and k dimensions for the topologically structured input data.

Note that if number of points in the z-direction are reduced that the vertical velocity will not be computed.

◆ GetStride() [2/3]

virtual void vtkUnstructuredPOPReader::GetStride ( int ,
int ,
int  
)
virtual

Enable subsampling in i,j and k dimensions for the topologically structured input data.

Note that if number of points in the z-direction are reduced that the vertical velocity will not be computed.

◆ GetStride() [3/3]

virtual void vtkUnstructuredPOPReader::GetStride ( int  [3])
virtual

Enable subsampling in i,j and k dimensions for the topologically structured input data.

Note that if number of points in the z-direction are reduced that the vertical velocity will not be computed.

◆ SetVOI() [1/2]

virtual void vtkUnstructuredPOPReader::SetVOI ( int  ,
int  ,
int  ,
int  ,
int  ,
int   
)
virtual

Set the VOI of for the topologically structured input data.

Note that if number of points in the z-direction are reduced that the vertical velocity will not be computed.

◆ SetVOI() [2/2]

virtual void vtkUnstructuredPOPReader::SetVOI ( int  [6])
virtual

Set the VOI of for the topologically structured input data.

Note that if number of points in the z-direction are reduced that the vertical velocity will not be computed.

◆ GetVOI() [1/3]

virtual int* vtkUnstructuredPOPReader::GetVOI ( )
virtual

Set the VOI of for the topologically structured input data.

Note that if number of points in the z-direction are reduced that the vertical velocity will not be computed.

◆ GetVOI() [2/3]

virtual void vtkUnstructuredPOPReader::GetVOI ( int ,
int ,
int ,
int ,
int ,
int  
)
virtual

Set the VOI of for the topologically structured input data.

Note that if number of points in the z-direction are reduced that the vertical velocity will not be computed.

◆ GetVOI() [3/3]

virtual void vtkUnstructuredPOPReader::GetVOI ( int  [6])
virtual

Set the VOI of for the topologically structured input data.

Note that if number of points in the z-direction are reduced that the vertical velocity will not be computed.

◆ GetNumberOfVariableArrays()

virtual int vtkUnstructuredPOPReader::GetNumberOfVariableArrays ( )
virtual

Variable array selection.

◆ GetVariableArrayName()

virtual const char* vtkUnstructuredPOPReader::GetVariableArrayName ( int  idx)
virtual

Variable array selection.

◆ GetVariableArrayStatus()

virtual int vtkUnstructuredPOPReader::GetVariableArrayStatus ( const char *  name)
virtual

Variable array selection.

◆ SetVariableArrayStatus()

virtual void vtkUnstructuredPOPReader::SetVariableArrayStatus ( const char *  name,
int  status 
)
virtual

Variable array selection.

◆ SetRadius()

virtual void vtkUnstructuredPOPReader::SetRadius ( double  )
virtual

Set the outer radius of the Earth.

By default it is 6371000 which assumes the length is in meters.

◆ GetRadius()

virtual double vtkUnstructuredPOPReader::GetRadius ( )
virtual

Set the outer radius of the Earth.

By default it is 6371000 which assumes the length is in meters.

◆ GetVectorGrid()

virtual int vtkUnstructuredPOPReader::GetVectorGrid ( )
virtual

Determine whether or not the input data is being interpolated at the U/vector points or T/scalar points.

0 means unset, 2 means vector field, and 1 means scalar field.

◆ SetVerticalVelocity()

virtual void vtkUnstructuredPOPReader::SetVerticalVelocity ( bool  )
virtual

Specify whether or not to compute the vertical velocity component from the horizontal velocity components.

Default is false which signifies do not compute.

◆ GetVerticalVelocity()

virtual bool vtkUnstructuredPOPReader::GetVerticalVelocity ( )
virtual

Specify whether or not to compute the vertical velocity component from the horizontal velocity components.

Default is false which signifies do not compute.

◆ RequestData()

int vtkUnstructuredPOPReader::RequestData ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
)
overrideprotectedvirtual

Reimplemented from vtkUnstructuredGridAlgorithm.

◆ SelectionModifiedCallback()

static void vtkUnstructuredPOPReader::SelectionModifiedCallback ( vtkObject caller,
unsigned long  eid,
void *  clientdata,
void *  calldata 
)
staticprotected

◆ EventCallback()

static void vtkUnstructuredPOPReader::EventCallback ( vtkObject caller,
unsigned long  eid,
void *  clientdata,
void *  calldata 
)
staticprotected

◆ SetOpenedFileName()

virtual void vtkUnstructuredPOPReader::SetOpenedFileName ( const char *  )
protectedvirtual

If a file is opened, the file name of the opened file.

◆ Transform()

bool vtkUnstructuredPOPReader::Transform ( vtkUnstructuredGrid grid,
size_t *  start,
size_t *  count,
int wholeExtent,
int subExtent,
int  numberOfGhostLevels,
int  wrapped,
int  piece,
int  numberOfPieces 
)
protected

Transform the grid from a topologically structured grid to a sphere shaped grid and do any vector transformations on field data that is needed.

◆ ProcessGrid()

int vtkUnstructuredPOPReader::ProcessGrid ( vtkUnstructuredGrid grid,
int  piece,
int  numberOfPieces,
int  numberOfGhostLevels 
)
protected

Given the meta data about the grid partitioning, read in the data from the file and create the unstructured grid.

◆ ReadMetaData()

bool vtkUnstructuredPOPReader::ReadMetaData ( int  wholeExtent[6])
protected

Reads the meta data from the NetCDF file for information like what variables exist and the dimensions of the grids and variables.

Returns true for success. Also fills out wholeExtent.

◆ RequestInformation()

int vtkUnstructuredPOPReader::RequestInformation ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
)
overrideprotectedvirtual

Reimplemented from vtkUnstructuredGridAlgorithm.

◆ LoadPointData()

void vtkUnstructuredPOPReader::LoadPointData ( vtkUnstructuredGrid grid,
int  netCDFFD,
int  varidp,
size_t *  start,
size_t *  count,
ptrdiff_t *  rStride,
const char *  arrayName 
)
protected

Adds a point data field given by varidp in the NetCDF file to the grid's point data.

If the units is "centimeter/s" it scales the value by 1/100 (i.e. meter/s).

◆ ComputeVerticalVelocity()

void vtkUnstructuredPOPReader::ComputeVerticalVelocity ( vtkUnstructuredGrid grid,
int wholeExtent,
int subExtent,
int  numberOfGhostLevels,
int  latlonFileId 
)
protected

Compute the vertical velocity component and add it into the velocity field.

◆ CommunicateParallelVerticalVelocity()

void vtkUnstructuredPOPReader::CommunicateParallelVerticalVelocity ( int wholeExtent,
int subExtent,
int  numberOfGhostLevels,
VTKPointIterator &  pointIterator,
double w 
)
protected

If the reader is being run in parallel, do the necessary communication to finish the vertical velocity integration on each process.

◆ GetPointOwnerPiece()

int vtkUnstructuredPOPReader::GetPointOwnerPiece ( int  iIndex,
int  jIndex,
int  kKindex,
int  numberOfPieces,
int  numberOfGhostLevels,
int wholeExtent 
)
protected

Given ijk indices with respect to WholeExtent, return the process that is considered owning this point.

Here the process that owns the piece will have compuated a valid vertical velocity value to share with other processes that need the integrated vertical velocity value. This method returns -1 if no appropriate piece is found.

◆ GetPiecesNeedingPoint()

void vtkUnstructuredPOPReader::GetPiecesNeedingPoint ( int  iIndex,
int  jIndex,
int  kKindex,
int  numberOfPieces,
int  numberOfGhostLevels,
int wholeExtent,
vtkIdList pieceIds 
)
protected

Given ijk indices, fill pieceIds with the pieces which contain need this point for computing the vertical velocity.

Note that the pieces with ghost points only used the reader are not included in the returned Id list. The indices are with respect to WholeExtent.

◆ GetExtentInformation()

bool vtkUnstructuredPOPReader::GetExtentInformation ( int  piece,
int  numberOfPieces,
int  numberOfGhostLevels,
int wholeExtent,
int subExtent 
)
protected

Given piece, numberOfPieces, numberOfGhostLevels, and wholeExtent, this method fills in subExtent.

This method returns true for success.

◆ BuildGhostInformation()

bool vtkUnstructuredPOPReader::BuildGhostInformation ( vtkUnstructuredGrid grid,
int  numberOfGhostLevels,
int wholeExtent,
int subExtent,
int  wrapped,
int  piece,
int  numberOfPieces 
)
protected

Build up the requested ghost information.

Note that if the vertical velocity is computed that the reader needs an extra layer of ghost cells. This extra layer is removed before RequestData() is exited. The method returns true for success.

Member Data Documentation

◆ SelectionObserver

vtkCallbackCommand* vtkUnstructuredPOPReader::SelectionObserver
protected

Definition at line 123 of file vtkUnstructuredPOPReader.h.

◆ FileName

char* vtkUnstructuredPOPReader::FileName
protected

The name of the file to be opened.

Definition at line 128 of file vtkUnstructuredPOPReader.h.

◆ OpenedFileName

char* vtkUnstructuredPOPReader::OpenedFileName
protected

If a file is opened, the file name of the opened file.

Definition at line 134 of file vtkUnstructuredPOPReader.h.

◆ Stride

int vtkUnstructuredPOPReader::Stride[3]
protected

Definition at line 135 of file vtkUnstructuredPOPReader.h.

◆ NCDFFD

int vtkUnstructuredPOPReader::NCDFFD
protected

The NetCDF file descriptor.

Definition at line 143 of file vtkUnstructuredPOPReader.h.

◆ Radius

double vtkUnstructuredPOPReader::Radius
protected

The radius of the sphere to be outputted in meters.

The default value is 6371000.

Definition at line 149 of file vtkUnstructuredPOPReader.h.

◆ VOI

int vtkUnstructuredPOPReader::VOI[6]
protected

Definition at line 151 of file vtkUnstructuredPOPReader.h.

◆ SubsettingXMin

bool vtkUnstructuredPOPReader::SubsettingXMin
protected

State variables so that we know whether or not we are only reading in part of the grid.

SubsettingXMin and SubsettingXMax are used so that we can properly connect the grid in the longitudinal direction. We only compute the vertical velocity if we have the full height resolution of the grid.

Definition at line 161 of file vtkUnstructuredPOPReader.h.

◆ SubsettingXMax

bool vtkUnstructuredPOPReader::SubsettingXMax
protected

State variables so that we know whether or not we are only reading in part of the grid.

SubsettingXMin and SubsettingXMax are used so that we can properly connect the grid in the longitudinal direction. We only compute the vertical velocity if we have the full height resolution of the grid.

Definition at line 162 of file vtkUnstructuredPOPReader.h.

◆ ReducedHeightResolution

bool vtkUnstructuredPOPReader::ReducedHeightResolution
protected

State variables so that we know whether or not we are only reading in part of the grid.

SubsettingXMin and SubsettingXMax are used so that we can properly connect the grid in the longitudinal direction. We only compute the vertical velocity if we have the full height resolution of the grid.

Definition at line 163 of file vtkUnstructuredPOPReader.h.

◆ VectorGrid

int vtkUnstructuredPOPReader::VectorGrid
protected

Specify whether the grid points are at the vector field (U_LAT and U_LON) locations or the scalar field (T_LAT and T_LON) locations or unset.

0 means unset, 2 means vector field, and 1 means scalar field.

Definition at line 171 of file vtkUnstructuredPOPReader.h.

◆ VerticalVelocity

bool vtkUnstructuredPOPReader::VerticalVelocity
protected

If it is a vector grid (i.e.

VectorGrid=2) then specify whether or not to compute the vertical velocity. This can be a costly computation so if the vertical velocity is not needed then keep this off (the default).

Definition at line 179 of file vtkUnstructuredPOPReader.h.


The documentation for this class was generated from the following file: