Sends fry Chinook salmon out of natal tributaries when they are at the fry stage The snow_globe_movement function sends fish out of natal tributaries when the sum of flows at freeport and vernalis exceed a threshold The genetic_movement function sends fish out of natal tributaries based on a user specified proportion

snow_globe_movement(
  juveniles,
  freeport_flow,
  vernalis_flow,
  threshold = 1000,
  p_leave = 0.3,
  stochastic = FALSE
)

genetic_movement(juveniles, p_leave = 0.25, stochastic = FALSE)

Arguments

juveniles

An n by 4 matrix of juvenile fish size s, m, l, vl

freeport_flow

The flow at freeport in cubic meters per second

vernalis_flow

The flow at vernalis in cubic meters per second

threshold

the threshold combined flow for initiating fish movement out of natal tributaries

p_leave

the proportion of juvenile fish leaving in response to high flows

stochastic

when true the fish leaving are assigned randomly