Skip to content

egrid_filter.py

jgrooviest edited this page Aug 6, 2019 · 6 revisions

Description: Primarily produces a dataframe that contains emissions and waste flows for eGRID facilities. This dataframe is organized by flow type and facility ID. Emissions data is sourced from eGRID waste/emissions information and reinforced with .

  • This script compiles two dataframes and then concatenates them to form the dataframe described above. Both are derived from egrid_facilities_selected_on_generation, filtered to only contain facilities that 1) have positive generation 2) operate within desired efficiency range & 3) operate primarily with just one fuel type. The first set contains the facilities whose waste/emissions flows are pulled from eGRID. The second set is the remainder of the original dataframe, which is subsequently filtered based on list_FRS_ids_filtered_for_NAICS(), which returns only the facilities that are in the power generation sector (NAICS codes: 2211 or 5622).
  • Outputs emissions_and_waste_for_selected_egrid_facilities dataframe (78885, 10)

Functions:

Data:

  • egrid_facilities_selected_on_generation is pulled from egrid_energy.py, which generates the dataframe
  • emissions_and_wastes_by_facility contains all of the relevant emissions/waste streams matched to facilities. It is pulled from egrid_emissions_and_waste_by_facility.py

Dependencies:

  • warnings
  • pandas
  • electricitylci
Clone this wiki locally