On Tue, May 19, 2009 at 10:52 PM, Mark Fleharty <span dir="ltr"><<a href="mailto:mark.fleharty@gmail.com">mark.fleharty@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
I'm new to using Python with Paraview. I've been generating data in<br>
the vts file format, and I would like to do some post processing on it<br>
inside Paraview.<br>
<br>
I'm trying to read data from a structured grid and just get the<br>
various values for different X, Y, and Z positions.<br>
<br>
I have a simple script that looks like:<br>
<br>
from paraview.servermanager import *<br>
Connect()<br>
<br>
reader = sources.XMLStructuredGridReader(FileName="fields.vts")<br>
extract=filters.ExtractGrid(Input=reader)<br>
<br>
So far this seems to work, I've been trying to figure out what methods<br>
exist withing ExtractGrid and XMLStructuredGridReader that I can use<br>
to find out what values I have at certain positions.<br>
<br>
Does anyone have a script that already does something similar?<br>
<br>
Thanks,<br>
<br>
Mark<br>
<br>
</blockquote><div><br>In the python shell you can run dir(filters.ExtractGrid) and dir(sources.XMLStructuredGridReader) to see which methods are supported in python.<br><br clear="all">Thanks,<br><br>David <br></div></div>
<br>