goblin_lite.data_processing.forest_carbon_generator

This module contains the ForestCarbonGenerator class, which is responsible for generating forest carbon data. The class leverages the Runner class to calculate forest carbon data based on scenario-specific and baseline forest data.

Module Contents

Classes

ForestCarbonGenerator

Manages the process of generating forest carbon data, leveraging the CBM

class goblin_lite.data_processing.forest_carbon_generator.ForestCarbonGenerator(calibration_year, cbm_config_path, scenario_dataframe, afforestation_dataframe, sit_path=None)[source]

Manages the process of generating forest carbon data, leveraging the CBM Runner class (from the cbm_runner module) to perform the core carbon calculations.

calibration_year

The base year used for calibrating the carbon model.

Type:

int

cbm_config_path

The path to the configuration file for the CBM.

Type:

str

scenario_dataframe

Dataframe containing forest management scenario descriptions.

Type:

pandas.DataFrame

afforestation_dataframe

Dataframe containing information about afforestation activities.

Type:

pandas.DataFrame

sit_path

The path to the SIT directory.

Type:

str, optional

generate_forest_carbon()[source]

Generates forest carbon data using the provided input data.

generate_forest_carbon()[source]

Generates forest carbon data using the provided input data.

Returns:

A dictionary containing forest carbon data with keys ‘forest_flux’ and ‘forest_aggregate’.

Return type:

dict