[Thread Prev][Thread Next][Index]
Re: [ferret_users] Calculating Probability Density Function
- To: archana shrestha <archanamet@xxxxxxxxx>
- Subject: Re: [ferret_users] Calculating Probability Density Function
- From: Peter Szabo <szabpet83@xxxxxxxxx>
- Date: Tue, 29 Apr 2008 10:12:50 +0200
- Cc: oar.pmel.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=+kjowZ0Ga39sf4JFoqaNc4kp1enjMFHcQvyJuqnKXg4=; b=Te3vivw4/QqsbpD2msHhyShoRmWkSNLGpQo0uaX+L1Rs1A33nOD1nCdhKxzeo+ZyanNUWOFdOHjaQwgJZ/LdvP14VwpyYo+LsSi9eTHDsmOWTLkHzNzz/cGbSFv0v8R7nerXM8LsYMkOkOgp87MNR+Qqj49fc9EmXNi1TF+RDVg=
- 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=q2y2/hjDvCQKgNvwyIg1na+FxiOLbZoVNjsOwRrHNfhFxu6GiBFWBHhqaczCXUrKWfF7XT8vYDy7vbIVMC7Px2Cx0UxN79z6G8DXaXqPUcvDxf72YK5foJghFcu/oVJtzZRAL0Kgy5O2d+YfDiboR/rJGmc41A95ZEjuez6xbl0=
- In-reply-to: <125894.78656.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- References: <E37D5C21-69E4-4E67-98A1-0A93EE519F5E@xxxxxxxx> <125894.78656.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Sender: owner-ferret_users@xxxxxxxx
Hello Archana,
First of all, i do not know what the ".des" tag is, but I tried your calculations using my daily data set with 10800 timesteps. Though you have (29 years*12=)348 months.
I searched the archives and found that using SAMPLE* and SORT* functions you can produce PDF (* can be I, J, K, L). The only problem is that they can only work for points, but with a trick it is solvable). So with this script i saved out my variable to a new netcdf file.
use "/home/szabop/precip/HC1.nc" !for me the dims are i=1:14, j=1:32, l=1:10800
repeat/j=1:14:1 (repeat/i=1:32:1 (let tsorted_indices_20 = sortl(precip20[i=`i`,j=`j`]); let tsorted_precip20 = samplel(precip20[i=`i`,j=`j`], tsorted_indices_20);\
save/file="/home/szabop/ki/PDF.nc"/ILIMTS=1:32/JLIMITS=1:14/i=`i`/j=`j`/append/clobber tsorted_precip20))
After using this new PDF.nc you should mark out one point (with this command: plot tsorted_precip20[i=1,j=1]; I attach a GIF how it looks like for the i=1 and j=1 point without normalization)
or as you said you can produce spatially-averaged field (easier for a non-irregular or even easier for the whole territory) and plot that standing-alone "point".
If you want to work with seasonal fields, you will only have 29 timesteps.
I do not know whether it is what you wanted or not.
Regards,
Peter Szabo
Attachment:
PDF0101.gif
Description: GIF image
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Privacy Policy | Disclaimer | Accessibility Statement