-
Notifications
You must be signed in to change notification settings - Fork 11
egrid_energy.py
Description: This module performs calculations on eGrid data from egrid_flowbyfacility.py
to calculate efficiency of each facility. Calculations and data input will execute immediately upon import.
- The dataframe generated from
egrid_flowbyfacility.py
is modified to calculate the energy efficiency of each facility.Efficiency
is calculated as the amount of electricity produced divided by the amount of heat required as an input. The original dataframe's configuration has facility input/output streams as rows and flow amounts and units as columns. A pivot method modifies this such that a dataframe is created with discrete facility IDs as rows, and heat input (MJ), electricity output (MJ) and efficiency (%) as columns. The values thus indicate the flow volumes.
Functions:
-
list_egrid_facilities_with_positive_generation
- Returns a list of all facilities with an electricity product greater than zero, usingegrid_net_generation
which pulls from egrid_flowbyfacility. -
list_egrid_facilities_in_efficiency_range
- Returns a list of all facilities operating with an efficiency that lies between the two input parameters.
Data:
-
egrid_energy.py
callsegrid_flowbyfacility
, a function from egrid_flowbyfacilty.py that returns a dataframe sorted byFacilityID
and various flow types.
Dependencies:
- numpy
- pandas
- os.path --> join
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