<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hi, Lyndon —&nbsp;
<div>The values in the “Min, Max” line are the actual extremes of data values in your grid, the “Cmin, cmax, cint” values are what Grads will use for default contour levels. You can use nested minloc(min())/maxloc(max()) functions to find the grid coordinate
 of the extremes. Here is an example that mixes world coordinates for X and grid coordinates for T (latitude should be fixed):</div>
<div><br>
</div>
<div>
<div><font face="Courier" style="font-size: 14px;">minlon=0</font></div>
<div><font face="Courier" style="font-size: 14px;">maxlon=5</font></div>
<div><font face="Courier" style="font-size: 14px;">mint=1</font></div>
<div><font face="Courier" style="font-size: 14px;">maxt=3</font></div>
<div><font face="Courier" style="font-size: 14px;"><br>
</font></div>
<div><font face="Courier" style="font-size: 14px;">'set lon 'minlon' 'maxlon</font></div>
<div><font face="Courier" style="font-size: 14px;">'set t 'mint' 'maxt</font></div>
<div><font face="Courier" style="font-size: 14px;"><br>
</font></div>
<div><span style="font-size: 14px; font-family: Courier;">'d minloc(min(tt,lon='minlon',lon='maxlon'),t='mint',t='maxt')'</span></div>
<div><font face="Courier" style="font-size: 14px;">yminloc=subwrd(result,4)</font></div>
<div><font face="Courier" style="font-size: 14px;"><br>
</font></div>
<div><font face="Courier" style="font-size: 14px;">'d minloc(min(tt,t='mint',t='maxt'),lon='minlon',lon='maxlon')'</font></div>
<div><font face="Courier" style="font-size: 14px;">xminloc=subwrd(result,4)</font></div>
<div><font face="Courier" style="font-size: 14px;"><br>
</font></div>
<div><span style="font-size: 14px; font-family: Courier;">'d maxloc(max(tt,lon='minlon',lon='maxlon'),t='mint',t='maxt')'</span></div>
<div><font face="Courier" style="font-size: 14px;">ymaxloc=subwrd(result,4)</font></div>
<div><font face="Courier" style="font-size: 14px;"><br>
</font></div>
<div><font face="Courier" style="font-size: 14px;">'d maxloc(max(tt,t='mint',t='maxt'),lon='minlon',lon='maxlon')'</font></div>
<div><font face="Courier" style="font-size: 14px;">xmaxloc=subwrd(result,4)</font></div>
<div><font face="Courier" style="font-size: 14px;"><br>
</font></div>
<div><font face="Courier"><span style="font-size: 14px;">say 'minloc is at x='xminloc' and t=‘yminloc</span></font></div>
<div><font face="Courier" style="font-size: 14px;">say 'maxloc is at x='xmaxloc' and t='ymaxloc</font></div>
</div>
<div><font face="Courier" style="font-size: 14px;"><br>
</font></div>
<div><br>
</div>
<div>
<div>
<div>On Jan 9, 2017, at 10:00 PM, Lyndon Mark Olaguera &lt;<a href="mailto:olagueralyndonmark429@gmail.com">olagueralyndonmark429@gmail.com</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">Dear Jennifer,
<div><br>
</div>
<div>I tried your suggestion and got the following values:</div>
<div><br>
</div>
<div>
<div>Data Type = grid</div>
<div>Dimensions = 0 3</div>
<div>I Dimension = 33 to 35 Linear 80 2.5</div>
<div>J Dimension = 43 to 44 Linear 00Z01AUG1975 7200mn</div>
<div>Sizes = 3 2 6</div>
<div>Undef value = -9.99e&#43;08</div>
<div>Undef count = 0 &nbsp;Valid count = 6</div>
<div>Min, Max = -10.8831 6.05715</div>
<div><b>Cmin, cmax, cint = -10 6 2</b></div>
</div>
<div><br>
</div>
<div>The Cmin and Cmax is actually what I was looking for. Is there a way to get their location from the 2D plot? The equivalent grid coordinates?</div>
<div><br>
</div>
<div><br>
</div>
<div>Many thanks for the help,</div>
<div><br>
</div>
<div>Lyndon Mark</div>
<div><br>
</div>
<div>
<div class="gmail_extra">
<div>
<div class="gmail_signature">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr"><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Tue, Jan 10, 2017 at 5:12 AM, Jennifer M Adams <span dir="ltr">
&lt;<a href="mailto:jadams21@gmu.edu" target="_blank">jadams21@gmu.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="word-wrap:break-word">The min and max values of any displayed grid will appear in the output when using ‘set gxout stat’ or ’set stat on'. —Jennifer
<div>
<div>
<div class="gmail-h5"><br>
<div>
<div>On Dec 26, 2016, at 8:55 PM, Lyndon Mark Olaguera &lt;<a href="mailto:olagueralyndonmark429@gmail.com" target="_blank">olagueralyndonmark429@gmail.<wbr>com</a>&gt; wrote:</div>
<br class="gmail-m_-8328726994314969020Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">
<div><span style="font-size:12.8px">Hi Kathryn,</span><br>
</div>
<div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">It does not work for. I also tried the max(variable,t=1,t=2) but this gives me a very small number.</div>
<div style="font-size:12.8px">I am attaching here the sample netcdf file and my script in plotting the time longitude plot.</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">
<div>'sdfopen <a href="http://filt_olr_anom_1975.nc/" target="_blank">filt_olr_anom_1975.nc</a>'</div>
<div>'set display color white'</div>
<div>'c'</div>
</div>
<div style="font-size:12.8px">
<div>'set lon 80 180'</div>
<div>'set gxout contour'</div>
<div>'set ccolor 1'</div>
<div>*'set cint 10'</div>
<div>'set t 43 53'</div>
<div>'set y 1'</div>
<div>'set yaxis 43 53'</div>
<div>'define tt=ave(bf,lat=12.5,lat=22.5)'</div>
<div>'d tt'</div>
</div>
</div>
<div><br>
</div>
<div>Link of the file:</div>
<div><br>
</div>
<a href="https://drive.google.com/file/d/0B9faET7Bc2o8aXB1dVhUZUNDVHc/view?usp=sharing" target="_blank">https://drive.google.com/file/<wbr>d/<wbr>0B9faET7Bc2o8aXB1dVhUZUNDVHc/<wbr>view?usp=sharing</a><br>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">I want to get the maximum value, say between lon 80 and lon 90, time &nbsp;43 to time 44.</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Many thanks in advance for the help,</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail-m_-8328726994314969020gmail_signature">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr"><font face="comic sans ms, sans-serif"><b><u>Lyndz</u></b></font>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Tue, Dec 27, 2016 at 10:51 AM, Lyndon Mark Olaguera <span dir="ltr">
&lt;<a href="mailto:olagueralyndonmark429@gmail.com" target="_blank">olagueralyndonmark429@gmail.<wbr>com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Hi Kathryn,
<div><br>
</div>
<div>It does not work for. I also tried the max(variable,t=1,t=2) but this gives me a very small number.</div>
<div>&nbsp;I am attaching here the sample netcdf file and my script in plotting the time longitude plot.</div>
<div><br>
</div>
<div>
<div>'sdfopen filt_olr_anom_'year'.nc'</div>
<div>'set display color white'</div>
<div>'c'</div>
</div>
<div>
<div>'set lon 80 180'</div>
<div>'set gxout contour'</div>
<div>'set ccolor 1'</div>
<div>*'set cint 10'</div>
<div>'set t 43 53'</div>
<div>'set y 1'</div>
<div>'set yaxis 43 53'</div>
<div>'define tt=ave(bf,lat=12.5,lat=22.5)'</div>
<div>'d tt'</div>
</div>
<div><br>
</div>
<div>Many thanks for the help,</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail-m_-8328726994314969020m_4909267080290687673gmail_signature">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr"><font face="comic sans ms, sans-serif"><b><u>Lyndz</u></b></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div>
<div class="gmail-m_-8328726994314969020h5"><br>
<div class="gmail_quote">On Tue, Dec 27, 2016 at 1:00 AM, Kathryn Sellwood - NOAA Affiliate
<span dir="ltr">&lt;<a href="mailto:kathryn.sellwood@noaa.gov" target="_blank">kathryn.sellwood@noaa.gov</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">&quot;set lon lonval&quot; &nbsp;&quot;d maxval(variable, t=1,t=2)</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div>
<div class="gmail-m_-8328726994314969020m_4909267080290687673h5">On Mon, Dec 26, 2016 at 1:14 AM, Lyndon Mark Olaguera
<span dir="ltr">&lt;<a href="mailto:olagueralyndonmark429@gmail.com" target="_blank">olagueralyndonmark429@gmail.c<wbr>om</a>&gt;</span> wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div class="gmail-m_-8328726994314969020m_4909267080290687673h5">
<div dir="ltr">Dear all,
<div><br>
</div>
<div>Is there an easy way to estimate the minimum value and maximum value from a time-longitude plot (minimum and maximum value per longitude and time).</div>
<div>I am using grads 2.1.0.oga.1. I tried to use the amin() function but in the grads window, it gives an error: unknown command amin().</div>
<div><br>
</div>
<div>Many thanks,</div>
<div><br clear="all">
<div>
<div class="gmail-m_-8328726994314969020m_4909267080290687673m_-6796967370895729934m_2401727052575407406gmail_signature">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr"><font face="comic sans ms, sans-serif"><b><u>Lyndz</u></b></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/li<wbr>stinfo/gradsusr</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/li<wbr>stinfo/gradsusr</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
</blockquote>
</div>
<br>
</div>
</div>
<div>
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;">
<div style="font-size:12px">--</div>
<div style="font-size:12px">Jennifer Miletta Adams<br>
Center for Ocean-Land-Atmosphere Studies (COLA)<br>
George Mason University<br>
<br>
<br>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
http://gradsusr.org/mailman/listinfo/gradsusr<br>
</blockquote>
</div>
<br>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="font-size: 12px; orphans: 2; widows: 2;">--</div>
<div style="font-size: 12px; orphans: 2; widows: 2;">Jennifer Miletta Adams<br>
Center for Ocean-Land-Atmosphere Studies (COLA)<br>
George Mason University<br>
<br>
<br>
</div>
</div>
</div>
</div>
<br>
</div>
</body>
</html>