step_baro_clark: step_baro_clark

View source: R/api_recipes.R

step_baro_clarkR Documentation

step_baro_clark

Description

Clark 1967 solution for calculating barometric efficiency (Algorithm from Batu 1998, pg 76)

Usage

step_baro_clark(
  .rec,
  water_level,
  barometric_pressure,
  lag_space = 1L,
  inverse = FALSE,
  role = "augment",
  ...
)

Arguments

.rec

the R6 recipe object.

lag_space

integer spacing for lags, useful for higher frequency monitoring

inverse

logical whether the barometric relationship is inverse

role

character - the name of the role

...

additional arguments

dep

numeric vector of the dependent variable (ie:water level)

ind

numeric vector of the independent variable (ie:barometric pressure)

Value

barometric efficiency using Clark's method

References

Clark, W.E., 1967. Computing the barometric efficiency of a well. Journal of the Hydraulics Division, 93(4), pp.93-98.

Batu, V., 1998. Aquifer hydraulics: a comprehensive guide to hydrogeologic data analysis. John Wiley & Sons.

See Also

Other barometric: step_baro_harmonic(), step_baro_least_squares()

Examples

data(kennel_2020)

clarks <- recipe(wl~., kennel_2020) |>
  step_baro_clark(wl, baro, lag_space = 1) |> # 1 minutes (every minute differences)
  step_baro_clark(wl, baro, lag_space = 60) |> # 60 minutes (hourly differences)
  step_baro_clark(wl, baro, lag_space = 1440) |> # 1440 minutes (daily differences)
  prep() |>
  bake()

clarks$get_step_data("barometric_efficiency")


jkennel/hydrorecipes documentation built on Dec. 24, 2024, 5:38 p.m.