<br><div class="gmail_quote">On Wed, May 20, 2009 at 5:10 PM, Mark Fleharty <span dir="ltr"><<a href="mailto:mark.fleharty@gmail.com">mark.fleharty@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Wed, May 20, 2009 at 4:44 AM, David Doria <<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>> wrote:<br>
> On Tue, May 19, 2009 at 10:52 PM, Mark Fleharty <<a href="mailto:mark.fleharty@gmail.com">mark.fleharty@gmail.com</a>><br>
> wrote:<br>
>><br>
>> 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>
><br>
> In the python shell you can run dir(filters.ExtractGrid) and<br>
> dir(sources.XMLStructuredGridReader) to see which methods are supported in<br>
> python.<br>
<br>
</div></div>Thanks David. I've done dir and help on sources, filters, and many of<br>
the member functions/variables.<br>
<br>
I did find that sources.XMLStructuredGridReader has a<br>
GetDataInformation() member, and inside of that a DataInformation<br>
variable that has a number of members that indicate that it has loaded<br>
my data, but I'm still unable to find any member functions that can<br>
retrieve the values of my data at particular grid points.<br>
<br>
Any help would be appreciated.<br>
<div><div></div><div class="h5"><br>
Thanks,<br>
<br>
Mark<br></div></div></blockquote><div><br>Sorry Mark, I can't figure it out either (I tried with XMLPolydatareader too). There seems to be a PointData member, but as you say I don't know how to get at the actual data. I guess we'll wait for one of the experts to reply :)<br>
<br clear="all">Thanks,<br><br>David<br>
<br></div></div>