<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">Hi Avi,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">

I&#39;m not quite sure what to say about your script. But you may use the following commands to draw average trend+ boxes of standard deviation for your variable.</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">

<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">****************</div><div class="gmail_default"><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">var=&#39;slp/100&#39;</font></div>

<div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">minlat=&#39;36&#39;</font></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">maxlat=&#39;37&#39;</font></div><div class="gmail_default">

<font color="#0b5394" face="tahoma, sans-serif">minlon=&#39;49&#39;</font></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">maxlon=&#39;55&#39;</font></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">tlast=28</font></div>

<div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">&#39;set x 1&#39;</font></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">&#39;set y 1&#39;</font></div><div class="gmail_default">

<font color="#0b5394" face="tahoma, sans-serif">&#39;set t 1 &#39;tlast</font></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">&#39;define mean = tloop(aave(&#39;var&#39;,lon=&#39;minlon&#39;,lon=&#39;maxlon&#39;,lat=&#39;minlat&#39;,lat=&#39;maxlat&#39;))&#39;</font></div>

<div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">&#39;define pstd = mean + tloop(aave(sqrt(pow(&#39;var&#39;-mean,2)),lon=&#39;minlon&#39;,lon=&#39;maxlon&#39;,lat=&#39;minlat&#39;,lat=&#39;maxlat&#39;))&#39;</font></div>

<div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">&#39;define mstd = mean - tloop(aave(sqrt(pow(&#39;var&#39;-mean,2)),lon=&#39;minlon&#39;,lon=&#39;maxlon&#39;,lat=&#39;minlat&#39;,lat=&#39;maxlat&#39;))&#39;</font></div>

<div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">&#39;set vrange 1004 1028&#39;</font></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">&#39;set t 0.28 &#39;tlast+0.28</font></div>

<div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">&#39;set gxout bar&#39;</font></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">&#39;d mstd;pstd&#39;</font></div>
<div class="gmail_default">
<font color="#0b5394" face="tahoma, sans-serif">&#39;set gxout line&#39;</font></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">&#39;d mean&#39;</font></div></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">

**************************</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">The attached is the output of the above commands. As you sea, I used SLP variable for a period of time in my work. But, you can apply it for any variable at different levels of the atmosphere.</div>

<div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">Hope you find it useful!</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">

<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(11,83,148)">Mohsen</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><span><span style="font-size:11.0pt;line-height:115%;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#888888"></span></span><span><span dir="RTL" style="font-size:11.0pt;line-height:115%;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#888888" lang="AR-SA"><span></span></span></span>--<div>

<span style="font-family:arial;font-size:12px;background-color:rgb(255,255,255)"><font color="#274e13">April showers bring May flowers!</font></span><br></div><div>--<font color="#b45f06">                                      <br>

<b>Mohsen Soltani, M.Sc.</b><br>Climatology Grad Student,<br>Department of Climatology, Faculty of Geography,</font></div><div><font color="#b45f06">University of Tehran, </font><span style="color:rgb(180,95,6)">Tehran, Iran</span></div>

<div><font color="#b45f06">voice: (+98) 9119772934<br>e-mail</font><font color="#bf9000">:</font> <a href="mailto:soltani.clima@gmail.com" target="_blank">soltani.clima@gmail.com</a><br></div></div></div>
<br><br><div class="gmail_quote">On Tue, Jul 9, 2013 at 1:44 AM, avi kojokro <span dir="ltr">&lt;<a href="mailto:kojokroavi@gmail.com" target="_blank">kojokroavi@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 dir="rtl"><div dir="ltr" style="text-align:left"><span lang="en"><span>I have a</span> <span>script</span> <span>of the</span> <span>Ensemble</span> <span>Average</span> <span>+</span> <span>standard</span> <span>deviation</span><span>,</span> <span>I want to make</span> <span>this</span> <span>line</span> <span>to be</span> <span>automatically:<br>


<br>&#39;set vrange &#39;min1&#39; &#39;max1&#39;&#39;<br><br></span></span><span lang="en"><span>To do something</span> <span>similar to</span> <span>these</span> <span>lines</span></span>:<br>
<br><br>&#39;set lev 500&#39;<br>&#39;set t 1&#39;<br>&#39;define mx=max(hgtprs,t=1,t=65)&#39;<br>&#39;d mx&#39;<br>m1=subwrd(result,4)<br>&#39;set lev 500&#39;<br>&#39;define mn=min(hgtprs,t=1,t=65)&#39;<br>&#39;d mn&#39;<br>


m2=subwrd(result,4)<br>&#39;set lev 500&#39;<br>&#39;set vrange &#39;m2-1&#39; &#39;m1+1<br><br><span lang="en"><span>But I can not</span> <span>attach</span> <span>these lines</span> <span>to the</span> <span>script.<br>


</span></span><span lang="en"><span>Maybe someone</span> <span>know if i can</span> <span>arrange the</span> <span>script</span> <span>properly</span></span>?<br>
<br><span lang="en"><span>I use</span> <span>Windows,</span> <span>and</span> <span>version of</span> <span>Grads</span> <span>2.0.a9</span></span>.<br>
<br><span lang="en"><span>Thanks<span class="HOEnZb"><font color="#888888"><br></font></span></span></span></div><span class="HOEnZb"><font color="#888888"><div dir="ltr" style="text-align:left"><span lang="en"><span>Avi.<br>

</span></span></div></font></span></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></div>