RUFAS.routines.animal.purchased_feed_emissions_estimator module#

class RUFAS.routines.animal.purchased_feed_emissions_estimator.PurchasedFeedEmissionsEstimator#

Bases: object

__init__() None#
create_daily_purchased_feed_emissions_report(daily_feed_totals: dict[str, float]) dict[str, float]#

Reports the total emissions from the feeds given to a pen.

Parameters#

daily_feed_totalsdict[str, float]

Maps the feed type to the amount of feed given to the pen (feed ID: kg dry matter).

Returns#

dict[str, float]

Maps the feed type to the amount of emissions generated in producing and delivering it (feed ID: kg CO2).

create_daily_land_use_change_feed_emissions_report(daily_feed_totals: dict[str, float]) dict[str, float]#

Reports the emissions from land use changes associated with the purchased feed totals.

Parameters#

daily_feed_totalsdict[str, float]

Maps the feed type to the amount of feed given to the pen (feed ID: kg dry matter).

Returns#

dict[str, float]

Maps the feed type to the amount of emissions assciated with land use changes for that feed type (feed ID: kg CO2).

_setup_feed_emissions(feed_emissions_data: dict[str, list[float]]) dict[str, float]#

Setup a dictionary mapping emissions factors to purchased feeds types.

Parameters#

feed_emissions_datadict[str, list[float]]

Dictionary mapping FIPS county codes to emissions factors associated with RuFaS feed IDs.

Returns#

dict[str, float]

Dictionary mapping the RuFaS feed ID to the amount of CO2 emissions in kg per kg’s of dry matter feed.

Notes#

This method works by: - Grabbing the table that maps all available FIPS county codes to purchased feeds emissions information. - Finding the row (index) which contains the desired FIPS county information. - Grabbing the information for each available feed ID from the row found in the previous step.