You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, a rating curve table (hq) consists of corresponding discharge values in m³/s. It would be nice to add functionality where the lake/reservoir outflow equals the inflow. This information can be added in the rating curve table by, for example, using -1 as a flag in the hq-csv file.
In lake.hq[i].Q[:, doy], the row with discharges is used for the interpolate function. Adding a step in which all discharges equal to -1 in lake.hq[i].Q[:, doy] are replaced by inflow would yield the suggested result. Older models would not contain -1 in the rating curve table, and therefore this new functionality would be backwards compatible with older models.
Another option would be to add a check where if outflow = -1 then outflow = inflow. However, that may not work due to the interpolate function used to compute outflow which would interpolate -1 and a positive discharge in boundary cases for the storage level
I am not sure if this functionality would work for negative inflows to the lakes. Negative inflows can occur in limited cases, for example when using pits and local-inertial for river routing, right?
Additional Context
No response
The text was updated successfully, but these errors were encountered:
This is also related to the discussion in #353 as this implementation is something typically used in reservoirs and not in lakes. Would the lake module therefore benefit from this addition, or would it make things more confusing? ;)
Feature type
Adding new functionality
Improvement Description
Currently, a rating curve table (hq) consists of corresponding discharge values in m³/s. It would be nice to add functionality where the lake/reservoir outflow equals the inflow. This information can be added in the rating curve table by, for example, using
-1
as a flag in the hq-csv file.Using the example in the docs:
This would mean that, when H > 394.05, Qout = Qin for this particular lake
Implementation Description
update
takesinflow
as an argument. This could therefore be used in the calculation ofoutflow
. Consider:In
lake.hq[i].Q[:, doy]
, the row with discharges is used for the interpolate function. Adding a step in which all discharges equal to -1 inlake.hq[i].Q[:, doy]
are replaced byinflow
would yield the suggested result. Older models would not contain -1 in the rating curve table, and therefore this new functionality would be backwards compatible with older models.Another option would be to add a check where
if outflow = -1 then outflow = inflow
. However, that may not work due to the interpolate function used to computeoutflow
which would interpolate -1 and a positive discharge in boundary cases for the storage levelI am not sure if this functionality would work for negative inflows to the lakes. Negative inflows can occur in limited cases, for example when using pits and local-inertial for river routing, right?
Additional Context
No response
The text was updated successfully, but these errors were encountered: