commit b1f3a65edfd06cceed50a8cc68cf8b6356c58ceb
parent 115ff9b78cf3cefc18fa00fce31e642524b516df
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 16 Oct 2023 16:54:30 +0200
Fixing the calculation of radiative coefficients
Their calculation was erroneous when the gas band overlapped several
aerosol bands: we calculated the aerosol average wrongly reduced to the
integration domain.
Diffstat:
1 file changed, 0 insertions(+), 4 deletions(-)
diff --git a/src/rnatm_radcoef.c b/src/rnatm_radcoef.c
@@ -164,10 +164,6 @@ tetra_get_radcoef_aerosol
lambda_min = MMAX(gas_band.lower, ars_band.lower);
lambda_max = MMIN(gas_band.upper, ars_band.upper); /* exclusive */
lambda_max = nextafter(lambda_max, 0); /* inclusive */
-
- /* Shrink lambda_<min|max> to the spectral range */
- lambda_min = MMAX(lambda_min, atm->spectral_range[0]);
- lambda_max = MMIN(lambda_max, atm->spectral_range[1]);
lambda_len = (float)(lambda_max - lambda_min);
ASSERT(lambda_len > 0);