Andrew,<br>I had posted a request on this forum about this exact question in August.  I believe it was Charles Seaman who provided the answer.  The meat of the code is <br><br>&#39;d maxloc(max(&#39;ans&#39;,x=&#39;x1&#39;,x=&#39;x2&#39;),y=&#39;y1&#39;,y=&#39;y2&#39;)&#39;<br>
 yline = sublin(result,2)<br> ymax = subwrd(yline,4)<br>&#39;d maxloc(max(&#39;ans&#39;,y=&#39;y1&#39;,y=&#39;y2&#39;),x=&#39;x1&#39;,x=&#39;x2&#39;)&#39;<br> xline = sublin(result,2)<br> xmax = subwrd(xline,4)<br><br><br>
where &quot;ans&quot; refers to the field for which you want to find the max/min, and x1, x2 refer to x-grid values or longitude points and y1, y2 refer to y-grid values or latitude points.  xmax, ymax are the coordinates of the maximum value.  To find the minimum, just replace maxloc and max with minloc and min.<br>
<br>Jeff Duda<br><br><div class="gmail_quote">On Fri, Oct 22, 2010 at 7:43 PM, Andrew Revering <span dir="ltr">&lt;<a href="mailto:andy@f5data.com">andy@f5data.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p class="MsoNormal">I&#39;d like to have the coordinates of our &#39;max value&#39;… I
know about maxloc(), and tried various examples I found in forums,
documentation and email conversations, but I can&#39;t seem to get it to perform as
I expect.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">When it supposedly works, I just see some white lines on the
bottom and right of my image (not where the max value is)… is there a way
to actually get lat/lon coordinates of the max value?</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I should note that in my situation there will be the
teeniest dot of plotted value, the rest of the grid is blank. I don&#39;t know if
that matters in these functions.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Andrew Revering</p>

<p class="MsoNormal">Convective Development, Inc.</p>

<p class="MsoNormal"><a href="http://www.convectivedevelopment.com/" target="_blank">http://www.convectivedevelopment.com/</a></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"> </p>

</div>

</div>


<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Iowa State University<br>Meteorology Graduate Student<br>3134 Agronomy Hall<br><a href="http://www.meteor.iastate.edu/~jdduda">www.meteor.iastate.edu/~jdduda</a><br>