[Thread Prev][Thread Next][Index]

Re: [ferret_users] event statistics

Dear Jagadish Karmacharya,

> I have a 1 dimensional time series with intermittent values equal to
> 1 and missing values in between (1's represent spells of certain
> events). I want to calculate number of spells of of 1's and other
> stats such as mean and medium duration of spells of 1's.

If you can use pyferret it should be easy to get the data out of
ferret and do the counting yourself.  Alternatively, perhaps you could
make this work by taking the time derivative (l=@ddf) and counting up

Something like

let devdt = mytimeseries[l=@ddf]
let ev_start = if (devdt gt 0) then 1
let ev_end = if (devdt lt 0) then 1

let nevents = ev_start[l=@ngd]
let nevents = ev_start[l=@sum]


Kind regards,


Dr. Hein Zelle
Senior consultant meteorology & oceanography

Tel:        +31 (0)527-242299
Fax:        +31 (0)527-242016
E-mail:     hein.zelle@xxxxxxxxxxxxx
Website:    www.bmtargoss.com
Voorsterweg 28, 8316 PT Marknesse, the Netherlands
Postal address: P.O. Box 61, 8325 ZH Vollenhove, the Netherlands

Registered in The Netherlands, Registered no. 39060160.

Unless otherwise agreed by BMT ARGOSS in writing, all work,
services, goods or products supplied by BMT ARGOSS shall be subject
to and governed by BMT ARGOSS' own terms and conditions which are
available for inspection from BMT ARGOSS on request.

E-mail confidentiality notice and disclaimer:
The contents of this e-mail and any attachments are intended for the
use of the mail addressee(s) shown. If you are not that person, you
are not allowed to read it, to take any action based upon it or to
copy it, forward, distribute or disclose the contents of it and you
should please delete it from your system. BMT ARGOSS does not accept
liability for any errors or omissions in the context of this e-mail or
its attachments which arise as a result of internet transmission, nor
accept liability for statements which are those of the author and
clearly not made on behalf of BMT ARGOSS.

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

Privacy Policy | Disclaimer | Accessibility Statement