openairclim.calc_ch4

Calculates CH4 response

openairclim.calc_ch4.calc_ch4_concentration(config: dict, tau_inverse_dict: dict) dict[source]

Calculates the methane (CH4) concentration over time based on methane background and inverse methane lifetime of idealized emission boxes.

Parameters:
  • config (dict) – Configuration dictionary from config

  • tau_inverse_dict (dict) – Dictionary of an np.ndarray of inverse lifetime for methane.

Returns:

A dictionary containing the calculated methane concentration for each time step.

The dictionary has a single key “CH4” with corresponding values as a numpy array.

Return type:

dict

openairclim.calc_ch4.calc_ch4_drf_dconc(conc_dict: dict, config: dict) dict[source]

Calculates the derivative of the radiative forcing values for emitted CH4 concentrations with respect to CH4 concentration. This is used for the differential and marginal RF attribution methods. The CH4 method is taken from the config file

Parameters:
  • conc_dict (dict) – Dictionary with array of concentrations (not including background) between the starting and ending years, keys is species

  • config (dict) – Configuration dictionary from config

Returns:

Dictionary with np.ndarray of CH4 radiative forcing derivative

values between the starting and ending years, key is species CH4

Return type:

dict

openairclim.calc_ch4.calc_ch4_drf_dconc_etminan_2016(conc_dict: dict, conc_n2o_bg_dict: dict) dict[source]

Calculates the derivative of the radiative forcing values for emitted CH4 concentrations with respect to CH4 concentration after Etminan, M., Myhre, G., Highwood, E. J., & Shine, K. P. (2016). Radiative forcing of carbon dioxide, methane, and nitrous oxide: A significant revision of the methane radiative forcing. Geophysical Research Letters, 43(24), 12-614. https://doi.org/10.1002/2016GL071930

Parameters:
  • conc_dict (dict) – Dictionary with array of concentrations (not including background) between the starting and ending years, keys is species

  • conc_n2o_bg_dict (dict) – Dictionary of np.ndarray of background N2O concentrations between the starting and ending years, key is species

Returns:

Dictionary with np.ndarray of dRF(CH4)/dconc values

between the starting and ending years, key is species CH4

Return type:

dict

openairclim.calc_ch4.calc_ch4_rf(conc_dict: dict, config: dict) dict[source]

Calculates the Radiative Forcing values for emitted CH4 concentrations.

Parameters:
  • config (dict) – Configuration dictionary from config

  • conc_dict (dict) – Dictionary with array of concentrations between the starting and ending years, keys is species

Raises:

ValueError – if CH4.rf.method not valid

Returns:

Dictionary with np.ndarray of CH4 Radiative Forcing values

between the starting and ending years, key is species CH4

Return type:

dict

openairclim.calc_ch4.calc_ch4_rf_etminan_2016(conc_dict: dict, conc_n2o_bg_dict: dict) dict[source]

Calculates the Radiative Forcing values for emitted CH4 concentrations after Etminan, Maryam, et al. Radiative forcing of carbon dioxide, methane, and nitrous oxide: A significant revision of the methane radiative forcing. Geophysical Research Letters 43.24 (2016): 12-614. https://doi.org/10.1002/2016GL071930

Parameters:
  • conc_dict (dict) – Dictionary with array of concentrations between the starting and ending years, keys is species

  • conc_ch4_bg_dict (dict) – Dictionary of np.ndarray of background CH4 concentrations between the starting and ending years, key is species

  • conc_n2o_bg_dict (dict) – Dictionary of np.ndarray of background N2O concentrations between the starting and ending years, key is species

Returns:

Dictionary with np.ndarray of CH4 Radiative Forcing values

between the starting and ending years, key is species CH4

Return type:

dict

openairclim.calc_ch4.calc_pmo_rf(out_dict)[source]

Calculates PMO RF

Parameters:

out_dict (dict) – Dictionary with computed responses, keys are e.g. ‘RF_CH4’

Returns:

Dictionary of np.ndarray of computed RF, key is PMO

Return type:

dict

Raises:

KeyError – If computed CH4 RF is not available.

openairclim.calc_ch4.func_tagging(t, y, ch4_bg, tau_global, tau_inverse)[source]

Differential equation, contribution (tagging) method, for evaluating CH4 concentratrion after equation 4.49 in Rieger, V.S., A new method to assess the climate effect of mitigation strategies for road traffic, Delft University of Technology, PhD, 2018, https://doi.org/10.4233/uuid:cc96a7c7-1ec7-449a-84b0-2f9a342a5be5

Parameters:
  • t (float) – time

  • y (float) – CH4 concentration, tagged, required solution of differential equation

  • ch4_bg (float) – CH4 background concentration

  • tau_global (float) – global CH4 lifetime

  • tau_inverse (float) – inverse CH4 lifetime, tagged

Returns:

d/dt CH4 (CH4 concentration, tagged)

Return type:

float