postreise.analyze.transmission package¶
Subpackages¶
Submodules¶
postreise.analyze.transmission.congestion module¶
- postreise.analyze.transmission.congestion.calculate_congestion_surplus(scenario)[source]¶
Calculates hourly congestion surplus.
- Parameters:
scenario (powersimdata.scenario.scenario.Scenario) – scenario instance.
- Returns:
(pandas.DataFrame) – congestion surplus.
postreise.analyze.transmission.utilization module¶
- postreise.analyze.transmission.utilization.generate_cong_stats(pf, branch, util=None, threshold=None)[source]¶
Generate congestion/utilization statistics from powerflow data (WECC congestion reports’ analyses are the inspiration for these analyses and are the source of the default parameters). The report is available here.
- Parameters:
pf (pandas.DataFrame) – power flow data frame
branch (pandas.DataFrame) – branch data frame
util (list) – utilization (float) flag level 1, 2, 3. Default values are values used by WECC: 0.75, 0.9, 99.
threshold (list) – threshold for proportion time, for flag level 1, 2, 3. Default values are values used by WECC: 0.5, 0.2, 0.05.
- Returns:
(pandas.DataFrame) – congestion statistics. ‘per_util1’, ‘per_util2’, ‘per_util3’, ‘u1flag’, ‘u2flag’, ‘u3flag’, ‘sumflag’, ‘bind’, ‘risk’.
- postreise.analyze.transmission.utilization.get_utilization(branch, pf, median=False)[source]¶
Generate utilization table to be used as input for congestion analyses.
- Parameters:
branch (pandas.DataFrame) – branch data frame.
pf (pandas.DataFrame) – power flow data frame.
median (boolean) – take medians of pf for utilization calculation
- Returns:
(pandas.DataFrame) – power flow data frame (per-unit).