Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting DO values for predict_DO #415

Open
aaroncpelly opened this issue Apr 29, 2022 · 0 comments
Open

Starting DO values for predict_DO #415

aaroncpelly opened this issue Apr 29, 2022 · 0 comments

Comments

@aaroncpelly
Copy link

Hi Alison,

If I understand correctly, both predict_DO and metab_sim with mm_name("sim") use the first observed DO value at the start of each day, then use the model to predict DO from that point on. Is there a way to modify this behavior? I'd like to modify the function so it still begins with the first DO observation on the first day, but on each successive day it ignores observed DO and instead begins with the predicted DO value at the end of the previous day. In other words, I'd like predicted DO for multiple days to be continuously predicted, rather than returning to observed DO at the start of each day. I've tried poking around through code in these and related functions, but haven't been able to figure out where this is controlled.

More details about why I'm doing this: I'm working with a river dominated by macrophytes and I have estimates of how metabolism would change if the plants were intensively harvested. From these estimates, I've reduced GPP and ER in the parameters extracted from the metabolism model. This gives me two sets of parameters: one for current conditions and one that simulates reduced metabolism due to reduced plant abundance. I'd like to plot DO predictions for each of these scenarios, which will give me an estimate of how DO might change under the management scenario. I'm able to predict DO for the metabolism model with unmodified parameters and the values I get are quite close to observed DO. When I predict DO for the reduced parameters, at the end of a given day during the baseflow period, predicted DO is ~ 1 mg/L higher than observed DO. However, at the next time step, DO drops back down to the observed value. I'd like to modify the code so predicted DO at the first timestep begins with predicted DO at the final timestep the previous day.

Is what I'm trying to do reasonable? I assume the reason the predict_DO function uses the observed value at the start of the day is because the further the predictions are from that point, the less reliable they are.

Graphically, here's my issue. Predicted DO based on parameters from my metabolism model:
image

Predicted DO based on reduced GPP and ER parameters: Predicted DO at the end of each day is ~6 mg/L, but jumps to ~4.5 mg/L at the next time step, which was the observed value. I'd like to find a way to keep the predictions continuous.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant