Split Flow-to-Suitable-Area Curve at Flow Threshold (Helper Function)

flow_threshold_split(suitable_area, flow, flow_threshold)

Arguments

suitable_area

A numeric vector of suitable area values, e.g. in ft2 per lf

flow

A numeric vector of flow values in cfs, same length as suitable_area

flow_threshold

A numeric value for the instream-floodplain flow threshold in cfs

Value

A named list including the original suitable_area and flow vectors, an identifier of instream versus floodplain (above_threshold), and suitable area values for instream and floodplain (habitat_below and habitat_above)