opti_thermal_habitat: Calculate optical thermal habitat using temp and light...

Description Usage Arguments Value

View source: R/opti_thermal_habitat.R

Description

Calculate optical thermal habitat using temp and light thresholds

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
opti_thermal_habitat(
  opt_wtr,
  io,
  kd,
  lat,
  lon,
  hypso,
  irr_thresh = c(0, 2000),
  wtr_thresh = c(0, 25),
  area_type = "benthic",
  interp_hour = FALSE,
  approx_method = "linear"
)

Arguments

kd

Light attenuation value of the lake (in m^-1 units)

hypso

Hypsography data.frame, with columns depth and area. From

irr_thresh

Vector of length 2 with min and max value (in that order) for light thresholds. Note: >= and <= is used for comparison, so thresholds must be adjusted accordingly.

wtr_thresh

Vector of length 2 with min and max value (in that order) for temperature thresholds. Note: >= and <= is used for comparison, so thresholds must be adjusted accordingly.

area_type

How benthic area is to be calculated. Defaults to benthic, which tries to estimate the slope corrected benthic area for each layer. surface just uses a surface area approximation, ignoring slope.

interp_hour

Interpolate to hourly data

approx_method

Method for the approximate function

Value

data.frame with three columns. opti_hab, therm_hab, opti_therm_hab for areas of each habitat type (with opti_therm_hab being the overlap of both). Units are in m^2*days. Divide by the number of days in the data to


USGS-R/mda.lakes documentation built on Nov. 13, 2020, 8:28 p.m.