htrdr

Solving radiative transfer in heterogeneous media
git clone git://git.meso-star.fr/htrdr.git
Log | Files | Refs | README | LICENSE

commit 3a736e73cbd3d176185bc040958f257038fac5d2
parent e07f55a3bdc03822f974fc1980be0ece02f4cca5
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue, 29 Nov 2022 14:54:29 +0100

htrdr-planeto: write 0 as sw radiance temperature

Until now, the radiance temperature of the pixel was left uninitialized
in shortwave leading to arbitrary output values.

Diffstat:
Msrc/planeto/htrdr_planeto_draw_map.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/planeto/htrdr_planeto_draw_map.c b/src/planeto/htrdr_planeto_draw_map.c @@ -132,7 +132,10 @@ draw_pixel_xwave pixel->radiance = radiance; pixel->time = time; - if(cmd->spectral_domain.spectral_type == HTRDR_SPECTRAL_LW) { + if(cmd->spectral_domain.spectral_type == HTRDR_SPECTRAL_SW) { + pixel->radiance_temperature.E = 0; + pixel->radiance_temperature.SE = 0; + } else { struct htrdr_estimate L; /* Wavelength in meters */