-
Notifications
You must be signed in to change notification settings - Fork 53
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
BMI for Standalone Reservoirs #611
BMI for Standalone Reservoirs #611
Conversation
Merge branch 'reservoir_bmi' of https://github.com/shorvath-noaa/t-route into reservoir_bmi
self._timeseries_discharges, # gage observation values (cms) | ||
self._timeseries_idx, # index of for current time series observation | ||
self._time_step, # routing period (sec) | ||
self._time, # model time (sec) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As current_time advances by routing_period each time the RFC Fortran gets called, self._time in L180 needs to be modified by self._time + self._time_step to compute the same outflow list as from Fortran.
----- | ||
''' | ||
if use_RFC and current_time<=rfc_forecast_persist_seconds: | ||
if current_time >= update_time: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be the same as the Fortran version, we need to add one more condition at L232: "and timeseries_idx < total_counts:", which subsequently requires to add total_counts as an additional input argument.
Creates access to t-route's reservoir modules through standard BMI functions. This takes all input via BMI (rather than by reading from files) with the exception of a config file. Designed to operate in individual reservoir. All reservoirs are initialized as Level Pool, then DA is handled accordingly for Persistence or RFC reservoirs. Reservoir inflow, outflow, and water surface elevation are available as output variables.
Additions
Removals
Changes
Testing
Screenshots
Notes
Todos
Checklist
Testing checklist
Target Environment support
Accessibility
Other