<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi all,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have tried different way to create a reader and I believe the best one is to use Python as described in this thread:
<a href="http://markmail.org/message/2pnrmzkbx5n2u3ke">http://markmail.org/message/2pnrmzkbx5n2u3ke</a>
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">To identify the issue I tried to make another simple csv reader based on
<a href="https://www.paraview.org/Wiki/Python_calculator_and_programmable_filter#Programmable_Source">
https://www.paraview.org/Wiki/Python_calculator_and_programmable_filter#Programmable_Source</a> and still the ringle reader and the result is the same, no data loaded and no error. If I change the output I find the same indentation and missing request data
error.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Any suggestions gratefully accepted,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Hadrien Foucault Intern at Areva NP<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>