Added in new sliders for recharge (top menu bar), irrigation efficiency, and water use efficiency (both in the same section as the opacity sliders). I also added more information to the question-mark tooltip: yield, revenue, and total storage. The use of these features is isolated to the new agrosystem template. These features can be toggled if the line below is added to a template's domain.json. If a template doesn't contain the line below, or it does not contain the name of a specific feature, the feature(s) will not be rendered.
"features": ["waterUseEfficiency", "irrigationEfficiency", "recharge", "totalStorage", "yield", "revenue"],
recharge, irrigationEfficiency, and waterUseEfficiency will also need default values to be set in the domain.json if the user is planning to use their respective sliders in the GUI. (I couldn't figure out how to give the sliders default values without them being set in this section of the config, but if this is an easy fix, let me know).
Calculating yield required modifying api.py to add a pushWellForcing function that will publish a total pumping value.
Calculating totalStorage required modifying the existing pushSaturation function in api.py to sum up the total storage in the domain and publish its value.
If it's easier to go over these changes in a short Zoom meeting, let me know, but the above should summarize all I've added. I'll need to deploy these changes to sandtank.hydroframe.org before the first week of August.
Summary of changes:
Added in new sliders for recharge (top menu bar), irrigation efficiency, and water use efficiency (both in the same section as the opacity sliders). I also added more information to the question-mark tooltip: yield, revenue, and total storage. The use of these features is isolated to the new
agrosystem
template. These features can be toggled if the line below is added to a template'sdomain.json
. If a template doesn't contain the line below, or it does not contain the name of a specific feature, the feature(s) will not be rendered."features": ["waterUseEfficiency", "irrigationEfficiency", "recharge", "totalStorage", "yield", "revenue"],
recharge
,irrigationEfficiency
, andwaterUseEfficiency
will also need default values to be set in thedomain.json
if the user is planning to use their respective sliders in the GUI. (I couldn't figure out how to give the sliders default values without them being set in this section of the config, but if this is an easy fix, let me know).Calculating
yield
required modifyingapi.py
to add apushWellForcing
function that will publish a total pumping value.Calculating
totalStorage
required modifying the existingpushSaturation
function inapi.py
to sum up the total storage in the domain and publish its value.If it's easier to go over these changes in a short Zoom meeting, let me know, but the above should summarize all I've added. I'll need to deploy these changes to
sandtank.hydroframe.org
before the first week of August.