[Paraview] Time Source for Data Arrays

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon Jan 23 17:28:05 EST 2017


Attached is a script that shows how this can be done using a
programmable filter. You'll need to update the "Script" and
"ScriptRequestInformation" to load your files using the right reader,
along with the logic to determine which files are to be read, this
should give you some hints.

I've also attached the mock data I used for this. You can run the
script.py from the "Python Shell" in ParaView.

Utkarsh

On Mon, Jan 23, 2017 at 1:31 PM, Daniel Frisch
<daniel.frisch.kit at gmail.com> wrote:
> Hello,
>
> in Biomedical Engineering we often work with large datasets where the
> geometry doesn't change over time but the scalar values change. Therefore we
> use to save the data as single geometry with many variables (data arrays)
> that are named according to the time index.
>
> It would be very convenient if ParaView could recognize these data arrays as
> time index again. I am looking for the following filter:
>
> INPUT
> - Dataset with
>     - one geometry
>     - some individual variables (p.ex. material class)
>     - and thousands of variables / scalar data arrays with consecutive names
> like
>          - fwd_calc_0000.000000
>          - fwd_calc_0000.001000
>          - fwd_calc_0000.002000
>          - fwd_calc_0000.003000
> - Regular expression that matches the wanted data arrays and extracts the
> numeric time value
>
> OUTPUT
> - Dataset with
>      - geometry
>      - the individual variables
>      - Time dependence according to the variables that are named fitting for
> the regex
>
> The filter itself must be possible: TimeSource creates time index data out
> of nothing.
> I learned about vtkFileSeriesReader, but I don't want to save each timestep
> into a separate VTK file with its own geometry since the geometry stays the
> same.
> Such a filter would be very useful to many of us and has been awaited for a
> long time.
>
> Best regards
> Daniel Frisch
> Institut für Biomedizinische Messtechnik
> Karlsruher Institut für Technologie
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: data.tar.gz
Type: application/x-gzip
Size: 218587 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170123/f1a5c9f2/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: script.py
Type: text/x-python
Size: 1720 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170123/f1a5c9f2/attachment-0001.py>


More information about the ParaView mailing list