Description Usage Arguments Value Examples
Converts mean monthly river discharge [m3/s] to total volume discharge [hm3].
1 |
df |
data frame with class Date in the first column. By default the function converts the second column only. If you have daily or hourly data see agg_serie. |
A data frame with two columns: Date and total volume discharge.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # Create BDHI hydro-met station
guido <- create_hydroMet(class_name = 'BDHI')
# List with meteorological variables (slots in BDHI's object)
cargar <- list('precip', 'Qmd', 'Qmm')
# Now assign as names the files
hydro_files <- list.files( system.file('extdata', package = "hydroToolkit"), pattern = 'Guido' )
names(cargar) <- hydro_files
# Build the object with the met records
guido <- build_hydroMet(obj = guido, slot_list = cargar,
path = system.file('extdata', package = "hydroToolkit") )
# Now get mean monthly discharge
Qmm <- get_hydroMet(obj = guido, name = 'Qmm')[[1]]
# Get the monthly water volume
Qmm_vol <- Qmm_to_Dm(df = Qmm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.