mfeMetab: mfeMetab Functionality for generating lake metabolism...

View source: R/MFEmetab.R

mfeMetabR Documentation

mfeMetab Functionality for generating lake metabolism estimates from MFE database. Putting Solomon metabolism code into a function and adding some options for different K models. Also allows for pulling input data directly from MFE sensor database. WARNING! This function makes some modifications to your R workspace, which isn't best practice for R package functions. I don't have time to fix it now. It sets the system time zone, and it also saves your workspace to an .Rdata file. Use caution. -KG SEJ with code from CTS, JAZ, CRO, and CJT

Description

mfeMetab Functionality for generating lake metabolism estimates from MFE database. Putting Solomon metabolism code into a function and adding some options for different K models. Also allows for pulling input data directly from MFE sensor database. WARNING! This function makes some modifications to your R workspace, which isn't best practice for R package functions. I don't have time to fix it now. It sets the system time zone, and it also saves your workspace to an .Rdata file. Use caution. -KG SEJ with code from CTS, JAZ, CRO, and CJT

Usage

mfeMetab(
  lakeID,
  minDate,
  maxDate,
  outName,
  dirDump,
  maxZMix = 8,
  k = "cole&caraco",
  fluxDummyToggle = TRUE,
  bootstrap = "no",
  lat = 46.16,
  elev = 535,
  windHeight = 2,
  timeStep = 10,
  sensorDepth = 0.7
)

Arguments

lakeID

Lake to estimate metabolism for

minDate

First date to estimate metabolism for

maxDate

Last date to estimate metabolism for

outName

Text to use in lableing outputs, e.g. 'Acton2008'. Character. No default.

dirDump

Directory where outputs should be dumped, e.g. 'C:/GLEON/Acton/Results'. No default value.

maxZMix

Back up zmix if temp profile data is unavailable; defaults to 4, but should pick a value that makes sense.

k

Model for piston velocity - options are: "cole&caraco", a constant k600 specified by the desired value, or "read" (coming soon)

fluxDummyToggle

Use convention where atmospheric exchange is shut off during microstratification conditions.

lat

Latitude of lake, decimal degrees, north positive; defaults to UNDERC (46.15)

elev

Elevation of lake surface, m above sea level; defaults to UNDERC (518)

windHeight

Height above lake surface at which wind speed is measured, m; defaults to UNDERC (2)

timeStep

Time interval between DO measurements, minutes; defaults to 10 minutes

sensorDepth

Depth of DO sensor, m; defaults to UNDERC (0.7?)

bootstrapping

yes or no. Warning! Will take a while to run if yes. Defaults to no.


MFEh2o/MFEUtilities documentation built on May 6, 2023, 1:33 p.m.