[Thread Prev][Thread Next][Index]

Re: [ferret_users] monthly average from daily data



Dear Peter,

Thanks a lot.
I was trying to get the time series monthly average, not the monthly climatology and it worked perfectly.

Regards,
Yadu



On Thu, Apr 24, 2008 at 9:16 PM, Peter Szabo <szabpet83@xxxxxxxxx> wrote:
Dear Yadu,
It is a giveaway:
I do not know whether you want climatoligical monthly average (12 data) or time-series monthly average(6 years*12 monthy=60 data), but here is what you can do:

use climatological_axes !you will be able to produce climatological average

use "yourfile.nc"
define axis/t="1-JAN-2000":"31-DEC-2005"/np=2192 newtime   !you should have your time axis in this format, if you already have in it, do not need this line

let var1=yourvariable_in_yourfile[gt=newtime@asn]
let climat=var1[gt=month_irreg@mod]   !this variable will be the climatological monthly average. dimension l=1 will be average of all the six "januaries" in time

define axis/t="15-JAN-2000":"15-DEC-2005"/np=72 monthly !create monthly time-series for 6 years
let monthlyave=var1[gt=monthly@ave] !dimension l=1 is the average of the first month

you should take note of the unit of you variable after averaging, especially when you are dealing with precipitation files!

Cheers,
Peter Szabo



[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement