API details.

Constants

$GWP_{100}$ for Methane is 28 according to AR5

get_emission_data_paths[source]

get_emission_data_paths(data_path=None)

Get paths for emisson at file.

:param: data_path - path to files, defaults to the `gwp/data`

:return: dict with scenario names as keys and paths to
          data files as values

calc_temp_increase[source]

calc_temp_increase()

Calculate temperature increase caused by Methane only

This uses FaiR: https://github.com/OMS-NetZero/FAIR

Returns a pandas DataFrame with columns RCP 2.6, RCP 4.5, RCP 6, RCP 8.5
and rows with yearly data from 1765 to 2500.

calc_gwpstar_emissions[source]

calc_gwpstar_emissions(emissons, gwp_h=28, h=100, delt=20)

Calculation of GWP* from GWP

Based on Allen et. al 2018

:param: emissons pandas Series with emission values, index is year
:param: gwp_h GWP for `h` years
:param: h time in years
:param: delt delta tine in years
:return: GWP*

read_data[source]

read_data(file_name, sep=',', skiprows=36, index_col=0, species='CH4', unit_converter=0.001)

Read emssion data from a csv file.

Per default reads Methane data from a file with the format of the
files in `igwp/data`.
These files are from FaiR: https://github.com/OMS-NetZero/FAIR

make_gwps[source]

make_gwps(file_name, start_year=1765, end_year=2500, base_year=1765, delt=20)

Compute GWP_100, GWP*_100.

make_gwps_improved[source]

make_gwps_improved(file_name, additional_emssions=0, start_year=1765, end_year=2500, base_year=1765, delt=20, r=0.75, s=0.25)

Compute GWP_100, GWP*_100, and IGWP_100.