NatLabRockies / NatLabRockies/SAM
Industrial Rates not Shown for Commercial URDB Downloads
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 486
- Forks
- 219
- Avg merge
- 10h 10m
- Merged PRs (30d)
- 2
Description
For a Commercial case, the OpenEI Utility Rate Database window does not list rates classified in the URDB as Sector = Industrial.
In SAM, it is appropriate to use the Commercial financial model for a behind-the-meter system for an industrial building or facility.
For example, the Madison Gas and Electric Cg-2 and Cg-4 rates are both described as "Commercial and Industrial" rates, but for the Sector field, the URDB assigns "Industrial" to Cg-2 and "Commercial" to Cg-4.
Cg-2: https://apps.openei.org/IURDB/rate/view/648732db415f0823850590ba
Cg-4: https://apps.openei.org/IURDB/rate/view/648732db415f0823850590ba
The result is that in SAM, the Cg-2 rate is not listed for a commercial case:
A workaround is to choose All to show the Cg-2 rate:
To Reproduce
- Create a Commercial case.
- On the Electricity Rates page, click Search for rates.
- Filter the list of utilities for "MGE".
- Note the list of available rates does not include Cg-2.
Operating System and Version
- SAM 2026.7.3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Commercial case's Electricity Rates page and the Search for rates flow, reproducing the MGE filter and comparing the results with the All option. Trace how the case type is matched to the URDB Sector field; done means the Industrial-sector Cg-2 rate appears for a Commercial case without selecting All.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100