plot specific month or seasonal mean data from monthly time series
Teddy Allen
teddyallen at YAHOO.COM
Fri Feb 13 05:47:49 EST 2009
Dear Jing-Jia,
I have done the same in the past by following the below lines in a script:
'd ave (VARIABLE, t=FIRST MONTH OF INTEREST, t=LAST MONTH OF INTEREST, 12)'
Essentially this says to average whatever the variable is from the first month of interest to the last month of interest, but averages at increments of 12 so that only the specific month is averaged and not all months. For example, if you had a time series where the first time step was Jan 1979 (t=1) and the final was Nov 2016 (t=700) [these are just hypothetical numbers] then you would write:
'd ave (variable, t=1, t=700, 12)
This would average only the January months in your monthly dataset. I would guess for a Jun-Aug mean you would have to define a new variable that averages each month and then you could average them together?
I am no expert, but I hope this helps...
cheers
web: http://personal.ecu.edu/tla0923/HOME.html
"To move quickly, go alone. To move far, go together."
African Proverb *
--- On Fri, 2/13/09, Jing-Jia Luo <luo at JAMSTEC.GO.JP> wrote:
From: Jing-Jia Luo <luo at JAMSTEC.GO.JP>
Subject: plot specific month or seasonal mean data from monthly time series
To: GRADSUSR at LIST.CINECA.IT
Date: Friday, February 13, 2009, 3:21 AM
Sorry to disturb you. Using grads v1.9b4, I have monthly time series data
(say from Jan. 1950 to Dec. 2008) and want to plot only May or Jun-Aug mean
data each year. I am wondering whether you know how to do so and would
kindly give me your advice. Thanks a lot.
Best regards,
Jing-Jia Luo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090213/0b034dce/attachment.html
More information about the gradsusr
mailing list