utopia.results_processing.process_results
Classes
Provides functionalities for restructuring, analysing and plotting the UTOPIA model results. |
Module Contents
- class utopia.results_processing.process_results.ResultsProcessor(model)[source]
Provides functionalities for restructuring, analysing and plotting the UTOPIA model results.
- processed_results
- model
- R
- Results_extended = None
- process_results()[source]
Reformat results dataframe for easier analysis by specifying size fractions, MP forms and compartments and deriving mass and number fractions, input and outup flows.
- addFlows_to_results_df(Results_extended)[source]
Calculate inflows and outflows (mass and number) and update Results_extended.
- plot_fractionDistribution_heatmaps(fraction)[source]
Plots the mass and number fractions after they have been extracted to the Results_extended df.
- plot_compartment_distribution(mass_or_number)[source]
Bar chart plot of the mass or particle number distribution of particles by compartment.
- process_all()[source]
Runs all processing steps in order automatically and stores the results in the processed_results dictionary of the the class.
- estimate_emission_fractions()[source]
Estimate mass emission fractions: - Environmentally Dispersed Fraction (ϕ1): quantifies the relative extent to which the pollutants (MPs) can reach remote regions. - Remotely transferred fraction of mass (ϕ2) expresses the relative extent to which the MPs are (net) transferred to the target remote compartment following environmental dispersion to the remote region.