[Thread Prev][Thread Next][Index]
Re: [ferret_users] percentile
- To: Izidine Pinto <izidinep@xxxxxxxxx>
- Subject: Re: [ferret_users] percentile
- From: Peter Szabo <szabpet83@xxxxxxxxx>
- Date: Mon, 10 May 2010 13:27:48 +0200
- Cc: ferret <ferret_users@xxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=iM9WYwrWzJWNQhMacyu8F/eKfdiROs44AT0AUkoCi8E=; b=wALKJiwJGEyjXxEgYcqLEuIQIA/5jXkkcrgjoOdU5g6REK+GEt8JU+5dHY7Efe7Fms hR3T/5w4HhOiQ5p2oUgpff215QdgXCitqI0es62HOBks/t7gFDpI2U82XjoZn2z7LOxw eIo9pHOTZMba+S+LlwsBxfjYgPdyrQky1YGW8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=KcHtbeNLPUTP7nsg1u4Co+jIoso+RcakofPoqBp3cC8k3k07v508KApz9YZAO5whxe F5eyMa0EuAKqklosxMh0ipqwgsaO4Mwn9HL/xYqQ1lfpWenSO9KXDzlTMGyTvC15PCqb +BsoF0toIj6h6NSmekw0w0EoGZo6nak0D6NQk=
- In-reply-to: <AANLkTinXx6ZlcszpzwxBmbzXuBk_UAFyvvEjXrnoqyuF@xxxxxxxxxxxxxx>
- References: <AANLkTinXx6ZlcszpzwxBmbzXuBk_UAFyvvEjXrnoqyuF@xxxxxxxxxxxxxx>
- Sender: owner-ferret_users@xxxxxxxx
Hello Izidine,
i will not tell you the exact commands, but hints.
first, decide if TEMP[d=1] < TMXDJFBBOTTOM10[d=2] or not: let YES=if X eq Y then 1 (EQual; but Lesser Than, Lesser Equal, Greater Equal, Greater Than also exist)
count the occasions when TEMP[d=1] < TMXDJFBBOTTOM10[d=2]: count with @SUM function through L dimension.
get percentage: have now the rate of good_occasions/all_occasions*100
:)
Hope it helps,
Peter
On Mon, May 10, 2010 at 12:18 PM, Izidine Pinto
<izidinep@xxxxxxxxx> wrote:
Dear ferret users
I have two data files
1> /Tmax.DJF.daily.1981_1999.echama2.nc
name title I J K L
TEMP TEMPERATURE AT 1.5M 1:127 1:110 1:1 1:1680
2> /tmxdjf10th.b.ech.nc (default)
name title I J K L
TMXDJFBBOTTOM10
DJF Max temp 10th percentile 19 1:127 1:110 1:1 ...
I was wondering if someone could help me to calculate the percentage of time where
TEMP[d=1] < TMXDJFBBOTTOM10[d=2]
Any help is strongly appreciated
--
Izidine Pinto
:-)
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Privacy Policy | Disclaimer | Accessibility Statement