Skip to content

Commit 0c43683

Browse files
committed
refactor: read line assumptions from CSV file instead of const.py
1 parent b4a67e8 commit 0c43683

3 files changed

Lines changed: 92 additions & 91 deletions

File tree

prereise/gather/griddata/hifld/const.py

Lines changed: 0 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -710,97 +710,6 @@
710710
312844: 138,
711711
}
712712

713-
line_design_assumptions = {
714-
# branch index: (voltage, circuits, bundle count)
715-
101536: (161, 2, 4), # TVA Cumberland (between substations)
716-
103726: (161, 2, 4), # TVA Cumberland (plant to substation)
717-
110220: (115, 1, 2), # Riverside Generating Station
718-
112166: (230, 1, 2), # Waterford 3 Nuclear Generating Station
719-
116493: (230, 1, 2), # Herbert A. Wagner Generating Station
720-
132671: (230, 1, 3), # Florida Power & Light St. Lucie
721-
130105: (161, 1, 3), # TVA Cumberland (downstream)
722-
132804: (230, 1, 2), # Waterford 3 Nuclear Generating Station
723-
139216: (230, 4, 3), # Catawba Nuclear Station
724-
140651: (230, 1, 3), # Florida Power & Light St. Lucie
725-
144276: (230, 4, 3), # Turkey Point Nuclear Generating Station
726-
147054: (115, 1, 2), # RE Ginna Nuclear Power Plant
727-
158263: (100, 1, 4), # G. G. Allen Steam Station
728-
160723: (230, 1, 3), # Florida Power & Light St. Lucie
729-
203381: (230, 1, 2), # Midpoint to Boise Bench
730-
203382: (230, 1, 2), # Midpoint to Boise Bench
731-
203383: (230, 1, 2), # Midpoint to Boise Bench
732-
300023: (138, 1, 2), # Southeast of Houston, TX
733-
300029: (69, 2, 1), # Ormat Brawley geothermal
734-
300151: (138, 2, 2), # South of Lake Arlington, TX
735-
300181: (138, 2, 1), # Tomball to Pinehurst, TX
736-
300342: (138, 1, 2), # W.A. Parish Generating Station
737-
300872: (138, 1, 2), # North of Jersey City, TX
738-
301320: (138, 2, 2), # Collin/Frisco substation connection
739-
301847: (115, 1, 2), # Coso Power Station
740-
302122: (69, 1, 2), # Copperas Cove, TX
741-
302300: (138, 1, 2), # Northwest of Houston
742-
302592: (138, 1, 2), # Northwest of San Antonio
743-
302842: (138, 2, 1), # General Motors, Arlington, TX
744-
303094: (138, 2, 2), # W.A. Parish Generating Station
745-
303467: (138, 1, 2), # Southeastern Houston
746-
303493: (138, 1, 2), # Northwest of San Antonio, TX
747-
303557: (138, 2, 2), # West Levee substations connection (Dallas)
748-
303566: (138, 2, 1), # General Motors, Arlington, TX
749-
304048: (69, 2, 1), # Southeast of San Antonio
750-
304142: (138, 1, 2), # Western Fort Worth
751-
304145: (138, 1, 2), # Edinburg, TX
752-
304613: (138, 4, 2), # San Benito substation connection (South Texas)
753-
304779: (69, 1, 2), # Handley Power Plant, Lake Arlington, TX
754-
304908: (69, 2, 1), # Heber geothermal
755-
305018: (138, 2, 2), # TH Wharton Generating Station
756-
305273: (138, 1, 2), # West of Houston, TX
757-
305277: (69, 2, 1), # Mineola to Lindale, TX
758-
305464: (230, 2, 2), # The Geysers
759-
305635: (138, 1, 2), # Dallas, TX
760-
305640: (138, 1, 2), # Lewisville, TX
761-
305694: (138, 1, 2), # Laredo, TX
762-
305806: (138, 1, 2), # Southeast of Austin, TX
763-
305912: (138, 1, 2), # Calaveras Power Station to San Antonio
764-
305990: (100, 2, 1), # southeast Salton Sea geothermal plants (several)
765-
306350: (69, 2, 1), # Elm Mott, TX
766-
306360: (138, 2, 1), # Santa Clara, TX
767-
306568: (69, 2, 1), # Geothermal in the Brawley region
768-
306879: (138, 2, 2), # Northeast Dallas metro, TX
769-
306949: (230, 2, 2), # The Geysers
770-
307569: (230, 2, 2), # The Geysers
771-
308233: (138, 1, 2), # West of Houston, TX
772-
308278: (138, 1, 2), # North of Jersey City, TX
773-
308281: (138, 1, 2), # South of Austin, TX
774-
308363: (138, 1, 2), # North of Corpus Christi, TX
775-
308434: (230, 2, 2), # The Geysers
776-
308359: (69, 1, 2), # Comstock TX, to Sheffield, TX
777-
308529: (345, 1, 3), # East of Austin, TX
778-
308740: (69, 1, 2), # Southeast of Austin, TX
779-
308885: (69, 2, 1), # Geothermal in the Brawley region
780-
309268: (69, 2, 1), # Ormat Brawley geothermal
781-
309441: (69, 2, 2), # substation connection near Lake Creek Reservoir, outside Waco
782-
309745: (138, 1, 2), # Killeen, TX
783-
309802: (138, 1, 2), # McAllen, TX
784-
309901: (138, 1, 2), # East of Austin, TX
785-
309966: (138, 2, 2), # Garfield to Pilot Knob (south of Austin)
786-
310247: (138, 1, 2), # Corpus Christi to Victoria, TX
787-
311306: (69, 2, 2), # substation connection near Lake Creek Reservoir, outside Waco
788-
311321: (138, 1, 2), # Southwest of Houston, TX
789-
311935: (138, 1, 2), # Northwest of San Antonio, TX
790-
312199: (69, 2, 1), # Geothermal in the Brawley region
791-
312241: (100, 2, 1), # southeast Salton Sea geothermal plants (several)
792-
312327: (138, 1, 2), # South of Austin, TX
793-
312375: (138, 1, 2), # West of Houston, TX
794-
312549: (69, 2, 1), # Victoria, TX
795-
312694: (138, 1, 2), # Edinburg, TX
796-
312856: (138, 1, 2), # North of Austin, TX
797-
312996: (69, 2, 1), # Copperas Cove, TX
798-
313183: (69, 2, 1), # Athens, TX
799-
313473: (69, 2, 2), # Holtville geothermal?
800-
313474: (69, 2, 2), # Holtville geothermal?
801-
315402: (69, 2, 1), # Unknown MST edge
802-
}
803-
804713
b2b_ratings = { # MW
805714
"BLACKWATER TIE": 200, # a.k.a. 'Clovis'/'Roosevelt County' (Eastern/Western)
806715
"EDDY AC-DC-AC TIE": 200, # a.k.a. 'Artesia' (Eastern/Western)
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
branch_id,kV,circuits,conductors,notes
2+
101536,161,2,4, TVA Cumberland between substations
3+
103726,161,2,4, TVA Cumberland plant to substation
4+
110220,115,1,2, Riverside Generating Station
5+
112166,230,1,2, Waterford 3 Nuclear Generating Station
6+
116493,230,1,2, Herbert A. Wagner Generating Station
7+
132671,230,1,3, Florida Power & Light St. Lucie
8+
130105,161,1,3, TVA Cumberland downstream
9+
132804,230,1,2, Waterford 3 Nuclear Generating Station
10+
139216,230,4,3, Catawba Nuclear Station
11+
140651,230,1,3, Florida Power & Light St. Lucie
12+
144276,230,4,3, Turkey Point Nuclear Generating Station
13+
147054,115,1,2, RE Ginna Nuclear Power Plant
14+
158263,100,1,4, G. G. Allen Steam Station
15+
160723,230,1,3, Florida Power & Light St. Lucie
16+
203381,230,1,2, Midpoint to Boise Bench
17+
203382,230,1,2, Midpoint to Boise Bench
18+
203383,230,1,2, Midpoint to Boise Bench
19+
300023,138,1,2," Southeast of Houston, TX"
20+
300029,69,2,1, Ormat Brawley geothermal
21+
300151,138,2,2, South of Lake Arlington (TX)
22+
300181,138,2,1, Tomball to Pinehurst (TX)
23+
300342,138,1,2, W.A. Parish Generating Station
24+
300872,138,1,2, North of Jersey City (TX)
25+
301320,138,2,2, Collin/Frisco substation connection
26+
301847,115,1,2, Coso Power Station
27+
302122,69,1,2, Copperas Cove (TX)
28+
302300,138,1,2, Northwest of Houston
29+
302592,138,1,2, Northwest of San Antonio
30+
302842,138,2,1, General Motors (Arlington TX)
31+
303094,138,2,2, W.A. Parish Generating Station
32+
303467,138,1,2, Southeastern Houston
33+
303493,138,1,2, Northwest of San Antonio (TX)
34+
303557,138,2,2, West Levee substations connection Dallas
35+
303566,138,2,1, General Motors (Arlington TX)
36+
304048,69,2,1, Southeast of San Antonio
37+
304142,138,1,2, Western Fort Worth
38+
304145,138,1,2, Edinburg (TX)
39+
304613,138,4,2, San Benito substation connection South Texas
40+
304779,69,1,2, Handley Power Plant (Lake Arlington TX)
41+
304908,69,2,1, Heber geothermal
42+
305018,138,2,2, TH Wharton Generating Station
43+
305273,138,1,2, West of Houston (TX)
44+
305277,69,2,1, Mineola to Lindale (TX)
45+
305464,230,2,2, The Geysers
46+
305635,138,1,2, Dallas (TX)
47+
305640,138,1,2, Lewisville (TX)
48+
305694,138,1,2, Laredo (TX)
49+
305806,138,1,2, Southeast of Austin (TX)
50+
305912,138,1,2, Calaveras Power Station to San Antonio
51+
305990,100,2,1, southeast Salton Sea geothermal plants several
52+
306350,69,2,1, Elm Mott (TX)
53+
306360,138,2,1, Santa Clara (TX)
54+
306568,69,2,1, Geothermal in the Brawley region
55+
306879,138,2,2, Northeast Dallas metro (TX)
56+
306949,230,2,2, The Geysers
57+
307569,230,2,2, The Geysers
58+
308233,138,1,2, West of Houston (TX)
59+
308278,138,1,2, North of Jersey City (TX)
60+
308281,138,1,2, South of Austin (TX)
61+
308363,138,1,2, North of Corpus Christi (TX)
62+
308434,230,2,2, The Geysers
63+
308359,69,1,2, Comstock to Sheffield (TX)
64+
308529,345,1,3, East of Austin (TX)
65+
308740,69,1,2, Southeast of Austin (TX)
66+
308885,69,2,1, Geothermal in the Brawley region
67+
309268,69,2,1, Ormat Brawley geothermal
68+
309441,69,2,2, substation connection near Lake Creek Reservoir outside Waco (TX)
69+
309745,138,1,2, Killeen (TX)
70+
309802,138,1,2, McAllen (TX)
71+
309901,138,1,2, East of Austin (TX)
72+
309966,138,2,2, Garfield to Pilot Knob south of Austin
73+
310247,138,1,2, Corpus Christi to Victoria (TX)
74+
311306,69,2,2, substation connection near Lake Creek Reservoir outside Waco (TX)
75+
311321,138,1,2, Southwest of Houston (TX)
76+
311935,138,1,2, Northwest of San Antonio (TX)
77+
312199,69,2,1, Geothermal in the Brawley region
78+
312241,100,2,1, southeast Salton Sea geothermal plants several
79+
312327,138,1,2, South of Austin (TX)
80+
312375,138,1,2, West of Houston (TX)
81+
312549,69,2,1, Victoria (TX)
82+
312694,138,1,2, Edinburg (TX)
83+
312856,138,1,2, North of Austin (TX)
84+
312996,69,2,1, Copperas Cove (TX)
85+
313183,69,2,1, Athens (TX)
86+
313473,69,2,2, Holtville geothermal?
87+
313474,69,2,2, Holtville geothermal?
88+
315402,69,2,1, Unknown MST edge

prereise/gather/griddata/hifld/data_process/transmission.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from prereise.gather.griddata.hifld.data_access.load import (
1313
get_hifld_electric_power_transmission_lines,
1414
get_hifld_electric_substations,
15+
get_line_assumptions,
1516
get_zone,
1617
)
1718
from prereise.gather.griddata.hifld.data_process.topology import (
@@ -863,6 +864,9 @@ def build_transmission(method="line2sub", **kwargs):
863864
hifld_lines.set_index("ID", inplace=True)
864865
hifld_data_dir = os.path.join(os.path.dirname(__file__), "..", "data")
865866
hifld_zones = get_zone(os.path.join(hifld_data_dir, "zone.csv")) # noqa: F841
867+
line_design_assumptions = get_line_assumptions(
868+
os.path.join(hifld_data_dir, "line_assumptions.csv")
869+
)
866870

867871
# Filter substations based on their `LINES` attribute, check for location dupes
868872
hifld_substations.loc[const.substations_lines_filter_override, "LINES"] = None

0 commit comments

Comments
 (0)