[vtkusers] vtkExodusIIReader: Extract time step value?
nico.schloemer at gmail.com
Mon Sep 10 06:00:26 EDT 2012
from vtk import *
rdr = vtkExodusIIReader()
yields and error saying that "GetOutputInformation" isn't a member of
I see that it should be there though. Might this be a bug in the
Python interface? This is with VTK 5.8.0.
On Sat, Sep 8, 2012 at 6:26 PM, David Thompson
<david.thompson at kitware.com> wrote:
> Hi Nico,
>> after having read a particular (integer) time step from an Exodus file
>> with the vtkExodusIIReader,
>> http://www.vtk.org/doc/nightly/html/classvtkExodusIIReader.html, how
>> do I extract the actual (float/double) time value that's associated
>> with it?
> Filters that generate temporal data should set the vtkStreamingDemandDrivenPipeline::TIME_STEPS() key on their corresponding output's vtkInformation object. Access to any vtkAlgorithm's output information is available via the GetOutputInformation() method.
> Using the exodus reader on can.ex2 as an example, here's a vtkpython script to get time step information:
> from vtk import *
> rdr = vtkExodusIIReader()
> This returns a vector of doubles. You can use the integer time step as an index into the vector.
More information about the vtkusers