Return the data types that may be used by metab_models using the metab_model_interface.
Source:R/mm_data.R
mm_data.RdProduces a unitted data.frame with the column names, units, and data format to be used by metab_models that comply strictly with the metab_model_interface. These are the columns that may be included:
solar.timedate-time values in mean solar time (seecalc_solar_timeand/orconvert_UTC_to_solartime), in POSIXct format with a tzone attribute of 'UTC'. May be approximated by local, non-daylight-savings clock time (still with nominal UTC timezone but with clock noons close to solar noon), but mean solar time is better for matching model time windows to the diel cycle of light availability. Throughout this package, variables named "solar.time" are mean solar time, "app.solar.time" means apparent solar time, and "any.solar.time" means either.DO.obsdissolved oxygen concentration observations, \(mg O[2] L^{-1}\)DO.satdissolved oxygen concentrations if the water were at equilibrium saturation \(mg O[2] L^{-1}\). Calculate using calc_DO_satdepthstream depth, \(m\).temp.waterwater temperature, \(degC\).lightphotosynthetically active radiation, \(\mu mol\ m^{-2} s^{-1}\)datedates of interest in Date formaterr.obs.sigmaSD of observation error to use in simulating dataerr.obs.phiautocorrelation of observation error to use in simulating dataerr.proc.sigmaSD of process error to use in simulating dataerr.proc.phiautocorrelation of process error to use in simulating dataDO.obsdissolved oxygen concentration observations, \(mg O[2] L^{-1}\)GPPdaily estimates of GPP, \(g O[2] m^-2 d^-1\)ERdaily estimates of ER, \(g O[2] m^-2 d^-1\)K600daily estimates of K600, \(d^-1\)GPP.initdaily initial values of GPP, \(g O[2] m^-2 d^-1\), for use in maximum likelihood estimationER.initdaily initial values of ER, \(g O[2] m^-2 d^-1\), for use in maximum likelihood estimationK600.initdaily initial values of K600, \(d^-1\), for use in maximum likelihood estimationdischarge.dailydaily mean river discharge, \(m^3 s^-1\)velocity.dailydaily mean river flow velocity, \(m s^-1\)
Arguments
- ...
column names to select, as passed to
select- optional
one or more character strings listing the columns, if any, that may be excluded. If 'all', the entire data.frame may be omitted. If 'none', the entire data.frame must be included as prototyped. If specific column names are given, those columns may be omitted entirely or passed to
metab()as all NAs.
Details
Most models will require a subset of these data columns. Specialized models may deviate from this format, but this is discouraged.
Examples
# all possible columns
mm_data()
#> solar.time DO.obs DO.sat depth temp.water light
#> U mgO2 L^-1 mgO2 L^-1 m degC umol m^-2 s^-1
#> 1 2050-03-14 15:10:00 10.1 14.2 0.5 21.8 300.9
#> discharge velocity date DO.mod.1 err.obs.sigma err.obs.phi
#> U m^3 s^-1 m s^-1 mgO2 L^-1 mgO2 L^-1
#> 1 9 2 2050-03-14 7.5 0.01 0
#> err.proc.sigma err.proc.phi GPP.daily Pmax alpha
#> U gO2 d^-1 m^-2 gO2 d^-1 m^-2 gO2 d^-1 m^-2 gO2 s d^-1 umol^-1
#> 1 5 0 5 10 1e-04
#> ER.daily ER20 K600.daily K600.daily.lower K600.daily.upper
#> U gO2 d^-1 m^-2 gO2 d^-1 m^-2 d^-1 d^-1 d^-1
#> 1 -10 -10 10 4.5 15.6
#> init.GPP.daily init.Pmax init.alpha init.ER.daily init.ER20
#> U gO2 d^-1 m^-2 gO2 d^-1 m^-2 gO2 s d^-1 umol^-1 gO2 d^-1 m^-2 gO2 d^-1 m^-2
#> 1 5 10 1e-04 -10 -10
#> init.K600.daily discharge.daily velocity.daily GPP GPP.lower
#> U d^-1 m^3 s^-1 m s^-1 gO2 d^-1 m^-2 gO2 d^-1 m^-2
#> 1 10 9 2 5 4
#> GPP.upper ER ER.lower ER.upper D
#> U gO2 d^-1 m^-2 gO2 d^-1 m^-2 gO2 d^-1 m^-2 gO2 d^-1 m^-2 gO2 d^-1 m^-3
#> 1 6 -5 -6 -4 5
#> D.lower D.upper
#> U gO2 d^-1 m^-3 gO2 d^-1 m^-3
#> 1 5 5
# columns typical of instantaneous data
mm_data(solar.time, DO.obs, DO.sat, depth, temp.water, light)
#> solar.time DO.obs DO.sat depth temp.water light
#> U mgO2 L^-1 mgO2 L^-1 m degC umol m^-2 s^-1
#> 1 2050-03-14 15:10:00 10.1 14.2 0.5 21.8 300.9
# columns typical of daily data
mm_data(date, K600.daily, discharge.daily, velocity.daily)
#> date K600.daily discharge.daily velocity.daily
#> U d^-1 m^3 s^-1 m s^-1
#> 1 2050-03-14 10 9 2