Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: filter DC lines out of AC transmission network processing within HIFLD construction #237

Merged
merged 5 commits into from
Nov 2, 2021

Conversation

danielolsen
Copy link
Contributor

Pull Request doc

Purpose

Partial fulfilment of #233: this addresses the HVDC transmission lines within the HIFLD dataset, but does not yet address the B2Bs, which will require a different method of splitting substations into sub-substations for each interconnection.

What the code is doing

In const.py, ratings are added for DC lines with known capacities.

In transmission.py:

Testing

Tested manually.

Usage Example/Visuals

>>> from prereise.gather.griddata.hifld.data_process.transmission import build_transmission
>>> branch, substations, dc_lines = build_transmission()
dropping 6892 substations of 70857 total due to LINES parameter equal to 0
filter substations based on lines
---------------------------------
assigning substations to lines' endpoints by mapping their rounded (3 digits) coordinates
dropping 3314 lines having same endpoints coordinates after rounding
finding closest substation to unmapped lines' endpoint(s)
100%|███████████████████████████████████| 2624/2624 [00:00<00:00, 19820.94it/s]
dropping 0 lines due to island size filtering
dropping 0 substations due to island size filtering
Reading cached minimum spanning tree
2948 line voltages can't be found via neighbor consensus
No more missing voltages remain after neighbor minimum
>>> branch.columns
Index(['TYPE', 'STATUS', 'NAICS_CODE', 'NAICS_DESC', 'SOURCE', 'SOURCEDATE',
       'VAL_METHOD', 'VAL_DATE', 'OWNER', 'VOLTAGE', 'VOLT_CLASS', 'INFERRED',
       'SUB_1', 'SUB_2', 'COORDINATES', 'SUB_1_ID', 'SUB_2_ID', 'type',
       'length', 'from_bus_id', 'to_bus_id', 'x', 'rateA'],
      dtype='object')
>>> dc_lines.columns
Index(['TYPE', 'STATUS', 'NAICS_CODE', 'NAICS_DESC', 'SOURCE', 'SOURCEDATE',
       'VAL_METHOD', 'VAL_DATE', 'OWNER', 'VOLTAGE', 'VOLT_CLASS', 'INFERRED',
       'SUB_1', 'SUB_2', 'COORDINATES', 'SUB_1_ID', 'SUB_2_ID', 'Pmax',
       'Pmin'],
      dtype='object')
>>> dc_lines["Pmax"]
200823    3100
308464    2400
310053     400
311958       5
157627     330
157629     660
158515    2000
108354     500
113313     660
131914    2000
Name: Pmax, dtype: int64

Branch entries get impedance (x) and rating, DC lines get Pmax and Pmin.

Time estimate

15 minutes.

@danielolsen danielolsen added the hifld Related to ingestion of the HIFLD data label Nov 2, 2021
@danielolsen danielolsen self-assigned this Nov 2, 2021
Copy link
Collaborator

@BainanXia BainanXia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go. Thanks!

@danielolsen danielolsen merged commit b7698e0 into hifld Nov 2, 2021
@danielolsen danielolsen deleted the daniel/hifld_dclines branch November 2, 2021 17:21
danielolsen added a commit that referenced this pull request Dec 8, 2021
feat: filter DC lines out of AC transmission network processing within HIFLD construction
danielolsen added a commit that referenced this pull request Jan 5, 2022
feat: filter DC lines out of AC transmission network processing within HIFLD construction
danielolsen added a commit that referenced this pull request Jan 8, 2022
feat: filter DC lines out of AC transmission network processing within HIFLD construction
danielolsen added a commit that referenced this pull request Jan 31, 2022
feat: filter DC lines out of AC transmission network processing within HIFLD construction
danielolsen added a commit that referenced this pull request Feb 25, 2022
feat: filter DC lines out of AC transmission network processing within HIFLD construction
danielolsen added a commit that referenced this pull request Mar 15, 2022
feat: filter DC lines out of AC transmission network processing within HIFLD construction
danielolsen added a commit that referenced this pull request Apr 1, 2022
feat: filter DC lines out of AC transmission network processing within HIFLD construction
danielolsen added a commit that referenced this pull request Apr 5, 2022
feat: filter DC lines out of AC transmission network processing within HIFLD construction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hifld Related to ingestion of the HIFLD data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants