-
Notifications
You must be signed in to change notification settings - Fork 11
egrid_filter.py
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 fromeGRID
. The second set is the remainder of the original dataframe, which is subsequently filtered based onlist_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:
- Calls
egrid_energy.list_egrid_facilities_with_positive_generation()
- Calls
list_egrid_facilities_in_efficiency_range(min_efficiency, max_efficiency)
- Calls
list_FRS_ids_filtered_for_NAICS()
Data:
-
egrid_facilities_selected_on_generation
is pulled fromegrid_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 fromegrid_emissions_and_waste_by_facility.py
Dependencies:
- warnings
- pandas
- electricitylci
List of modules
__init__.py
aggregation_selector.py
ampd_plant_emissions.py
bulk_eia_data.py
cems_data.py
coal_upstream.py
combinator.py
consumption_mix.py
distribution.py
dqi.py
egrid_emissions_and_waste_by_facility.py
egrid_energy.py
egrid_facilities.py
egrid_filter.py
egrid_flowbyfacilty.py
egrid_FRS_matches.py
egrid_subregion_data_writer.py
eia860_facilities.py
eia923_generation.py
eia_io_trading.py
eia_trans_dist_grid_loss.py
elementaryflows.py
emissions_other_sources.py
generation.py
generation_mix.py
geothermal.py
globals.py
hydro_upstream.py
import_impacts.py
main.py
model_config.py
natural_gas_upstream.py
nuclear_upstream.py
olca_jsonld_writer.py
petroleum_upstream.py
PhysicalQuantities.py
plant_water_use.py
power_plant_construction.py
process_dictionary_writer.py
process_exchange_aggregator_uncertainty.py
solar_thermal_upstream.py
solar_upstream.py
technosphereflows.py
upstream_dict.py
utils.py
wind_upstream.py