Transform
Reverse Image Data Axii
- class PVGeo.grids.transform.ReverseImageDataAxii(axes=(True, True, True))[source]
Bases:
FilterBase
This filter will flip
vtkImageData
on any of the three cartesian axii. A checkbox is provided for each axis on which you may desire to flip the data.
Table To Time Grid
- class PVGeo.grids.transform.TableToTimeGrid(extent=(10, 10, 10, 1), order='C', spacing=(1.0, 1.0, 1.0), origin=(0.0, 0.0, 0.0), dims=(0, 1, 2, 3), dt=1.0, points=False, **kwargs)[source]
Bases:
FilterBase
A filter to convert a static (no time variance) table to a time varying grid. This effectively reashapes a table full of data arrays as a 4D array that is placed onto the CellData of a
vtkImageData
object.- get_time_step_values()[source]
Use this in ParaView decorator to register timesteps on the pipeline.
- set_use_points(flag)[source]
Set whether or not to place the data on the nodes/cells of the grid. True places data on nodes, false places data at cell centers (CellData). In ParaView, switching can be a bit buggy: be sure to turn the visibility of this data object OFF on the pipeline when changing between nodes/cells.
Translate Grid Origin
- class PVGeo.grids.transform.TranslateGridOrigin(corner=1)[source]
Bases:
FilterBase
This filter will translate the origin of vtkImageData to any specified Corner of the data set assuming it is currently in the South West Bottom Corner (will not work if Corner was moved prior).