konrad.radiation.fluxes2heating

konrad.radiation.fluxes2heating(net_fluxes, pressure, cp=None, method='diff')[source]

Calculate radiative heating from net fluxes

\[Q_\mathrm{r} = \frac{F}{c_p} \frac{\mathrm{d}F}{\mathrm{d}p}\]
Parameters
  • net_fluxes (ndarray) – Net radiative flux.

  • pressure (ndarray) – Pressure level.

  • cp (float or ndarray) – Specific heat capacity. If None use specific heat capacity of dry air.

  • method (str) – Method used to derive the radiative fluxes (“diff” or “gradient”).

Returns

ndarray – Radiative heating [K/day].