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

plan interface for the suite of expected models #56

Closed aappling-usgs closed 9 years ago

aappling-usgs commented 9 years ago

(This issue will be modified as I continue to think about it)

Desired models:

Options shared across MLE, Bayesian models

MLE models: metab_mle

Bayesian models: metab_bayes

Questions

lawinslow commented 9 years ago

Is it OK to have overlapping days when modeling consecutive days?

I think it's ok, but you'll have to keep in mind that overlap could add to autocorrelation in the estimate timeseries. The estimates can not be considered independent. (they will probably be autocorrelated anyway, but overlap adds a new dimension). So you'd have to keep it in mind in subsequent analysis (for example, what is average GPP when you have overlap? What does the math do to the estimate? I think it would increase the weight from the overlapping part of the signal)

aappling-usgs commented 9 years ago

from group discussion at lunch, we've decided that from overlapping days we can expect:

robohall commented 9 years ago

The use of night day night extends back to Odum. The idea was to get night on both sides of the day to nail the ER term. It would be true for gas exchange too. But this was before extensive continuous data. To do one day would require staring at complete darkness (will vary with time of year), just before dawn to get GPP and then go as far as possible into the next night to get ER.

I think we should base how we solve for ER based on data and not a hunch one way or the other. The thing to do would be to be to generate a month long time series with varying and known ER and then try both approaches and see which gives back the best ER. The key is how to generate the fake data? We do not want ER varying randomly. Maybe allow it to wander. Or put a shock in (say a flood) lowering ER and then it recovers.

One thing about ER is that it particularly tricky to measure. Unlike GPP which is a relative change in O2, ER is absolute difference. So from an estimation perspective it is probably best to use both nights to get more data. Yes it adds autocorrelation, but if ER is not biologically auto correlated, then we have big problems. The one way that we could make a mistake with using both nights is in high GPP streams where the ER on any one night is a function of GPP the day before, so that daily variation in ER responses to the daily variation in GPP. Furthering the problem is that ER will change through the night as the stream temp changes or as the yummy carbon from the day's photosynthesis gets eaten up. And ER during the day might be 2-10 time higher than the night, but there is not much we can do about that.

Hmm, that might be a way to vary ER with fake data, vary GPP and make ER a fraction of GPP above some base, as did Hall and Beaulieu.

Bob

On Jul 20, 2015, at 1:43 PM, Alison Appling notifications@github.com<mailto:notifications@github.com> wrote:

from group discussion at lunch, we've decided that from overlapping days we can expect:

Reply to this email directly or view it on GitHubhttps://github.com/USGS-R/streamMetabolizer/issues/56#issuecomment-123003728.

aappling-usgs commented 9 years ago

That's interesting that the whole point of the extended day is to compensate for weak ER information, i.e., to intentionally bias the estimates toward those that fit the nighttime data best. For multi-day data, I wonder if hierarchical models that constrain day-to-day variation in ER (or even just the mean ER) would basically do the same job.

Agreed, it'd be cool to explore simulated ER and see which modeling approach extracts it best. Non-trivial, though, so it'll be a while before I might be able to take that on. I'll add a new issue to remind us that the opportunity is there for the taking when we have time.

aappling-usgs commented 9 years ago

this is coming together, at least for current needs.