Description Usage Arguments Details Value
View source: R/03-find_elevation_and_discharge.R
This function interpolated discharge between 15-minute discharge measurments. The discharge measurements before and after the chosen time datetime are used to solve for the equation of a line, then that line is used to estimate discharge at the chosen datetime
1 |
dt |
lubridate datetime object |
time_before |
numeric datetime, 15-min discharge measurment before |
Q_before |
discharge (cfs) associated with time_before in gage_data |
time_after |
numeric datetime, 15-min discharge measurment after |
Q_after |
discharge (cfs) associated with time_after in gage_data |
y1 <- Q_before y2 <- Q_after x1 <- time_before x2 <- time_after m <- (y2-y1)/(x2 - x1) b <- y1- m*x1 x3 <- as.numeric(dt) y3 <- m * x3 + b
y3 – numeric value, interpolated discharge in cfs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.