[Paraview] ParaView does not take into account 'TimeValues' attribute of VTK XML files

Guillaume Jacquenot guillaume.jacquenot at gmail.com
Wed Feb 24 09:16:32 EST 2016


Dear ParaView users,

I would like to report what seems to me to be a bug.

When I import an XML Vtk file in Paraview that contains several timestep
data with a 'TimeValues' attribute, ParaView does not take into account
these time values specified. ParaView seems to replace these values with
indices.

Below is a VTK XML file (vtu) that can be used to reproduce this bug in PV
5.0.
I expect ParaView to set the correct time values (0.0 to 0.4) and not 0 to
4.
The workaround is of course to use a temporal shift scale fitler, but I
would like to avoid this.

This bug or feature has already been mentioned here
http://public.kitware.com/pipermail/vtkusers/2012-November/077262.html


<?xml version="1.0"?>
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian"
header_type="UInt32" compressor="vtkZLibDataCompressor">
  <UnstructuredGrid  TimeValues="
0
0.1
0.2
0.3
0.4
">
    <Piece NumberOfPoints="4"
NumberOfCells="2"                   >
      <PointData>
      </PointData>
      <CellData>
      </CellData>
      <Points>
        <DataArray type="Float64" Name="Points" NumberOfComponents="3"
TimeStep="0" format="appended" RangeMin="0.17810427802"
RangeMax="1.4155910728"         offset="0"                   />
        <DataArray type="Float64" Name="Points" NumberOfComponents="3"
TimeStep="1" format="appended" RangeMin="0.36965078096"
RangeMax="1.4919238917"         offset="232"                 />
        <DataArray type="Float64" Name="Points" NumberOfComponents="3"
TimeStep="2" format="appended" RangeMin="0.042580074765"
RangeMax="1.4230685602"         offset="368"                 />
        <DataArray type="Float64" Name="Points" NumberOfComponents="3"
TimeStep="3" format="appended" RangeMin="0.78418742079"
RangeMax="1.5809500516"         offset="500"                 />
        <DataArray type="Float64" Name="Points" NumberOfComponents="3"
TimeStep="4" format="appended" RangeMin="0.13130491532"
RangeMax="1.4354029733"         offset="636"                 />
      </Points>
      <Cells>
        <DataArray type="Int64" Name="connectivity" TimeStep="0"
format="appended" RangeMin=""
RangeMax=""                     offset="96"                  />
        <DataArray type="Int64" Name="offsets" TimeStep="0"
format="appended" RangeMin=""
RangeMax=""                     offset="148"                 />
        <DataArray type="UInt8" Name="types" TimeStep="0" format="appended"
RangeMin=""                     RangeMax=""
offset="192"                 />
        <DataArray type="Int64" Name="connectivity" TimeStep="1"
format="appended" RangeMin=""
RangeMax=""                     offset="96"                  />
        <DataArray type="Int64" Name="offsets" TimeStep="1"
format="appended" RangeMin=""
RangeMax=""                     offset="148"                 />
        <DataArray type="UInt8" Name="types" TimeStep="1" format="appended"
RangeMin=""                     RangeMax=""
offset="328"                 />
        <DataArray type="Int64" Name="connectivity" TimeStep="2"
format="appended" RangeMin=""
RangeMax=""                     offset="96"                  />
        <DataArray type="Int64" Name="offsets" TimeStep="2"
format="appended" RangeMin=""
RangeMax=""                     offset="148"                 />
        <DataArray type="UInt8" Name="types" TimeStep="2" format="appended"
RangeMin=""                     RangeMax=""
offset="460"                 />
        <DataArray type="Int64" Name="connectivity" TimeStep="3"
format="appended" RangeMin=""
RangeMax=""                     offset="96"                  />
        <DataArray type="Int64" Name="offsets" TimeStep="3"
format="appended" RangeMin=""
RangeMax=""                     offset="148"                 />
        <DataArray type="UInt8" Name="types" TimeStep="3" format="appended"
RangeMin=""                     RangeMax=""
offset="596"                 />
        <DataArray type="Int64" Name="connectivity" TimeStep="4"
format="appended" RangeMin=""
RangeMax=""                     offset="96"                  />
        <DataArray type="Int64" Name="offsets" TimeStep="4"
format="appended" RangeMin=""
RangeMax=""                     offset="148"                 />
        <DataArray type="UInt8" Name="types" TimeStep="4" format="appended"
RangeMin=""                     RangeMax=""
offset="732"                 />
      </Cells>
    </Piece>
  </UnstructuredGrid>
  <AppendedData encoding="base64">

_AQAAAACAAABgAAAANQAAAA==eJxjYEAF52as/SF35th+CO+DPUw87mP/xeTr+/ajqv5gjyoOU//B/i+zhHb+9/X7Af1cGRo=AQAAAACAAAAwAAAAFQAAAA==eJxjYIAARijNhEbDxJmhNAAA8AAKAQAAAACAAAAQAAAADgAAAA==eJxjZoAANigNAABwAAo=AQAAAACAAAACAAAACgAAAA==eJxjZQUAABEACw==AQAAAACAAABgAAAANQAAAA==eJxjYEAFyttP7Y9ecX0/hPfBHibO7ngn8LfI7f2oqj/Yo4rD1H+wPy2bs5M3695+AGqpFhY=AQAAAACAAAACAAAACgAAAA==eJxjZQUAABEACw==AQAAAACAAABgAAAAMwAAAA==eJxjYEAFKXPVLPnOLrWH8D7Yw8T36H/sTz2x0x5V9Qd7VPEPcLrkSRfnG88j9gAL4hUfAQAAAACAAAACAAAACgAAAA==eJxjZQUAABEACw==AQAAAACAAABgAAAANQAAAA==eJxjYEAFn0uPmwtIvNwP4X2wh4mfVCiOZnj6fD+q6g/2qOIw9R/sXTZOea8x99l+AEJIFlk=AQAAAACAAAACAAAACgAAAA==eJxjZQUAABEACw==AQAAAACAAABgAAAANQAAAA==eJxjYEAFD1j6ymaeO7AfwvtgDxO/7tRXf0b7xH5U1R/sUcVh6j/Y906Yn/6r+Px+AJFJF/E=AQAAAACAAAACAAAACgAAAA==eJxjZQUAABEACw==
  </AppendedData>
</VTKFile>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160224/de1fc088/attachment.html>


More information about the ParaView mailing list