Research database: what the simulator uses

Source: the Research Library catalog, ResearchLibrary/markdown/research-table-catalog.md (read 2026-11-17, 97 tables and views in research). That catalog is generated by scripts/table-catalog.sh from scripts/table-catalog-notes.json; any table added for the simulator should get an entry there so Ask a Question knows about it.

Conventions to keep in mind:

Bighorn Lake / Yellowtail Dam (core of the mass balance)

Need Table(s)
Stage-storage bhr_capacity (acre-feet by elevation), bhr_afterbay_capacity
Pool elevation bhr_fb_por, bhr_fb_por_avg, bhr_fb_2010_avg, hourly_fb
Inflow bhr_in_por, bhr_in_por_avg, bhr_in30avg (30-yr average, current + next WY), hourly_in
Gains bhr_gain_por, bhr_gain_por_avg. Reclamation's gain also takes out the Heart Mountain Canal draw from Buffalo Bill, so inflow − gain runs 400–900 cfs above Boysen + Buffalo Bill river releases May–Oct
Boysen and Buffalo Bill releases boyr_qd_por (Boysen), bbr_qriv_por (Buffalo Bill river release)
Total / river release bhr_qd_por, bhr_qrd_por (+ _por_avg, _2010_avg), hourly_q, hourly_qr
Release path bhr_qed_por (turbines), bhr_qrod_por (river outlet, coldest), bhr_qsd_por (spillway, warmest), bhr_qj_por (canal)
Power bhr_turbine_por (MW per unit), bhr_vt_por (total daily energy generation, MWh)
Afterbay bhr_ab_por, hourly_fb_afterbay, bhsx_gd_por, bhsx_hh_por, shift_change
Reclamation plan op_plan_forecasts (3-month min / median / max: inflow, release, content, elevation)

Upstream

Need Table(s)
Boysen, Buffalo Bill, Bull Lake boyr_fb_por, bbr_fb_por, blr_fb_por (elevation only)
Bighorn at Kane, Shoshone near Lovell usgs_kane_por, usgs_lovell_por (daily); hourly_kawy, hourly_srly (current day)
Snowpack bhr_se_por, bhr_se_pct_por, bhr_nrcs_wteq (by SNOTEL station), bhr_swe_30y_avg, bhr_swe_30y_mean, bhr_swe_por_avg

Downstream and biology

Need Table(s)
River gauges hourly_stx_por (St. Xavier temp, stage, Q), usgs, usgs_site
Tailwater quality bhwq_* (DO, PSAT, temperature at Afterbay and river left), hourly_bhwq_por, wq_river, wq_labs, wq_river_norms
Lake quality wq_lake, wq_lake_norms (ignore wq_lake_bad)
Fish fwp_survey, spawn (redd counts with temp and flow), ri_fish
Invertebrates bmi_*, bmi_mmi_raw_core_sites_fall, hatch_*
Sites and lookups ri_site (river miles, coordinates), day_number (water-year day)
Weather weather (Fort Smith, current conditions only)

TODO: data gaps

Proposed new tables (draft, prefix sim_ for app-owned tables)

Table Holds
boyr_capacity, bbr_capacity Stage-storage for upstream reservoirs, same shape as bhr_capacity
sim_operating_criteria Rule curves and limits by water-year day: flood-control elevation, min / max release, ramp rates
sim_bio_thresholds Named ecological thresholds (parameter, value, unit, season, source)

Dropped on 2026-11-24 (scenarios are not saved): sim_scenario, sim_scenario_input, sim_run_daily.