You can use servermanager.Fetch() to fetch the raw data set to the client, however it only works for unstructured datasets. <br><br>Utkarsh<br><br><div class="gmail_quote">On Wed, May 20, 2009 at 5:31 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@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;"><br><div class="gmail_quote"><div><div></div><div class="h5">On Wed, May 20, 2009 at 5:10 PM, Mark Fleharty <span dir="ltr"><<a href="mailto:mark.fleharty@gmail.com" target="_blank">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>On Wed, May 20, 2009 at 4:44 AM, David Doria <<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>> wrote:<br>
> On Tue, May 19, 2009 at 10:52 PM, Mark Fleharty <<a href="mailto:mark.fleharty@gmail.com" target="_blank">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><br>
Thanks,<br>
<br>
Mark<br></div></div></blockquote></div></div><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>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>