[gradsusr] (no subject)
Mikovitz, Colleen (LARC-E302)[SCIENCE SYSTEMS AND APPLICATIONS, INC]
j.c.mikovitz at nasa.gov
Fri Sep 11 07:52:45 EDT 2015
You will probably want to approach this from a different way. If your values are monthly averages, try something like (assuming a start year of 2002 and an end year of 2010):
'open temp.ctl'
'set x 1 144'
'set y 1 73’
year=2002
while (year<=2010)
'd aave(ave(temp-273.15,time=JAN'year',time=DEC'year'),g)'
secondline=sublin(result,2)
globalave=subwrd(secondline,4)
say globalave
year=year+1
endwhile
On Sep 10, 2015, at 10:53 PM, Gargi Akhoury <gargiakhoury at bitmesra.ac.in<mailto:gargiakhoury at bitmesra.ac.in>> wrote:
Sir, I want to do the average of JAN-DEC, each year. If possible can u give me little hint for preparing script file?
Regards
On Thu, Sep 10, 2015 at 10:23 PM, Jeff Duda <jeffduda319 at gmail.com<mailto:jeffduda319 at gmail.com>> wrote:
I think that expression will give you the average January temperature. If you want a monthly time series of temperature averaged over a specified (prior, following, or centered somewhere) 12-month window, you could use something like
'd ave(temp-273.15,t-0,t+12)'
although you may want to verify if that is valid first.
If you are looking strictly for a JAN-DEC average each year, I'd look into using tmave().
Jeff Duda
On Thu, Sep 10, 2015 at 11:34 AM, Gargi Akhoury <gargiakhoury at bitmesra.ac.in<mailto:gargiakhoury at bitmesra.ac.in>> wrote:
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<mailto: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<mailto: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<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
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr
--
Jeff Duda
Graduate research assistant
University of Oklahoma School of Meteorology
Center for Analysis and Prediction of Storms
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr
_______________________________________________
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/20150911/f0020b50/attachment.html
More information about the gradsusr
mailing list