konrad.convection.HardAdjustment.update_convective_top

HardAdjustment.update_convective_top(T_rad, T_con, p, timestep=0.1, lim=0.2)[source]

Find the pressure and temperature where the radiative heating has a certain value.

Note

In the HardAdjustment case, for a contop temperature that is not dependent on the number or distribution of pressure levels, it is better to take a value of lim not equal or very close to zero.

Parameters
  • T_rad (ndarray) – radiative temperature profile [K]

  • T_con (ndarray) – convectively adjusted temperature profile [K]

  • p (ndarray) – model pressure levels [Pa]

  • timestep (float) – model timestep [days]

  • lim (float) – Threshold value [K/day].