getwithin: Get relevant parameters for integrated metabolism estimates...

Description Usage Arguments Details Value

Description

Get relevant parameters for integrated metabolism estimates within a single depth bin

Usage

1
getwithin(dat, binmid, binwid)

Arguments

dat

data frame for one depth bin

binmid

numeric of midpoint depth of bin

binwid

numeric of bin width

Details

Input data must have seven columns with datetimestamp, dissolved oxygen (do_mgl, mg L-1), salinity (sal, psu), water temprature (temp, C), air temperature (atemp, C), barometric pressur (bp, mb), and wind speed (wspd, m s-1). The binmid and binwid arguments are for the midpoint and width of the depth bin for the corresponding data (m).

The input data are first transposed to estimate the midpoint values of all observations within each depth bin. That is, an hour time step on the hour will be returned as an hourly time step every half hour minus one observation.

The function continues to estimate values for delta DO, DO at saturation, the oxygen mass transfer coefficient, the volumetric reaeration coefficient, and water density.

Value

The input data minus one observation (times the number of depth bins) with additional columns for delta DO (ddo, mmol o2 m-3 hr-1), DO at saturation (dosat, mmol o2), the mass transfer coefficient (kl, m d-1), the volumetric reaeration coefficient (ka, h-1), and water density (sig, set for 10 decibars, output kg m-3).


fawda123/EstuaryMetabolism documentation built on May 16, 2019, 10:57 a.m.