<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:271010158;
        mso-list-template-ids:1715628660;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1
        {mso-list-id:496464531;
        mso-list-template-ids:2042018306;}
@list l1:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thank you both for your excellent responses. They will help me and hopefully future grads users.&nbsp; I will try them later today. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Cordially,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>-Mike <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> gradsusr-bounces@gradsusr.org [mailto:gradsusr-bounces@gradsusr.org] <b>On Behalf Of </b>Muhammad Yunus Ahmad Mazuki<br><b>Sent:</b> Wednesday, March 06, 2013 9:30 PM<br><b>To:</b> GrADS Users Forum<br><b>Subject:</b> Re: [gradsusr] Determining the max temp in a vertical layer.<o:p></o:p></span></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Using a daouble max will let you search in an area, while using triple max will let you search in a volume. Using a singe max, you need to specifiy specific lat and lon. <br><br>'set lon 90'<br>'set lat 45'<br>'d max(temperature,lev=1000,lev=500)'<br>'d maxloc(temperature,lev=1000,lev=500)'<br>Or<br>'set lon 90'<br>'d max(max(temperature,lat=60,lat=20),lev=1000,lev=500)'<br>'d maxloc(max(temperature,lat=60,lat=20),lev=1000,lev=500)'<br>Or<br>'d max(max(max(temperature,lon=0,lon=90),lat=60,lat=20),lev=1000,lev=500)'<br>'d maxloc(max(max(temperature,lon=0,lon=90),lat=60,lat=20),lev=1000,lev=500)'<br>&nbsp;<br>You can also add one more max for t as well, but that is going to take more processing time. Alternatively, you can also use amax for area maximum. I do hope that soon, a volume max function will be added.<br><br><o:p></o:p></p><div><p class=MsoNormal>On Thu, Mar 7, 2013 at 1:45 AM, Jeff Duda &lt;<a href="mailto:jeffduda319@gmail.com" target="_blank">jeffduda319@gmail.com</a>&gt; wrote:<o:p></o:p></p><p class=MsoNormal>What about just <br>'d max(temperature,lev=1000,lev=500)'?<br><br>Jeff Duda<o:p></o:p></p><div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>On Wed, Mar 6, 2013 at 11:14 AM, Stephen McMillan &lt;<a href="mailto:smcmillan@planalytics.com" target="_blank">smcmillan@planalytics.com</a>&gt; wrote:<o:p></o:p></p><p class=MsoNormal>Mike,<o:p></o:p></p><div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>I think the following is what you want, for example where the vertical variable is tmpprs:<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>'d maxloc(tmpprs,lev=1000,lev=500)'<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>should return the z-level of the max temp between and including the two levels.<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>Also see <a href="http://grads.iges.org/grads/gadoc/gradfuncmaxloc.html" target="_blank">http://grads.iges.org/grads/gadoc/gradfuncmaxloc.html</a><o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>Stephen Mc<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><div><div><p class=MsoNormal>On Wed, Mar 6, 2013 at 11:45 AM, Mike Dross &lt;<a href="mailto:mwdross@gmail.com" target="_blank">mwdross@gmail.com</a>&gt; wrote:<o:p></o:p></p></div></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p class=MsoNormal>Hi,<o:p></o:p></p><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>I am trying to figure out how to find the maximum temperature in a vertical layer, between the surface and 500 millibars. &nbsp;I have searched through the gradsusrs digest and can't<o:p></o:p></p></div><div><p class=MsoNormal>quite figure out how to do it.&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>&nbsp;Using the findlvl &nbsp;gives you level of a certain value, but I want the maximum value between two levels, and that function doesn't seem to do that.&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>&nbsp;Ideally, I could do something like this&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal style='margin-left:.5in;background:#E0F0FF'><code><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>d fndlvl (t, const(t,max), lev=psfc, lev=500)</span></code><span style='font-size:13.5pt'><o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in;background:#E0F0FF'><code><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>and it would give me the max temp and the level it found it</span></code><span style='font-size:13.5pt'><o:p></o:p></span></p><div><p class=MsoNormal>Any help would be appreciated.&nbsp;<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>Thanks in advance!<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>Cordially,<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>-Mike&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><a href="mailto:mwdross@gmail.com" target="_blank">mwdross@gmail.com</a><o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div></blockquote></div></div></div></div><p class=MsoNormal><br><br clear=all><o:p></o:p></p></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><span class=hoenzb><span style='color:#888888'>-- </span></span><span style='color:#888888'><br><span class=hoenzb>Jeff Duda</span><br><span class=hoenzb>Graduate research assistant</span><br><span class=hoenzb>University of Oklahoma School of Meteorology</span><br><span class=hoenzb>Center for Analysis and Prediction of Storms</span><br></span><br><br><o:p></o:p></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>