[vtkusers] Xdmf2 Reader

Gaetano Esposito gaetano.esposito at outlook.com
Fri Feb 27 13:59:33 EST 2015


I am  reading an xmf file which has a .h5 data file associated with it. There is temporal data stored in the xmf file. I am attaching some relevant information about the header at the bottom of the message.

I am using vtkXdmfReader but I am finding difficulties in setting which time-step to display. Actually, I have no idea about how to do that, which means I do not have a full understanding on how to interact with the vtkXdmfReader filter.
There is no public method that allows to choose which timestep data to expose to the other filters down the pipeline. 
I see that in the filter, the timestep is selected with a reference to the key / value information required to handle the VTK pipeline. However, I am unsure whether I am supposed to point to the sought timestep by using the vtkInformation machinery, since I thought that this approach is supposed to be consumed by filters only.
My question is: How do I point to a specific timestep? How can I direct other filters, or data object extractor, to a specific timestep in the vtkXdmfReader?
Any help or pointer is appreciate.
<Xdmf>  <Domain Name="gradient">    <Grid Name="gradientGrid" GridType="Collection" CollectionType="Temporal">
<!-- Time 3.4 Iteration 00000 -->    <Grid Name="Mesh 3.4">      <Time TimeType="Single" Value="3.4" />      <Topology         Type="Tetrahedron"         NumberOfElements="188538"         BaseOffset="0">         <DataStructure Format="HDF"                        Dimensions="188538 4"                        DataType="Int"                        Precision="8">             gradient.h5:/Connections/Values         </DataStructure>      </Topology>      <Geometry Type="X_Y_Z">         <DataStructure Format="HDF"                        Dimensions="49237"                        DataType="Float"                        Precision="8">             gradient.h5:/PointsX.00000/Values         </DataStructure>         <DataStructure Format="HDF"                        Dimensions="49237"                        DataType="Float"                        Precision="8">             gradient.h5:/PointsY.00000/Values         </DataStructure>         <DataStructure Format="HDF"                        Dimensions="49237"                        DataType="Float"                        Precision="8">             gradient.h5:/PointsZ.00000/Values         </DataStructure>      </Geometry>

      <Attribute         Type="Vector"         Center="Node"         Name="wss_computed">         <DataStructure ItemType="HyperSlab"                        Dimensions="49237 3"                        Type="HyperSlab">           <DataStructure  Dimensions="3 2"                           Format="XML">               0    0               1    1               49237 3           </DataStructure>           <DataStructure  Format="HDF"                           Dimensions="319184 3"                           DataType="Float"                           Precision="8">               gradient.h5:/wss_computed.00000/Values           </DataStructure>         </DataStructure>    </Attribute>   </Grid> 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150227/45c6c1a4/attachment.html>


More information about the vtkusers mailing list