<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'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='slp/100'</font></div>
<div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">minlat='36'</font></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">maxlat='37'</font></div><div class="gmail_default">
<font color="#0b5394" face="tahoma, sans-serif">minlon='49'</font></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">maxlon='55'</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">'set x 1'</font></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">'set y 1'</font></div><div class="gmail_default">
<font color="#0b5394" face="tahoma, sans-serif">'set t 1 'tlast</font></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">'define mean = tloop(aave('var',lon='minlon',lon='maxlon',lat='minlat',lat='maxlat'))'</font></div>
<div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">'define pstd = mean + tloop(aave(sqrt(pow('var'-mean,2)),lon='minlon',lon='maxlon',lat='minlat',lat='maxlat'))'</font></div>
<div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">'define mstd = mean - tloop(aave(sqrt(pow('var'-mean,2)),lon='minlon',lon='maxlon',lat='minlat',lat='maxlat'))'</font></div>
<div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">'set vrange 1004 1028'</font></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">'set t 0.28 'tlast+0.28</font></div>
<div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">'set gxout bar'</font></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">'d mstd;pstd'</font></div>
<div class="gmail_default">
<font color="#0b5394" face="tahoma, sans-serif">'set gxout line'</font></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">'d mean'</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:"Calibri","sans-serif";color:#888888"></span></span><span><span dir="RTL" style="font-size:11.0pt;line-height:115%;font-family:"Arial","sans-serif";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"><<a href="mailto:kojokroavi@gmail.com" target="_blank">kojokroavi@gmail.com</a>></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>'set vrange 'min1' 'max1''<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>'set lev 500'<br>'set t 1'<br>'define mx=max(hgtprs,t=1,t=65)'<br>'d mx'<br>m1=subwrd(result,4)<br>'set lev 500'<br>'define mn=min(hgtprs,t=1,t=65)'<br>'d mn'<br>
m2=subwrd(result,4)<br>'set lev 500'<br>'set vrange 'm2-1' '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>