{"action":"closed","issue":{"url":"https://api.github.com/repos/USGS-R/streamMetabolizer/issues/156","repository_url":"https://api.github.com/repos/USGS-R/streamMetabolizer","labels_url":"https://api.github.com/repos/USGS-R/streamMetabolizer/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/USGS-R/streamMetabolizer/issues/156/comments","events_url":"https://api.github.com/repos/USGS-R/streamMetabolizer/issues/156/events","html_url":"https://github.com/USGS-R/streamMetabolizer/issues/156","id":138233876,"number":156,"title":"hierarchy - metab_bayes needs to accept discharge","user":{"login":"aappling-usgs","id":12039957,"avatar_url":"https://avatars.githubusercontent.com/u/12039957?v=3","gravatar_id":"","url":"https://api.github.com/users/aappling-usgs","html_url":"https://github.com/aappling-usgs","followers_url":"https://api.github.com/users/aappling-usgs/followers","following_url":"https://api.github.com/users/aappling-usgs/following{/other_user}","gists_url":"https://api.github.com/users/aappling-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/aappling-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aappling-usgs/subscriptions","organizations_url":"https://api.github.com/users/aappling-usgs/orgs","repos_url":"https://api.github.com/users/aappling-usgs/repos","events_url":"https://api.github.com/users/aappling-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/aappling-usgs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/USGS-R/streamMetabolizer/labels/ready","name":"ready","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-03T16:51:07Z","updated_at":"2016-03-24T00:28:01Z","closed_at":"2016-03-24T00:28:01Z","body":"to pool K600 values, we need daily mean values of discharge for `pool_K600=='linear'`. we need daily bin positions for `pool_K600='binned'`. \n\ndischarge could possibly be input as daily values (in `data_daily`), but the most flexible option will be to include discharge in `data` and to do the summarizing and binning within `metab_bayes`. this is especially important if the user is experimenting with time windows or doesn't know how to compute daily discharge using the same time windows as the metabolism model.\n\n- [x] make discharge an optional input to `data`\n- [x] implement check that discharge is given when needed, omitted otherwise\n- [x] for `pool_K600='linear'`, take log of Q and include in `data_list`\n- [x] for `pool_K600='binned'`, take bin of Q (logged if it matters) and include in `data_list`\n- [x] for `pool_K600='binned'`, give user options for setting number &/| breaks of the bins\n- [x] consider making discharge an optional input to `data_daily` as well. if so, implement check that it's only supplied in `data` or `data_daily`, not both"}}