4.9. post_combinator module

post_combinator.convert_to_ustons(settings, df)[source]
Note:

CCEMS reports criteria pollutants in metric tons and converts to US tons when multiplying by $/ton. EPA prefers to report US tons.

Parameters:

settings: The SetInputs class.

df: A DataFrame containing inventory values in metric tons for conversion to US tons.

Returns:

A DataFrame with criteria pollutant inventories expressed in US tons.

post_combinator.data_to_use(settings, df, report_name)[source]
Note:

This function selects from the passed report only that data that was desired by EPA staff.

Parameter:

settings: The SetInputs class.

df: A DataFrame consisting of the model output file to be revised.

report_name: The name of that model output file.

Return:

The passed DataFrame with certain records removed depending on the report_name on which the DataFrame is based.

post_combinator.post_combinator_main(settings, report_df, report_name)[source]
Note:

This function is called to pull full fleet runs (those that do not require any sort of combining or re-sales weighting) into the DataFrame consisting of combined results.

Parameters:

settings: The SetInputs class.

report_df: A DataFrame based on the model output “report_name” file.

report_name: The name of that model output file.

Return:

A DataFrame with full fleet runs concatenated.