Description Usage Arguments Details Value Author(s) References See Also Examples
Standard construction function of BasinData
objects, used by package baseflow
to store daily hydroclimatic data for a given catchment. As the separation algorithm proposed in baseflow
does not handle missing streamflow values, a filling routine using airGR
package is provided.
1 | BasinData(Name, startDate, endDate, P, PET, Qobs, fill = "none")
|
Name |
Character string giving the name of the catchment. Can be a code or a plain-text description. |
startDate |
Starting date of hydroclimatic data as a |
endDate |
End date of hydroclimatic data as a |
P |
Numeric vector giving daily total lumped precipitation over the catchment, in mm. Must be of the same length as |
PET |
Numeric vector giving daily total lumped potential evapotranspiration over the catchment, in mm. Must be of the same length as |
Qobs |
Numeric vector giving daily streamflow of the catchment, as depth of runoff in mm. Must be of the same length as |
fill |
Character string describing filling methods. Must be one of the following : |
The expected length of data vectors is equal to the number of days between the two provided dates. It is recommended to store data into a data frame before using this function.
This function does not handle missing values : any NA
will produce an error. If there are missing values in streamflow, the fill
argument must be different from "none"
.
Filling routine requires airGR
package. One of the following hydrological lumped models can be used : GR4J, GR5J or GR6J. See airGR
documentation for further details.
A BasinData
object containing provided data.
Pelletier and Andreassian (antoine.pelletier@irstea.fr)
Pelletier, A. and Andréassian, V.: Hydrograph separation: an impartial parametrisation for an imperfect method, Hydrol. Earth Syst. Sci., 24, 1171–1187, doi: 10.5194/hess-24-1171-2020, 2020
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.