nichollsh / AGNI

A 1D radiative-convective model for the atmospheres of hot terrestrial planets.
https://nichollsh.github.io/AGNI/
GNU General Public License v3.0
1 stars 1 forks source link

Contribution function calculation #14

Closed nichollsh closed 9 months ago

nichollsh commented 9 months ago

Adding a subroutine for calculating the contribution function at each level of the atmosphere. This requires knowing the optical depth at each pressure level.

The contribution function can be calculated according to: https://ui.adsabs.harvard.edu/abs/1998Sci...282.2063G/abstract https://ui.adsabs.harvard.edu/abs/2016A%26A...594A..69D/abstract

nichollsh commented 9 months ago

This has been added in commit 03808b2. The CF is calculated when the flag calc_cf is set to true in the radtrans() LW call. For a given band (across all pressures) it's normalised against the maximum value.