Run forecast scenarios programmatically. The engine runs client-side — results are computed in your browser using the same model as the main analyzer.
Click "Run Forecast" to see results...
Pass parameters via URL hash to pre-fill and auto-run:
api.html#elev=3529.4&date=2026-03-13&swe=3364&release=1.0&end=2027-06-01
Import the forecast engine directly in your own code:
<script type="module">
import { forecast, findLowPoint, THRESHOLDS } from './forecast.js';
const results = forecast({
currentElevation: 3529.4,
currentDate: '2026-03-13',
sweApr1: 3364,
releaseMultiplier: 1.0,
forecastEndDate: '2027-06-01',
});
const low = findLowPoint(results);
console.log('Projected low:', low);
</script>
currentElevation — Lake elevation in ft (NGVD 1929). Get latest from USGS API.currentDate — YYYY-MM-DD format.sweApr1 — Basin-average April 1 Snow Water Equivalent in tenths of mm. Get from NCEI API.releaseMultiplier — Scale factor on baseline decline rates. 1.0 = current Mid-Elevation Tier (~7.48 MAF/yr).forecastEndDate — YYYY-MM-DD. Forecast projects monthly to this date.Returns JSON with monthly projections, the low point, and threshold crossings.
The forecast engine is a pure JavaScript module with zero dependencies. To use in an AI context:
GET https://waterservices.usgs.gov/nwis/dv/?format=json&sites=09379900¶meterCd=62614&period=P1Dforecast() with those inputsTHRESHOLDS