Transform

Reverse Image Data Axii

class PVGeo.grids.transform.ReverseImageDataAxii(axes=[True, True, True])[source]

Bases: PVGeo.base.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.

RequestData(request, inInfo, outInfo)[source]

Used by pipeline to generate output.

SetFlipX(flag)[source]

Set the filter to flip th input data along the X-axis

SetFlipY(flag)[source]

Set the filter to flip th input data along the Y-axis

SetFlipZ(flag)[source]

Set the filter to flip th input data along the Z-axis

_ReverseGridAxii(idi, ido)[source]

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: PVGeo.base.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.

GetTimestepValues()[source]

Use this in ParaView decorator to register timesteps on the pipeline.

Modified(runAgain=True)[source]

Call modified if the filter needs to run again

RequestData(request, inInfo, outInfo)[source]

Used by pipeline to generate output

RequestInformation(request, inInfo, outInfo)[source]

Used by pipeline to set whole output extent.

SetDimensions(x, y, z, t)[source]
SetExtent(nx, ny, nz, nt)[source]

Set the extent of the output grid

SetOrder(order)[source]

Set the reshape order (‘C’ or ‘F’)

SetOrigin(x0, y0, z0)[source]

Set the origin of the output vtkImageData

SetSpacing(dx, dy, dz)[source]

Set the spacing for the points along each axial direction

SetTimeDelta(dt)[source]

An advanced property to set the time step in seconds.

SetUsePoints(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.

_BuildImageData(img)[source]
_SetData(table)[source]
_UpdateTimeSteps()[source]

For internal use only: appropriately sets the timesteps.

Translate Grid Origin

class PVGeo.grids.transform.TranslateGridOrigin(corner=1)[source]

Bases: PVGeo.base.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).

RequestData(request, inInfo, outInfo)[source]

Used by pipeline to generate output.

SetCorner(corner)[source]

Set the corner to use

Parameters:corner (int) – corner location; see note.

Note

  • 1: South East Bottom
  • 2: North West Bottom
  • 3: North East Bottom
  • 4: South West Top
  • 5: South East Top
  • 6: North West Top
  • 7: North East Top
_Translate(pdi, pdo)[source]