m_viz: geo visualization for 4 cases: hawaii, illinois, texas, and wecc#490
m_viz: geo visualization for 4 cases: hawaii, illinois, texas, and wecc#490isatkaus wants to merge 1 commit into
Conversation
|
@lukelowry @nkoukpaizan @pelesh please review when you get a chance. |
|
I will review later, but I see you use |
|
@lukelowry yes, pyarrow in used in gridkit result wrangling (from mon.csv to parquet). but for this PR, m_viz notebook itself, only uses attach_json_ids from gridkit_utils (it's optional in the notebook, displays json component ids next to .m IDs in map hovers). technically, I could move that one function to viz_utils and remove gridkit_utils.py from this PR (a lot of helper functions that are non needed for viz). gridkit_utils is mostly for my other notebooks where I setup/run/analyze gridkit uq runs. |
Description
Adds
m_viz.ipynb, an interactive Plotly geo-visualization notebook for MATPOWER.mcase files (ACOPF or PF solutions). The notebook parses bus, generator, and branch tables into normalized pandas DataFrames, merges geographic coordinates from.gicor.AUXfiles, and produces an interactive map showing bus loads, dispatched generation (fuel-colored, sized by MW), and branch loading percentage (viridis color scale).Supported cases: Hawaii40, Illinois (ACTIVSg200), Texas (ACTIVSg2000), WECC (ACTIVSg10k).
Also adds
setup_env.mdwith environment setup instructions and input file reference for all supported cases, and supporting utility filesm_viz_utils.pyandgridkit_utils.py.Proposed changes
uq-usecase/notebooks/m_viz.ipynb— new notebook with geo visualization for all 4 TAMU synthetic casesuq-usecase/notebooks/setup_env.md— conda environment setup and input file reference for all supported casesuq-usecase/py-utils/m_viz_utils.py— MATPOWER.mparsing, colocated bus splitting, generator fan-out, geo merge, and Plotly map plottinguq-usecase/py-utils/gridkit_utils.py— optional GridKit JSON ID augmentation for hover labelsChecklist
-Wall -Wpedantic -Wconversion -Wextra.Further comments
This is a Python/notebook contribution; the C++ compile, unit test, and CHANGELOG checklist items are not applicable. The notebook is self-contained and adds visualization utilities for the
uq-usecaseuse case without modifying any existing GridKit C++ code.