openairclim.core.calc_dt

Calculates temperature changes for each species and scenario.

openairclim.core.calc_dt.calc_delta_temp_br2008(t: float, c_arr: list[float], d_arr: list[float]) → float[source]

Impulse response function according to Boucher and Reddy (2008), Appendix A.

Parameters:
  • t (float) – time

  • c_arr (list[float]) – parameter array of impulse response function, Table A1: ci in (K / (W m-2))

  • d_arr (list[float]) – parameter array of impulse response function, Table A1: di in (years)

Returns:

temperature change according to the Boucher and Reddy (2008) model

Return type:

float

openairclim.core.calc_dt.calc_dtemp(config: dict, spec: str, rf_dict: dict) → dict[source]

Calculates the temperature changes for a single species.

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

  • spec (str) – species

  • rf_dict (dict) – Dictionary of numpy.ndarray of radiative forcing values for time range as defined in config

Returns:

Dictionary of numpy.ndarray of temperature values for time range as defined in config

Return type:

dict

Raises:

KeyError – If temperature method is unknown.

openairclim.core.calc_dt.calc_dtemp_br2008(config: dict, spec: str, rf_arr: ndarray) → ndarray[source]

Calculates temperature changes after Boucher and Reddy (2008).

https://doi.org/10.1016/j.enpol.2007.08.039

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

  • spec (str) – species

  • rf_arr (numpy.ndarray) – array of radiative forcing values

Returns:

array of temperature values

Return type:

numpy.ndarray