konrad.convection.HardAdjustment.convective_adjustment¶
- HardAdjustment.convective_adjustment(atmosphere, lapse, surface, timestep=0.1)[source]¶
Find the energy-conserving temperature profile using upper and lower bound profiles (calculated from surface temperature extremes: no change for upper bound and coldest atmospheric temperature for lower bound) and an iterative procedure between them. Return the atmospheric temperature profile which satisfies energy conservation.
- Parameters
atmosphere (konrad.atmosphere.Atmosphere) – Atmosphere model.
lapse (konrad.lapsereate.LapseRate) – Callable f(p, T) that returns a temperature lapse rate in [K/day].
surface (konrad.surface) – surface associated with old temperature profile
timestep (float) – only required for slow convection [days]
- Returns
ndarray – atmospheric temperature profile [K] float: surface temperature [K]