Skip to content

natural_gas_upstream.py

jgrooviest edited this page Aug 7, 2019 · 2 revisions

Description: This module uses LCA emissions data to calculate the upstream component of natural gas power plant operation (extraction, processing, and transportation) for every plant in EIA-923.

  • Using LCA information for impacts of the upstream components of natural gas production, a dataframe is compiled that contains impact emissions for every natural gas plant in the U.S., scaled by production level.

Functions:

  • determine_compartment(df) - Searches through FlowName column for signifier of impact compartment (e.g. air, water, soil).
  • _remove_brackets(text) - The NG_LCI.csv database defines impact streams using brackets to denote compartment. This function removes that component of the label (after placing component details in a separate column).
  • generate_upstream - Contains transformation of the datasets to produce the output (ng_lci_basin_grouped)
  • Calls eia923_download_extract(year)

Data:

  • EIA-923 - The survey Form EIA-923 collects detailed electric power data -- monthly and annually -- on electricity generation, fuel consumption, fossil fuel stocks, and receipts at the power plant and prime mover level (EIA)
  • gas_supply_basin_mapping.csv - CSV with identification information for every natural gas plant in the U.S. Once imported, this dataframe is simplified to contain just the plant code and its NG_LCI_Name.
  • NG_LCI.csv - CSV file with LCA impact species determined for every natural gas basin in the U.S. Flows are separated by specific upstream process: production, gathering & boosting, processing, transmission, storage, and pipeline.

Dependencies:

  • pandas
  • electricitylci
Clone this wiki locally