Skip to content

eia_io_trading.py

Matt Jamieson edited this page May 19, 2020 · 3 revisions

Description: This module uses data from the EIA bulk data file to determine how much electricity flows between either balancing authority areas (BAAs) or Federal Energy Regulatory Commission (FERC) regions. These electricity flows are then used to generate the consumption mix for a given region or balancing authority area.

Functions: The two key functions in this module are:

  • eia_io_trading.ba_io_trading_model - This will use the electricity trading data to evaluate the net electricity coming into all balancing authority areas and FERC regions. The result of this data is a consumption mix for each area or region, contained in a pandas dataframe. Regardless of the subregion choice, this function will return a dictionary of dataframes for the consumptiom mixes for all balancing authority areas, all FERC regions, and a US national mix.
  • eia_io_trading.olca_schema_consumption_mix - This function will convert the consumption mix dataframe generated by this module into a openLCA-schema compatible dictionary.

Data: EIA From 930 US electric system operating data, downloaded as EBA.zip.

Dependencies:

  • numpy
  • os
  • pandas
  • datetime
  • pytz
  • json
  • zipfile
  • requests
  • logging
  • electricitylci
Clone this wiki locally