DOI-USGS / DOI-USGS/streamMetabolizer

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

Open
#398 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Stan
Stars
47
Forks
25
PR merge metrics
No merged PRs in 30d

Description

### Brief problem description
As a bit of a disclaimer, I am relatively new to R and the streamMetabolizer package. I am emailing because I'm receiving this error message when running my model: "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 what this error means about my data/how to resolve it, and have tried multiple different data sets including the dataset attached to the package from Bob Hall, but no models are able to run. All of my data was verified to be in the correct class and format. 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.

```r
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:
```r
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.

```r
> devtools::session_info()

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.