This function updates habitat conditions based on the provided scenario, parameters, starting habitat, starting hydrology, and species.

apply_habitat_actions(
  scenario,
  params,
  starting_habitat,
  starting_hydrology,
  species
)

Arguments

scenario

A list containing the actions to be applied to the habitat.

params

A list of parameters including prey density, prop_high_predation, contact_points, delta_contact_points, delta_prop_high_predation.

starting_habitat

A string specifying the starting habitat type.

starting_hydrology

A string specifying the starting hydrology type.

species

A string specifying the species for which habitat is being updated.

Value

A list containing the updated habitat conditions for spawning habitat, inchannel habitat for fry and juvenile stages, floodplain habitat, yolo habitat, sutter habitat, delta habitat, weeks flooded, average temperature, and degree days.

Details

The function performs several actions based on the provided scenario:

  • Updates habitat conditions based on the species and starting habitat type actions 1 - 3.

  • Applies action 4 to update yolo habitat based on rice lands salmon rearing practice.

  • Applies action 5 to increase prey density.

  • Applies action 6 to decrease predation by scaling contact points.