# NOT RUN {
library(baseflow)
# Loading example data from airGR package
data(L0123001, package = 'airGR')
# Defining BasinData object
Name <- BasinInfo$BasinName
startDate <- BasinObs$DatesR[1]
endDate <- BasinObs$DatesR[length(BasinObs$DatesR)]
P <- BasinObs$P
PET <- BasinObs$E
Qobs <- BasinObs$Qmm
BasinData_Example <- BasinData(Name, startDate, endDate, P, PET, Qobs, fill = "GR4J")
# Computing correlation criteria
data_crit <- corr_crit_vect(BasinData_Example,
alphas = seq(from = 100, to = 2000, by = 100),
taus = seq(from = 10, to = 370, by = 10),
updateFunction = "quadr")
# }
Run the code above in your browser using DataLab