get_kd_avg: Get light attenuation coefficient for a given lake

Description Usage Arguments Details Value Author(s) Examples

Description

Returns the light attenuation coefficient for a lake with the given ID

Usage

1
get_kd_avg(ids, default.if.null = FALSE, src = "in-situ", datasource = NA)

Arguments

ids

The character ID for the requested kd data. Can be a character vector.

default.if.null

boolean indicating if default Kd should be used if lake has no observations

src

The data source, currently one of c('in-situ', 'satellite'). In-situ observations are default

Details

TODO

Value

Light attenuation coefficient in m^-1

Author(s)

Luke Winslow, Jordan Read

Examples

1
2
3
4
5
6
7
8
#NA returned when no site with that ID found
get_kd_avg(c('WBIC_6100', 'WBIC_10000', 'asdf'))

#Some lakes have satellite data available
get_kd_avg(c('WBIC_6100', 'WBIC_805400', 'asdf'), src='satellite')

#Default can be requested as well
get_kd_avg(c('WBIC_6100','asdf', 'WBIC_10000', 'asdf'), default.if.null=TRUE)

USGS-R/lakeattributes documentation built on May 9, 2019, 8:13 p.m.