Table Operations
Append Table to Cell Data
- class PVGeo.filters.tables.AppendTableToCellData[source]
Bases:
FilterPreserveTypeBaseTakes two inputs, a dataset to preserve and a table of data, where the data in the table is appended to the CellData of the input dataset. The 0th port is the dataset to preserve and the 1st port is a table who’s rows will be appended as CellData to the 0th port. The number of rows in the table MUST match the number of cells in the input dataset.
Combine Tables
- class PVGeo.filters.tables.CombineTables[source]
Bases:
FilterBaseTakes two tables and combines them if they have the same number of rows. Currently this cannot handle time varying tables as that gets complicated really quickly if the tables do not have the same timestep values
Extract Array
- class PVGeo.filters.tables.ExtractArray[source]
Bases:
FilterBaseExtract an array from a
vtkDataSetand make avtkTableof it.- SetInputArrayToProcess(idx, port, connection, field, name)[source]
Used to set the input array(s)
- Parameters:
idx (int) – the index of the array to process
port (int) – input port (use 0 if unsure)
connection (int) – the connection on the port (use 0 if unsure)
field (int) – the array field (0 for points, 1 for cells, 2 for field, and 6 for row)
name (int) – the name of the array
Reshape Table
- class PVGeo.filters.tables.ReshapeTable(**kwargs)[source]
Bases:
FilterBaseThis filter will take a
vtkTableobject and reshape it. This filter essentially treatsvtkTable``s as 2D matrices and reshapes them using ``numpy.reshapein a C contiguous manner. Unfortunately, data fields will be renamed arbitrarily because VTK data arrays require a name.
Split Table On Array
- class PVGeo.filters.tables.SplitTableOnArray[source]
Bases:
FilterBaseA filter to separate table data based on the unique values of a given data array into a
vtkMultiBlockDataSet.- SetInputArrayToProcess(idx, port, connection, field, name)[source]
Used to set the input array(s)
- Parameters:
idx (int) – the index of the array to process
port (int) – input port (use 0 if unsure)
connection (int) – the connection on the port (use 0 if unsure)
field (int) – the array field (0 for points, 1 for cells, 2 for field, and 6 for row)
name (int) – the name of the array