[gradsusr] Average in two different time and locations
raymond ordinario
raymond1723 at gmail.com
Mon Feb 4 18:29:57 EST 2013
Hi T.,
One thing you could do is to assign it to a variable
set t 1
set lat 35
set lon 90
define T1= T
set t 2
set lat 20
set lon 72
define T2=T
define aveT=(T1+T2)/2
d aveT
I hope it helps.
Raymond
On Mon, Feb 4, 2013 at 4:20 PM, T. haghroosta <haghroosta at hotmail.com>wrote:
> Dear All,
>
> 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.
>
> open a file,
>
> set time in 1
>
> Read a parameter like T in a special longitude a latitude for example
> lon=90, lat=35. (T1)
>
> Then set time to next step, I mean t=t+1
>
> Read parameter T in another special location, like lon= 75, lat= 20. (T2)
>
> Then I would like to calculate average of T1 and T2. At the end I want to
> show the value of the average.
>
> Could you please help me?
>
> Regards,
>
> T.
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
--
Raymond C. Ordinario
MS Atmospheric Science
Ateneo De Manila University
Quezon City, Philippines
Weather Specialist I
Technique Application and Meteorological Satellite Section
Weather DIvision
Philippine Atmospheric, Geophysical and Astronomical Services Admistration
Quezon City, Philippines
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130205/04a64bc2/attachment-0003.html
More information about the gradsusr
mailing list