goblin_lite.LCA_processing.lca_total_generator
This module contains the LCATotalGenerator class, which is responsible for generating total footprints for climate change, eutrophication, and air quality.
Module Contents
Classes
Manages the calculation of total environmental footprints (climate change, eutrophication, air quality). |
- class goblin_lite.LCA_processing.lca_total_generator.LCATotalGenerator(calibration_year, target_year, scenario_dataframe, DATABASE_PATH)[source]
Manages the calculation of total environmental footprints (climate change, eutrophication, air quality). Utilizes ClimateChangeTotal, EutrophicationTotal, and AirQualityTotal classes.
- db_reference_class
An instance of the DataFetcher class for retrieving data.
- Type:
- data_manager_class
An instance of the DataManager class for database interactions.
- Type:
- calibration_year
Base year for model calibration.
- Type:
int
- target_year
Year of analysis.
- Type:
int
- scenario_dataframe
Dataframe containing scenario-specific parameters.
- Type:
pandas.DataFrame
- DATABASE_PATH
Path to the external database, if None, default internal database used.
- Type:
str, optional
- get_eutrophication_emission_dataframes()[source]
Fetches eutrophication emission dataframes by category.
- generate_climate_change_totals()[source]
Calculates total climate change emissions for scenarios.
Details
Leverages the ClimateChangeTotal class.
Fetches emission dataframes using get_climate_change_emission_dataframes().
Saves results to a database via the DataManager class.
- rtype:
None
- generate_eutrophication_totals()[source]
Calculates total eutrophication emissions for scenarios.
Details
Leverages the EutrophicationTotal class.
Fetches emission dataframes using get_eutrophication_emission_dataframes().
Saves results to a database via the DataManager class.
- rtype:
None
- generate_air_quality_totals()[source]
Calculates total air quality emissions for scenarios.
Details
Leverages the AirQualityTotal class.
Fetches emission dataframes using get_air_quality_emission_dataframes().
Saves results to a database via the DataManager class.
- rtype:
None
- get_climate_emission_dataframes()[source]
Retrieves dataframes containing climate change emissions by category.
This method fetches dataframes containing climate change emissions for different categories, such as “crop,” “animal,” and “land,” using the DataFetcher class.
- Returns:
A dictionary containing dataframes of climate change emissions for different categories.
- Return type:
dict
- get_air_quality_emission_dataframes()[source]
Retrieves dataframes containing air quality emissions by category.
This method fetches dataframes containing air quality emissions for different categories, such as “crop” and “animal,” using the DataFetcher class.
- Returns:
A dictionary containing dataframes of air quality emissions for different categories.
- Return type:
dict
- get_eutrophication_emission_dataframes()[source]
Retrieves dataframes containing eutrophication emissions by category.
This method fetches dataframes containing eutrophication emissions for different categories, such as “crop” and “animal,” using the DataFetcher class.
- Returns:
A dictionary containing dataframes of eutrophication emissions for different categories.
- Return type:
dict