spell: Spell statistics

Description Usage Arguments Value Author(s) See Also Examples

Description

Statistics of spell durations (consecutive wet and dry days), e.g. dry and wet periods or duration of extremes.

exceedance estimates statistics for peak-over-treshold, and nevents returns the number of events with exceeding values (e.g. the number of rainy days X > 1 mm/day). wetfreq resturs n the wet-day frequency (a fraction) and wetmean wet-day mean.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
spell(x,threshold,...)
spell.default(x,threshold,upper=150,...)
spell.station(x,threshold,upper=150,...)
hist.spell(x, ...)
count(x,threshold=1,fraction=FALSE) 
exceedance(x,threshold=1,fun='mean',...)
exceedance.default(x,threshold=1,fun='mean',...)
exceedance.station(x,threshold=1,fun='mean',...)
exceedance.field(x,threshold=1,fun='mean',...)
nevents(x,threshold=1)
wetfreq(x,threshold=1)
wetmean(x,threshold=1)
HDD(x,x0=18,na.rm=TRUE)
CDD(x,x0=22,na.rm=TRUE)
GDD(x,x0=10,na.rm=TRUE)

Arguments

x

station or field object

threshold

threshold value

upper

upper limit for maximum length - ignore any above this because they are likely errornous

fraction

TRUE: divide the number of counts by number of samples

fun

function

Value

Station or field objects

Author(s)

R.E. Benestad and A. Mezghanil

See Also

plot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Example 1 : 
precip <- station.metnod(stid="18700",param="precip")
x <- spell(precip,threshold=.1)
x.ann <- annual(x,FUN="max")
plot(x.ann,plot.type="multiple")
# Example 2 :
x11() ; plot(x)

# Growing degree days:
data(ferder)
plot(as.seasons(ferder,FUN='GDD'))

metno/esd.test documentation built on May 22, 2019, 7:49 p.m.