metab_night | R Documentation |
Fits a model to estimate K from nighttime input data on DO, temperature, light, etc. The default day start & end are 12 noon on the preceding to present day; the algorithm then filters the data to just those time points for which light is very low. Discharge is only used, if at all, to identify and exclude days with any negative discharge.
metab_night(
specs = specs(mm_name("night")),
data = mm_data(solar.time, DO.obs, DO.sat, depth, temp.water, light, discharge,
optional = "discharge"),
data_daily = mm_data(NULL),
info = NULL
)
specs |
a list of model specifications and parameters for a model.
Although this may be specified manually (it's just a list), it is easier
and safer to use |
data |
data.frame (not a tbl_df) of input data at the temporal
resolution of raw observations (unit-value). Columns must have the same
names, units, and format as the default. The solar.time column must also
have a timezone code ('tzone' attribute) of 'UTC'. See the
'Formatting |
data_daily |
data.frame containing inputs with a daily timestep. See the
'Formatting |
info |
any information, in any format, that you would like to store within the metab_model object |
A metab_night object containing the fitted model. This object can be
inspected with the functions in the metab_model_interface
.
Alison Appling, Maite Arroita, Bob Hall
Other metab_model:
metab_Kmodel
,
metab_bayes
,
metab_mle
,
metab_sim
dat <- data_metab('3', day_start=12, day_end=35)
mm <- metab_night(data=dat)
predict_metab(mm)
## Not run:
plot_DO_preds(predict_DO(mm))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.