Skip to content

R-based model using AGWRC=f(AGWS) and HSPF equations #51

@rburghol

Description

@rburghol
  • Daily Timestep
  • AGWS computed each day as $AGWS_{t+1} = AGWS_t - AGWO$
  • Must compute $AGWRC = f(AGWS)$ -- see below
  • Using Q to get AGWRC regression equations, then plugging in agws

Equations for $AGWRC = f(AGWS)$

  • Start with regression equation $AGWRC = f(Q)$
  • Substitute in $Q(in) = AGWS * (1.0 - AGWRC)$
  • Must derive AGWS from Q using equation above, and since AGWS is in inches may as well make that conversion

Algorithm

  • Notes:
    • Final model must be in inches, AGWS = inches, AGWO = inches/day
    • First life is converting
  • To run the model: start with initial AGWS and function of the relationship between AGWRC=f(AGWS)
  • loop thru timesteps (could loop thru elements of a dataframe that had a time column, or just a specified number of steps)
    • $AGWRC = f(AGWS)$
    • $AGWO = f(AGWS, AGWRC)$
    • $AGWS = AGWS - AGWO$
    • stash each variable in timeseries dataframe

Tasks

  • Function to convert Q to inches (Ilona)
  • Create function for regression and storing regression values (Check Units) (Will)
  • Redo regression with Q in inches (Will)
  • Case study to check that formulas work with real/updated numbers
  • Test uniroot speed (Ben)
    • Change uniroot limits (0.75, 0.999)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions