The estimator uses a few things, derived from Chapter 11 of the 22nd Annual Progress Report:
The Net Delta Outflow Index is calculated by:
This is an imperfect specification given the diversity of Consumptive Use calculations. So take this with a grain of salt.
NDOI is then modified by the tidal energy and tidal filter in the ndo_mod function.
where
The G model, due to Denton, evolves "antecedent outflow" g(t)
using the following equation:
$$
\frac{dg}{dt} = \frac{g(t)(q(t) - g(t))}{\beta}
$$
Which can be discretized using a Crank Nicolson scheme (which tends to be sufficiently positivity preserving) $$ \frac{g_{n+1}-g_n}{\Delta t} = \frac{1}{2}\left[\frac{g_n(q_n-g_n)}{\beta}+\frac{g_{n+1}\left(q_{n+1}-g_{n+1}\right)}{\beta}\right] $$
where
this is solved in ec_boundary.py using the gcalc function.
where ec_boundary_fit_gee.py
in building the preds variable.
The
This essentially takes into account which point in the tidal cycle you are in. This is resolved in the z_sum_term function. To set up the parameters for
If
so that each value of z has a summed lag term that's used in the EC formula.