[Thread Prev][Thread Next][Index]
Re: [ferret_users] monthly average from daily data
- To: yadu pokhrel <yadupokhrel@xxxxxxxxx>
- Subject: Re: [ferret_users] monthly average from daily data
- From: Peter Szabo <szabpet83@xxxxxxxxx>
- Date: Thu, 24 Apr 2008 14:16:05 +0200
- Cc: ferret_users@xxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=lSde1xxAglP9PEU+1syXpjeq353Tglsxnnm0ToF8VP0=; b=k9YnaBMEbzfJRnztHgRuKrprsHyFuhgInp2wpOy5rn4/i9xlr2PwZGaSSW85m5zfDfm09zksC3ttK/uluob9tKVl3M9iqd1qL3meh7+/Djl3PGw2nCGrt/dGo+I8Bchg6pnDMiMymMrZ5FSJxP8hieMVE9yi6RIa5RXFizuP5kc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=NIoUORiNS25LhKMS9U4ykyCw5WZTQ0aixsGBd6i+n1DLVs6YPR1m0g2IDHtnpbOJy7BWfay+tBINz4LhLD35a4Ps1P5zyK5+an6QDwPB93d4Ppe2Bt5X1zPj624K4Y681McEuoG7B9aKwgQ9QTVat0UFAXRlhvVgqRtV83U2WdU=
- In-reply-to: <1859acb50804240202y6b8488dfsccea25beacd475a7@xxxxxxxxxxxxxx>
- References: <1859acb50804240202y6b8488dfsccea25beacd475a7@xxxxxxxxxxxxxx>
- Sender: owner-ferret_users@xxxxxxxx
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