powered by
Calculates the first day in the year where the probability of temperature over a threshold is higher than a predefined threshold.
tempProb(mx, dates, thres = 20, month = NULL)
A numeric vector with annual values is returned.
vector of daily (usually maximum) temperature series.
vector of dates corresponding with daily temprature series
temperature threshold considered to trigger occurrence.
integer between 1 and 12 indicating the month to compute the probability.
tempProb(mx = daily_tmax, dates = seq.Date(as.Date('1981-01-01'), as.Date('2010-12-31'), by ='day'), thres = 20, month = NULL)
Run the code above in your browser using DataLab