I am trying to create a ParaView reader for fort.11 data, a text format used in-house, I’ve attached a sample. The goal is to display those data first as a spreadsheetview and then to pick some of the variables to be
plotted and modified with the calculator.
So far I have successfully written a vtk script to load my data in a vtkTable and plot some of the variable. The script can be called from the python shell and open a new vtk window showing an test plot.
In order to make the reader script into a plugin I have reused the RingleReader example from the mailing-list and adapted it a little for my needs. When I open a fort.11 file and apply nothing seems to be really happening
and no error displayed if I leave “output=self.GetUnstructuredGridOutput()” (which is wrong) but if I only call “self.GetOutput()” an indentation error and missing request data error is thrown.
When using the vtk reader script in the python shell I am able to access my vtkTable with all the data loaded into it but I don’t know how to put this data into a spreadsheetview wich is kind of infuriating.
Does anyone have successfully made a ParaView Python Reader Plugin with a vtkTable output? I must be missing something when I output my data to ParaView since I don’t really understand how the data are sent to views for
vtkTable. I am using ParaView 5.0.1.
Any suggestions gratefully accepted,
Hadrien Foucault Intern at Areva NP
Powered by www.kitware.com