[gradsusr] (no subject)

Mikovitz, Colleen (LARC-E302)[SCIENCE SYSTEMS AND APPLICATIONS, INC] j.c.mikovitz at nasa.gov
Tue Sep 8 07:46:53 EDT 2015


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<mailto: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<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150908/7e1fd976/attachment.html 


More information about the gradsusr mailing list