<div dir="ltr"><div>Hi T.,<br></div><div><br></div><div style>One thing you could do is to assign it to a variable</div><div style><br></div><div style>set t 1</div><div style>set lat 35</div><div style>set lon 90</div><div style>
define T1= T</div><div style>set t 2</div><div style><div>set lat 20</div><div>set lon 72</div><div>define T2=T</div><div><br></div><div style>define aveT=(T1+T2)/2</div><div style>d aveT</div></div><div class="gmail_extra">
<br></div><div class="gmail_extra">I hope it helps.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Raymond<br><br><div class="gmail_quote">On Mon, Feb 4, 2013 at 4:20 PM, T. haghroosta <span dir="ltr"><<a href="mailto:haghroosta@hotmail.com" target="_blank">haghroosta@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">
Dear All,<br> <br>I would like to write a script for these aims, could you please lead me. Of course I have written some, but I couldn't get a good result.<br> <br>open a file,<br> <br>set time in 1<br> <br>Read a parameter like T in a special longitude a latitude for example lon=90, lat=35. (T1)<br>
<br>Then set time to next step, I mean t=t+1<br> <br>Read parameter T in another special location, like lon= 75, lat= 20. (T2)<br> <br>Then I would like to calculate average of T1 and T2. At the end I want to show the value of the average.<br>
<br>Could you please help me?<br> <br>Regards,<span class="HOEnZb"><font color="#888888"><br> <br>T.<br>                                            </font></span></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>Raymond C. Ordinario<br>MS Atmospheric Science<br>Ateneo De Manila University<br>Quezon City, Philippines<br><br>Weather Specialist I<br><div>Technique Application and Meteorological Satellite Section<br>
Weather DIvision<br>Philippine Atmospheric, Geophysical and Astronomical Services Admistration<br>Quezon City, Philippines</div>
</div></div>