goblin_lite.LCA_processing.livestock_lca_generator
This module contains the LivestockLCAGenerator class, which is responsible for generating livestock footprints for climate change, eutrophication, and air quality.
Module Contents
Classes
Manages the calculation of environmental footprints (climate change, eutrophication, air quality) associated with livestock production. |
- class goblin_lite.LCA_processing.livestock_lca_generator.LivestockLCAGenerator(ef_country, calibration_year, target_year, baseline_animal_data, scenario_animal_data, farm_inputs_baseline, farm_inputs_scenario, landuse_data, transition_matrix, crop_data, DATABASE_PATH, AR_VALUE)[source]
Manages the calculation of environmental footprints (climate change, eutrophication, air quality) associated with livestock production. Employs ClimateChangeLivestock, EutrophicationLivestock, and AirQualityLivestock classes.
- data_manager_class
An instance of the DataManager class for database interactions.
- Type:
- ef_country
Country code for emission factors.
- Type:
str
- calibration_year
Base year for model calibration.
- Type:
int
- target_year
Year of analysis.
- Type:
int
- baseline_animal_data
Baseline animal production data.
- Type:
pandas.DataFrame
- scenario_animal_data
Scenario-specific animal production data.
- Type:
pandas.DataFrame
- farm_inputs_baseline
Farm inputs (e.g., fertilizer) for the baseline.
- Type:
pandas.DataFrame
- farm_inputs_scenario
Farm inputs (e.g., fertilizer) for the scenario.
- Type:
pandas.DataFrame
- landuse_data
Land use data.
- Type:
pandas.DataFrame
- transition_matrix
Data representing transitions between land use types.
- Type:
pandas.DataFrame
- crop_data
Crop-related data.
- Type:
pandas.DataFrame
- DATABASE_PATH
Path to the external database, if None, default internal database used.
- Type:
str, optional
- AR_VALUE
IPCC Assessment Report version (e.g., ‘AR4’, ‘AR5’) for impact calculations.
- Type:
str
- generate_livestock_footprint()[source]
Calculates disaggregated footprints for climate change, eutrophication, and air quality.
- generate_aggregated_livestock_footprint()[source]
Calculates aggregated climate change footprints at the national level.
- generate_livestock_footprint()[source]
Calculates disaggregated environmental footprints (climate change, eutrophication, air quality) for livestock production.
Details
Leverages ClimateChangeLivestock, EutrophicationLivestock, and AirQualityLivestock classes.
Utilizes baseline and scenario animal data, and farm input data.
Saves results to a database via the DataManager class.
- rtype:
None
- generate_aggregated_livestock_footprint()[source]
Calculates aggregated climate change footprints associated with livestock production at the national level.
Details
Leverages the ClimateChangeLivestock class.
Utilizes baseline and scenario animal data, and farm input data.
Saves results to a database via the DataManager class.
- rtype:
None