I’m trying to use vtkTemporalStatistics
in python. Basically I have several vtkUnstructuredGrid
objects and I want to feed them into vtkTemporalStatistics
to take time-average over them. I’m not sure how to feed each time-step into the vtkTemporalStatistics
class. Is it correct to use it this way?
temporalStatisticsFilter = vtk.vtkTemporalStatistics()
temporalStatisticsFilter.ComputeAverageOn()
for vtu in VTUs:
temporalStatisticsFilter.SetInputData(vtu)
temporalStatisticsFilter.Update()
Where VTUs
is the list of vtkUnstructuredGrid
objects.