DOI-USGS / streamMetabolizer

streamMetabolizer uses inverse modeling to estimate aquatic metabolism (photosynthesis and respiration) from time series data on dissolved oxygen, water temperature, depth, and light.
http://usgs-r.github.io/streamMetabolizer/
Other
36 stars 22 forks source link

Can't find metabolism parameters GPP.daily, ER.daily, K600.daily Error #397

Open AbigailUVM opened 3 years ago

AbigailUVM commented 3 years ago

Thanks for submitting your issue or question. We can address issues fastest if they are:

Delete these instructions before submitting your issue.


Brief problem description

I am receiving this error message when running my model and am not receiving and model outputs because of it: Error in get_params.metab_model(object, uncertainty = "ci", fixed = "stars", : can't find metabolism parameters GPP.daily, ER.daily, K600.daily I am unsure how to resolve this error and have tried multiple different data sets including the dataset attached to the package from Bob Hall. I'm sure that this is an easy fix, but do not know what to change about my code given that I have specified GPP and ER parameters in bayes_specs.

What you saw on your computer

Include all code you ran (a minimal example) and all console output, errors, and warnings. Include a data file if needed.

bayes_kup <- mm_name(type='bayes', pool_K600='none', err_obs_iid=TRUE, err_proc_iid=TRUE)
bayes_kup
bayes_specs <- specs(bayes_kup,day_start=4, day_end=28, GPP_daily_lower=-10, ER_daily_upper=1) 
bayes_specs

#RUN THE MODEL
run1 <- metab(bayes_specs, data=new.clean.bayes, info=kup_in)
run1

Output:

metab_model of type metab_bayes 
  User-supplied metadata:
streamMetabolizer version 0.11.4 
Specifications:

Fitting time: NA secs elapsed
Error in get_params.metab_model(object, uncertainty = "ci", fixed = "stars",  : 
  can't find metabolism parameters GPP.daily, ER.daily, K600.daily

Session information

Run the following code line (or sessionInfo() if that doesn't work) and paste in your output.

> devtools::session_info()