[gradsusr] (no subject)
Gargi Akhoury
gargiakhoury at bitmesra.ac.in
Thu Sep 10 12:34:41 EDT 2015
Hello,
I have one confusion. will the program below give the average of
twelve months (i.e. from JAN to DEC) but 65 times as there are 780 total
months???
'open temp.ctl'
'set x 1 144'
'set y 1 73'
'set t 1 780'
'define tmp=ave(temp-273.15,t=1,t=780,12)' , %increment with 12 values and
taking their average
'd tmp'
On Wed, Sep 9, 2015 at 8:02 PM, Gargi Akhoury <gargiakhoury at bitmesra.ac.in>
wrote:
> Thanku for this....!!
>
>
>
> On Tue, Sep 8, 2015 at 5:16 PM, Mikovitz, Colleen (LARC-E302)[SCIENCE
> SYSTEMS AND APPLICATIONS, INC] <j.c.mikovitz at nasa.gov> wrote:
>
>> You might need to modify a couple things:
>>
>> 'set t 1 780’
>> should be
>> ‘set t 1 12’ unless you are trying to get a running average for the
>> whole time period.
>>
>> 'define tmp=ave(temp-273.15,t=1,t=780,12)’
>> try
>> 'define tmp=ave(temp-273.15,t+0,t=780,12)’
>>
>>
>> On Sep 8, 2015, at 6:38 AM, Gargi Akhoury <gargiakhoury at bitmesra.ac.in>
>> wrote:
>>
>> Hello,
>> I want to do the average of time i.e months from January to
>> December. The script is below but it is not working, kindly help me.....!!!
>>
>> 'open temp.ctl'
>> 'set x 1 144'
>> 'set y 1 73'
>> 'set t 1 780'
>>
>>
>> 'define tmp=ave(temp-273.15,t=1,t=780,12)' , %increment with 12 values
>> and taking their average
>> 'd tmp'
>> 'define tmmp=amax(tmp,lon=0,lon=360,lat=-90,lat=90)'
>> 'd tmmp'
>>
>> val=subwrd(result,4)
>> hj=write(temp_eq.csv,val)
>>
>>
>> Regards
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150910/0275e1dd/attachment.html
More information about the gradsusr
mailing list