Hi David, <br><br>Thanks for you suggestion, I got much closer to what I want, but not quite yet. I have the feeling I need one slight extra hint :)<br><br>To obtain the position of a minimun value I now do the script below: I get the mimimum value first with MinMax, then I Threshold the original data on a range between min and 0.9*min (the minimum values are negative), then I use the calculator to get the x and y position of this range, and then I use the DescriptiveStatitics filter to get the average mean of the position. I can even use Fetch again to obtain the data, but now the very last step: how to I get the mean data itself ? Sorry, I just don&#39;t understand how that data.objects exactly work, and there is not much assessible documentation on it. <br>
<br>I hope you can give me one last hint<br><br>Regards<br><br>Eelco <br><br>      mm=MinMax(Uzcomponent)<br>      mm.Operation=&quot;MIN&quot;<br>      mindata=sm.Fetch(Uzcomponent,mm,mm) <br>      mindata.GetPointData().GetNumberOfArrays()<br>
      a0 = mindata.GetPointData().GetArray(1)<br>      uzname=a0.GetName()<br>      uzmin=a0.GetTuple1(0)<br>      print &quot;minimum of %s found: %g\n &quot;%(uzname,uzmin)<br><br>      Threshold1 = Threshold(Uzcomponent)<br>
      Threshold1.Scalars=[&#39;POINTS&#39;,uzname]<br>      Threshold1.ThresholdRange=[uzmin,0.9*uzmin]<br><br>      CalcPos = Calculator()<br>      CalcPos.AttributeMode = &#39;point_data&#39;<br>      CalcPos.Function = &#39;iHat*coordsX+jHat*coordsY+kHat*coordsZ&#39;<br>
      CalcPos.ResultArrayName = &#39;MinPos&#39;<br><br>      DescriptiveStatistics1 = DescriptiveStatistics()<br>      DescriptiveStatistics1.VariablesofInterest = [&#39;MinPos&#39;]<br>      statistics=sm.Fetch(DescriptiveStatistics1)<br>
<br><br><br><br><div class="gmail_quote">On Thu, Feb 10, 2011 at 7:00 PM, David E DeMarle <span dir="ltr">&lt;<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>&gt;</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;">
The min max filter unfortunately doesn&#39;t keep track of which tuple and<br>
processor it found the min in so you can&#39;t get back to the particular<br>
point or cell it came from.<br>
<br>
Instead of using fetch and minmax, try using a values selection. Set<br>
the value to be that minimum value. Once you extract the selection and<br>
fetch it to the client, you get a copy of the actuall cell(s)/point(s)<br>
that have the minimum value and you can query them directly for their<br>
spatial location.<br>
<br>
David E DeMarle<br>
Kitware, Inc.<br>
R&amp;D Engineer<br>
28 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: 518-371-3971 x109<br>
<div><div></div><div class="h5"><br>
<br>
<br>
On Thu, Feb 10, 2011 at 12:13 PM, Eelco van Vliet &lt;<a href="mailto:eelcovv@gmail.com">eelcovv@gmail.com</a>&gt; wrote:<br>
&gt; Dear Paraviewers,<br>
&gt;<br>
&gt; I would like to extract the location of a minimum value from a data set in<br>
&gt; pvbatch<br>
&gt;<br>
&gt; I were able to find the value of the minimum with<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;        mm=MinMax(Uzcomponent)<br>
&gt;        mm.Operation=&quot;MIN&quot;<br>
&gt;        mindata=sm.Fetch(Uzcomponent,mm,mm)<br>
&gt;        mindata.GetPointData().GetNumberOfArrays()<br>
&gt;        a0 = mindata.GetPointData().GetArray(1)<br>
&gt;        a1 = mindata.GetScalar()<br>
&gt;        print &quot;name 1: &quot;, a0.GetName()<br>
&gt;        print &quot;tuple1: &quot;, a0.GetTuple1(0)<br>
&gt;<br>
&gt; Here, a0.GetTyple1 give me the value of the minimum<br>
&gt;<br>
&gt; However: How do I find the location of this value ?<br>
&gt;<br>
&gt; Any hint appriciate!<br>
&gt;<br>
&gt; Regards<br>
&gt;<br>
&gt; Eelco<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br>