Skip to main content

Reserve Margin Chart

The Reserve Margin Chart plots installed capacity, daily outage, and maximum demand as a stacked area chart, showing the computed net reserve margin per day across a loaded time range. It reads a demand CSV and an event/outage CSV, fetches installed capacity from the SysWESM database, and updates the chart, KPI summary, and readout table automatically when inputs change.

Configure the three data sources before the chart can populate: installed capacity (from the database), a demand CSV, and an event/outage CSV.

1

Installed Capacity​

Installed capacity is read automatically from the SysWESM database at DirDB (resolved via the working environment's Defaults.csv), summing all units where Supply = 1 and Status = 1 in the WESM pool.

An optional Installed Capacity number field overrides the database-derived value when filled; click × to clear the override. The override value persists across sessions.

When an override value is in effect, an override active label appears beside the Installed Capacity field as a reminder that the chart is using the entered value rather than the database total.

Data Inputs panel showing Installed Capacity field and optional override input
2

Demand File​

Select a demand CSV from the Demand dropdown, which lists .csv files from DirDem. The first option is always "Browse other location…" to open a native file picker for files outside DirDem. The dropdown shows a placeholder "Choose demand file" until a selection is made. Hovering over the dropdown shows the full path of the loaded file. Hovering the dropdown over an already-loaded file refreshes the listing from disk.

Demand dropdown open listing CSV files from DirDem
3

Outages File​

Select an event/outage CSV from the Outages dropdown. This dropdown has the same structure as the Demand dropdown: files from DirEvt, "Browse other location…" always first, placeholder "Choose event file". After both files are selected, the chart, KPI cards, and readout table populate automatically. Only days present in both the demand and outage series contribute to the chart; days present in only one source are discarded, and a warning count is shown.

Both demand and outages dropdowns filled with chart populating