Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add a datafile type reader to paraview using pvpython

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?

like image 682
mgilson Avatar asked Apr 08 '13 20:04

mgilson


People also ask

How to load data in ParaView?

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.


1 Answers

What you want is a "Python Programmable Filter. Refer to ParaView Wiki. This wiki page shows how to write a CSV reader in Python.

like image 126
Utkarsh Avatar answered Oct 20 '22 07:10

Utkarsh