[gradsusr] (no subject)

Jeff Duda jeffduda319 at gmail.com
Thu Sep 10 12:53:21 EDT 2015


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
> 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
> > 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
>>>
>>>
>>
>
> _______________________________________________
> gradsusr mailing list
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150910/ce9b5e0f/attachment.html 


More information about the gradsusr mailing list