Extract Array to Table

This example will demonstrate how to extract an array from any input data set to make a vtkTable of that single data array

This example demos PVGeo.filters.ExtractArray

from PVGeo.filters import ExtractArray
from pyvista import examples

Create input data

grd = examples.load_rectilinear()

Construct the filter

filt = ExtractArray()
# Define the array to extract
# Apply the filter on the input
table = filt.apply(grd, 'Random Data')
print(table)

Out:

vtkTable (0x469dc30)
  Debug: Off
  Modified Time: 21482
  Reference Count: 2
  Registered Events: (none)
  Information: 0x46b57a0
  Data Released: False
  Global Release Data: Off
  UpdateTime: 21494
  Field Data:
    Debug: Off
    Modified Time: 21476
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
  RowData:
    Debug: Off
    Modified Time: 21490
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 1
    Array 0 name = Random Data
    Number Of Components: 1
    Number Of Tuples: 16146
    Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 )
    Interpolate Flags: ( 1 1 1 1 1 0 0 1 )
    Pass Through Flags: ( 1 1 1 1 1 1 1 1 )
    Scalars: (none)
    Vectors: (none)
    Normals: (none)
    TCoords: (none)
    Tensors: (none)
    GlobalIds: (none)
    PedigreeIds: (none)
    EdgeFlag: (none)

Total running time of the script: ( 0 minutes 0.075 seconds)

Gallery generated by Sphinx-Gallery