hotsummerdays | R Documentation |
The functions hotsummerdays
, heatwavespells
,
coldwinterdays
, and coldspells
estimate statistics for
heatwaves/hot days or cold spells based on seasonal mean temperatures. The
estimations are based on a regression analysis (GLM) between observed number
of events or spell lengths and seasonal mean from station data.
nwetdays
estimates the number of days per year with precipitation
amount exceeding a threshold values.
hotsummerdays(
x,
y = NULL,
dse = NULL,
it = "jja",
threshold = 30,
verbose = FALSE,
plot = TRUE,
nmin = 90,
new = TRUE,
...
)
x |
station object, e.g. the temperature. Matches the element used in the dsensemble object 'dse' |
y |
station object which may be some statistics with dependency to x, e.g. snow depth. |
dse |
a dsensembel object. If NULL, then run DSensemble |
it |
Default season set for northern hemisphere.
|
threshold |
Temperature threshold |
verbose |
TRUE for trouble shooting, debugging etc. |
plot |
TRUE - produce graphics |
nmin |
Minimum number of data points (e.g. days or months) with valid data accepted for annual estimate. NULL demands complete years. |
new |
if TRUE plot in new window |
The estimation of these statistics makes use of general linear models (GLMs) and take the counts to follow the 'Poisson family' whereas the spall lengths belong to the geometric distribution. The seasonal mean temperature or annual wet-mean precipitation are used as independent variable.
R.E. Benestad
data(ferder)
data(dse.ferder)
hw <- hotsummerdays(ferder,dse.ferder,threshold=20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.