Dear M. Yunus<div><br></div><div>Thank you very much for your advice</div><div>I will try it.</div><div><br></div><div>With the best regards,</div><div>wendi<br><br><div class="gmail_quote">On Fri, Dec 14, 2012 at 3:56 PM, Muhammad Yunus Ahmad Mazuki <span dir="ltr">&lt;<a href="mailto:ukm.yunus@gmail.com" target="_blank">ukm.yunus@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">My advice is that you use different naming in the variable R1 and R2 for this. I would suggest R1-R10 for 10 days, where <br>
&#39;R1=ave(R,time=13Z10APR2004,time=22Z10APR2004)&#39;<br>...<br>&#39;R10=ave(R,time=13Z19APR2004,time=22Z19APR2004)&#39;<br>
You just change the day day part in the date.<br><br>Average R1-R10 (eg RAve=(R1+...R10)/10<br>Change your R2 into something else to avoid confliction, perhaps<br>&#39;Rsomething=log10 (RAve)&#39;<br><br>This however is only short term workaround. If you want to automate this process, a complicated script might be needed..<span class="HOEnZb"><font color="#888888"><br>

<br>Muhammad Yunus</font></span><div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Fri, Dec 14, 2012 at 2:20 PM, wendi harjupa <span dir="ltr">&lt;<a href="mailto:wendiharjupa@gmail.com" target="_blank">wendiharjupa@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">Dear Jeff<div><br></div><div>Thank you very much for your solution,</div><div><br></div><div>I need to make average for 10 days, how to make loop for the next day (same time/13-22)??</div>

<div><br></div><div>Best regards,</div><div><div>
<div><div class="gmail_quote">On Fri, Dec 14, 2012 at 1:06 PM, Jeff Duda <span dir="ltr">&lt;<a href="mailto:jeffduda319@gmail.com" target="_blank">jeffduda319@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">


Change the line<div><div>&#39;R1=ave(R, t=1, t=3600)&#39;</div><div><br></div><div>to </div><div><br></div><div>&#39;R1=ave(R,time=13Z10APR2004,time=22Z10APR2004)&#39;</div><div><br></div><div>Jeff Duda</div><br><div class="gmail_quote">


<div><div>
On Thu, Dec 13, 2012 at 8:42 PM, wendi harjupa <span dir="ltr">&lt;<a href="mailto:wendiharjupa@gmail.com" target="_blank">wendiharjupa@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div>
Dear Sir/Madam<div><br></div><div>Please I need your help. </div><div>I have one set data (10 days data)</div><div><br></div><div>How to make looping to make reflectivity average for only 10 hours on every day (13hrs-22hrs only)??</div>




<div><br></div><div>Below is my ctl and gs script</div><div><br></div><div><div>try.ctl</div><div><br></div><div>DSET /misc/home/wendi/data1/radar/kototabang/XDR/data/%y4%m2%d2/%d2%h2.dat</div><div>TITLE  RADAR</div><div>




OPTIONS  TEMPLATE LITTLE_ENDIAN</div><div>UNDEF  -1000</div><div>XDEF    321 LINEAR    99.688120996    0.004492369</div><div>YDEF    321 LINEAR    -1.083708891    0.004522556</div><div>ZDEF    39  LINEAR   1.0 0.5</div><div>




TDEF    3600 LINEAR 00:00Z10apr2004  4mn </div><div>VARS    2</div><div>ref 39  99  Reflectivity(dBZ)</div><div>vel 39  99  Doppler Velocity(m/s)</div><div>ENDVARS</div></div><div><br></div><div><br></div><div><a href="http://script.gs" target="_blank">script.gs</a></div>




<div><br></div><div><div>&#39;reinit&#39;</div><div>&#39;open try.ctl&#39;</div><div>&#39;set grads off&#39;</div><div>&#39;set mproj latlon&#39;</div><div>&#39;set mpdset hires&#39;</div><div>&#39;set gxout shaded&#39;</div>




<div>&#39;set lon 100  100.82&#39;</div><div>&#39;set lat -0.7  0&#39;</div><div>&#39;set z 3600&#39;</div><div>&#39;set parea 1 7.5 2.8 8.3&#39;</div><div>&#39;set clevs 0 5 10 15 20 25 30 35 40 45 50 55 60&#39;</div><div>




&#39;set ccols 9 14 4 11 5 13 3 10 7 12 8 2 6&#39;</div><div>&#39;set t 1 3600&#39;</div><div>&#39;R=pow(10, ref/10)&#39;</div><div><br></div><div>&#39;R1=ave(R, t=1, t=3600)&#39;</div><div>&#39;set t 1&#39;</div><div>&#39;R2=log10 (R1)&#39;</div>




<div>&#39;d 10*R2&#39;</div><div>&#39;run /misc/home/wendi/grads-2.0.1/cbarn 0.7 0.7 7.4 5.5&#39;</div><div>&#39;draw string  7.2 8.1 [dBz]&#39;</div><div>&#39;draw xlab longitude&#39;</div><div>&#39;draw ylab latitude&#39;</div>




<div>&#39;set mproj latlon&#39;</div><div>&#39;set mpdset hires&#39;</div><div>&#39;set grid off&#39;</div><div><br></div><div>&#39;close 1&#39;</div><div><br></div><div>&#39;printim try.gif white&#39;</div><div>&#39;disable print&#39;</div>




<div>   </div><div>&#39;close 1&#39; </div><div><br></div><div>Thank you very much for your help</div><div><br></div><div>Best regards,</div><div>wendi</div><span><font color="#888888"><div><br></div></font></span></div>



<span><font color="#888888"><div><br></div><div><br></div><div><br></div>
<div><br></div><div><br></div><div><br clear="all"><div><br></div>-- <br><span style="font-size:16px;font-family:arial,helvetica,sans-serif">-------------</span><br style="font-size:16px;font-family:arial,helvetica,sans-serif">




<span style="font-size:16px;font-family:arial,helvetica,sans-serif">Wendi Harjupa. ST                                            </span><br style="font-size:16px;font-family:arial,helvetica,sans-serif">
<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Shimane</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">University</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Graduate</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">School of</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Engineering Sciences</span><br style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">




<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Department of</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Electronic Control</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Systems</span><br style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">




<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Remote</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Sensing</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Laboratory</span><div>




<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">s119447</span></div><div><font color="#333333" face="arial, sans-serif" size="3">Cellphone : <a href="tel:%2B81-080-4268-6676" value="+818042686676" target="_blank">+81-080-4268-6676</a></font></div>




<div><font color="#333333" face="arial, sans-serif" size="3">email : <a href="mailto:wendi@rslab.riko.shimane-u.ac.jp" target="_blank">wendi@rslab.riko.shimane-u.ac.jp</a></font></div><br>
</div>
</font></span><br></div></div>_______________________________________________<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/listinfo/gradsusr</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br>


<br>
</font></span></div>
<br>_______________________________________________<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/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="font-size:16px;font-family:arial,helvetica,sans-serif">-------------</span><br style="font-size:16px;font-family:arial,helvetica,sans-serif">
<span style="font-size:16px;font-family:arial,helvetica,sans-serif">Wendi Harjupa. ST                                            </span><br style="font-size:16px;font-family:arial,helvetica,sans-serif">
<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Shimane</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">University</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Graduate</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">School of</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Engineering Sciences</span><br style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">


<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Department of</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Electronic Control</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Systems</span><br style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">


<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Remote</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Sensing</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Laboratory</span><div>


<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">s119447</span></div><div><font color="#333333" face="arial, sans-serif" size="3">Cellphone : <a href="tel:%2B81-080-4268-6676" value="+818042686676" target="_blank">+81-080-4268-6676</a></font></div>


<div><font color="#333333" face="arial, sans-serif" size="3">email : <a href="mailto:wendi@rslab.riko.shimane-u.ac.jp" target="_blank">wendi@rslab.riko.shimane-u.ac.jp</a></font></div><br>
</div>
</div></div><br>_______________________________________________<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/listinfo/gradsusr</a><br>
<br></blockquote></div><br>
</div></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"><div><br></div>-- <br><span style="font-family:arial,helvetica,sans-serif;font-size:16px;background-color:rgb(255,255,255)">-------------</span><br style="font-family:arial,helvetica,sans-serif;font-size:16px;background-color:rgb(255,255,255)">
<span style="font-family:arial,helvetica,sans-serif;font-size:16px;background-color:rgb(255,255,255)">Wendi Harjupa. ST                                            </span><br style="font-family:arial,helvetica,sans-serif;font-size:16px;background-color:rgb(255,255,255)">
<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Shimane</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">University</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Graduate</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">School of</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Engineering Sciences</span><br style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Department of</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Electronic Control</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Systems</span><br style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">
<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Remote</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Sensing</span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)"> </span><span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">Laboratory</span><div>
<span style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:16px;background-color:rgb(245,245,245)">s119447</span></div><div><font color="#333333" face="arial, sans-serif" size="3">Cellphone : +81-080-4268-6676</font></div>
<div><font color="#333333" face="arial, sans-serif" size="3">email : <a href="mailto:wendi@rslab.riko.shimane-u.ac.jp" target="_blank">wendi@rslab.riko.shimane-u.ac.jp</a></font></div><br>
</div>