<HTML dir=ltr><HEAD></HEAD>
<BODY>
<DIV dir=ltr id=idOWAReplyText77046>
<DIV dir=ltr><FONT color=#000000 size=2 face=Arial>Utkarsh,</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2 face=Arial>Thanks! This works pretty well in serial. However, I took your MaxLabelFilter and tried to modify&nbsp;it to calculate and display minimum (instead of maximum) array values for each time step and for some reason it isn't working -- just assigns a zero value as the minimum. Could you take a quick look? I saved the XML file as a *.txt file in case my email tries to strip the attachment.</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2 face=Arial>And yes, I will be working in parallel, but&nbsp;not right now.</FONT></DIV>
<DIV dir=ltr><FONT color=#000000 size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2 face=Arial>Thanks again,</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial>Emily</FONT></DIV>
<DIV dir=ltr><FONT color=#000000 size=2 face=Arial><FONT size=2 face=Arial>&nbsp;</DIV></DIV></FONT></FONT>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> Utkarsh Ayachit<BR><B>Sent:</B> Wed 9/14/2011 10:08 AM<BR><B>To:</B> Guzas, Emily L CIV NUWC NWPT<BR><B>Cc:</B> paraview@paraview.org<BR><B>Subject:</B> Re: [Paraview] compute min/max of data array and annotate max and min values for each time step<BR></FONT><BR></DIV>
<DIV><PRE style="WORD-WRAP: break-word">Emily,

Attached is a custom filter that you can use to label using maximum
for point array named ACCL. You change the "ARRAYNAME" and
"ARRAYASSOCIATION" variable to pick the array of choice. Also, though
I've only implemented getting the max value for the magnitude of the
array, you can change the python script to do a min or a particular
component, for example.

To test,
1) Import the attached file using Tools | Manage Custom Filters dialog
(click Import).
2) The open can.ex2 from ParaViewData. Enable all arrays in the array
selection widget on the properties panel. Hit apply.
3) Create "MaxLabelFilter". Hit apply. You'll see a label in the 3D
view that updates as you animate.

Are you running with a parallel pvserver? If so, I'll have to update
the filter. It should work in serial though.

Utkarsh

On Tue, Sep 13, 2011 at 2:28 PM, Guzas, Emily L CIV NUWC NWPT
&lt;emily.guzas@navy.mil&gt; wrote:
&gt; Hello,
&gt;
&gt; I am a ParaView newbie and I am trying to compute the maximum and minimum
&gt; values of one array (e.g. pressure or density) in a multi-block dataset
&gt; (*.exo) file in ParaView, and then display those maximum and minimum values
&gt; on screen with text. To make this more fun, the dataset includes time data,
&gt; and so what I really want to be able to do is to compute the maximum and
&gt; minimum values of the array and display them on-screen for each time step so
&gt; that when I animate the data, the max/min values update as the animation
&gt; runs.
&gt;
&gt; Could someone point me in the right direction for how to do this?
&gt;
&gt; I looked at the Calculator filter, but I don't see any maximum and minimum
&gt; functions there (not that I expected to see them). And I just started
&gt; looking at the Python Programmable Filter, but I am not familiar with the
&gt; vtk class and so this route will involve a bit of a learning curve to figure
&gt; out the syntax for what I need to accomplish.
&gt;
&gt; Thanks,
&gt; Emily
&gt;
&gt; _______________________________________________
&gt; Powered by www.kitware.com
&gt;
&gt; Visit other Kitware open-source projects at
&gt; http://www.kitware.com/opensource/opensource.html
&gt;
&gt; Please keep messages on-topic and check the ParaView Wiki at:
&gt; http://paraview.org/Wiki/ParaView
&gt;
&gt; Follow this link to subscribe/unsubscribe:
&gt; http://www.paraview.org/mailman/listinfo/paraview
&gt;
&gt;
</PRE></DIV></BODY></HTML>