optigob.protein_crops.protein_crops_budget ========================================== .. py:module:: optigob.protein_crops.protein_crops_budget .. autoapi-nested-parse:: protein_crops_budget ==================== This module contains the ProteinCropsBudget class, which is used to calculate various protein crop-related metrics such as area, emissions (CO2, CH4, N2O, CO2e), and protein yield for protein crops. Class: ProteinCropsBudget: Calculates area, emissions, and protein yield for protein crops. Methods in ProteinCropsBudget: __init__(self, optigob_data_manager): Initializes the ProteinCropsBudget with the given data manager. get_crop_area(self): Returns the area for the protein crop and abatement in hectares (multiplied by the crop area multiplier). get_crop_emission_ch4(self): Returns the CH4 emission for the protein crop and abatement in kilotons. get_crop_emission_n2o(self): Returns the N2O emission for the protein crop and abatement in kilotons. get_crop_emission_co2(self): Returns the CO2 emission for the protein crop and abatement in kilotons. get_crop_emission_co2e(self): Returns the CO2e emission for the protein crop and abatement in kilotons. get_crop_protein_yield(self): Returns the protein yield for the protein crop and abatement in kg (multiplied by the crop area multiplier). Classes ------- .. autoapisummary:: optigob.protein_crops.protein_crops_budget.ProteinCropsBudget Module Contents --------------- .. py:class:: ProteinCropsBudget(optigob_data_manager) .. py:attribute:: data_manager_class .. py:attribute:: target_year .. py:attribute:: abatement .. py:attribute:: protein_crop_included .. py:attribute:: crop_area_multiplier .. py:attribute:: crop_protein .. py:method:: zero_if_not_included() .. py:method:: get_crop_area() Returns the area for the protein crop and abatement in hectares (multiplied by the crop area multiplier). .. py:method:: get_crop_emission_ch4() Returns the CH4 emission for the protein crop and abatement in kilotons. .. py:method:: get_crop_emission_n2o() Returns the N2O emission for the protein crop and abatement in kilotons. .. py:method:: get_crop_emission_co2() Returns the CO2 emission for the protein crop and abatement in kilotons. .. py:method:: get_crop_emission_co2e() Returns the CO2e emission for the protein crop and abatement in kilotons. .. py:method:: get_crop_protein_yield() Returns the protein yield for the protein crop and abatement in kg (multiplied by the crop area multiplier).