When you say &quot;trend&quot;, do you mean time derivative?  Over what domain do you want to find the max and min?  If it&#39;s a spatial domain, there is a well known set of script command lines that can find an areal max for you.  It&#39;s not one of the built-in functions of Grads, though.<br>
<br>Jeff<br><br><div class="gmail_quote">On Mon, Nov 5, 2012 at 3:20 PM, Tobias Lundberg <span dir="ltr">&lt;<a href="mailto:tobias.liljalundberg@gmail.com" target="_blank">tobias.liljalundberg@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi all,</div><div><br></div><div>I have a function describing the trend of the 2-m temperature. If I use the gxout stat, I can get the max and min values. But is it possible to do this automatically in any way. </div>
<div><br></div><div>Like,</div><div>define function_max=Max</div><div>define function_min=Min</div><div><br></div><div>Does anyone know? Or even better would be if there is a way to calculate the derivative of the trend line which is plotted?!</div>
<div><br></div><div><br></div><div><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<div>best regards,</div><div><br></div><div>Tobias Lundberg</div><div><br></div><div><a href="mailto:tobias.liljalundberg@gmail.com" target="_blank">tobias.liljalundberg@gmail.com</a></div><div>+46 733 80 27 87</div><div>
<br></div><div><br></div></div></span></div></span></div></span></span><br><br></span>
</div>
<br></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>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br><br>