[Thread Prev][Thread Next][Index]

Re: [ferret_users] seasonal average



Hi Nageswararao,

I think its because of leap year issue. But I have found a work around (not sure if it worked only because I had only few years of data)

What I did is list the 1-jul value of year_days for different years.

repeat/range=1990:2007:1/name=yr (list/nohead/precision=5 year_days[t=1-jul-`yr`]

In my case, min & max values of year_days for 1-Jul were 181.30 & 182.15 i.e. it variations by less than 1 (not sure if its because I am considering just about 20 years) so I defined mask like:

let dmask1=if year_days gt 181.2 then 1

Jagadish


From: golla nageswararao <ezeenag4u@xxxxxxxxx>
To: ferret_users@xxxxxxxx
Sent: Wednesday, March 14, 2012 3:49 PM
Subject: [ferret_users] seasonal average

Hi all,
 I want to compute seasonal average of JJAS for a variable. So I followed the below link.
http://ferret.pmel.noaa.gov/Ferret/faq/creating-seasonal-masks

But I am facing problem with masking namely that if I give 151 (start date for June), the masking is not regular for all years. Suppose for starting year it masked upto 14th june or so and it varied with year. How can I do perfectly seasonal mask and then average.

Help in this regard is appreciated.

Thanks in advance.
--
With Best regards,
G.NageswaraRao,




[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement