I'm aware that you can add readers for different datafile types to paraview, however, that all talks about doing a bunch of VTK stuff in c++ and (maybe worse) re-compiling paraview to make it aware of your datafile format. On the other hand, paraview also supports scripting in python. Maybe it is my lack of familiarity with VTK, but, to me it looks like I can only manipulate VTK objects from pvpython. Is there any way to dynamically add a reader to paraview using pvpython?
To load the file series, simply select the group, and hit Ok . You can also open a single file in the series as a regular file. To do so, open the file group and select the file you want to open.
What you want is a "Python Programmable Filter. Refer to ParaView Wiki. This wiki page shows how to write a CSV reader in Python.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With