resource_manager.landcover_data_manager

Description:

This file contains classes related to managing and processing environmental or agricultural model data.

Classes:

DataManager: Manages and stores various data parameters essential for calibration and modeling processes, such as calibration years, target years, and organic mineral soil depth.

ModelData: Manages metadata related to land use. It maintains a list of columns relevant for land use data analysis and modeling, including identifiers and various attributes related to land use.

Usage:

These classes are integral to scenarios involving environmental or agricultural modeling and land use data processing. They help in standardizing and organizing the necessary parameters and metadata for efficient data handling and analysis.

Note

This is part of a larger suite of tools developed for environmental data analysis and modeling.

Module Contents

Classes

DataManager

ModelData

ModelData is a class designed to store and manage metadata related to land use. Primarily, it maintains a list of columns that are relevant for land use data analysis and modeling.

class resource_manager.landcover_data_manager.DataManager(calibration_year=None, target_year=None)
get_calibration_year()

Returns the calibration year.

Returns:

The year used for calibration.

Return type:

int

get_default_calibration_year()

Returns the default calibration year.

Returns:

The default year used for calibration if no specific year is provided.

Return type:

int

get_target_year()

Returns the target year.

Returns:

The target year for the model data.

Return type:

int

get_organic_mineral_soil_depth()

Returns the depth of organic mineral soil.

Returns:

The depth of organic mineral soil.

Return type:

int

get_total_N_to_po4e()

Returns the conversion factor for total nitrogen to phosphate equivalent.

Returns:

The conversion factor for total nitrogen to phosphate equivalent.

Return type:

float

get_total_P_to_po4e()

Returns the conversion factor for total nitrogen to N2O emissions.

Returns:

The conversion factor for total nitrogen to N2O emissions.

Return type:

float

class resource_manager.landcover_data_manager.ModelData

ModelData is a class designed to store and manage metadata related to land use. Primarily, it maintains a list of columns that are relevant for land use data analysis and modeling.

land_use_columns

A list containing the names of columns that are important for land use data. These columns typically include identifiers and various attributes related to land use, such as area, shares of different land types, etc.

Type:

list of str

get_land_use_columns()

Returns the list of land use columns.

Usage:

This class is particularly useful in scenarios involving data processing or analysis of land use, where a consistent set of columns is required to standardize data frames or databases for further analysis.

get_land_use_columns()

Returns the list of land use columns.

Returns:

A list containing the names of columns that are important for land use data.

Return type:

list of str

get_geo_land_use_columns()

Returns the list of land use columns for use in geo_goblin modelling.

Returns:

A list containing the names of columns that are important for land use data.

Return type:

list of str