commit 3290680a52d78f8387bb4518ee65eafbd76ba3aa
parent a4e3ae8934c1416ca707ad140d59a34f09ea6333
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 9 May 2025 12:12:54 +0200
planets: correct orthporaphic rendering output
The camera has no solid angle. The only output is luminance in W/m^2/sr.
Diffstat:
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/planets/htrdr_planets_draw_map.c b/src/planets/htrdr_planets_draw_map.c
@@ -442,12 +442,18 @@ planets_draw_map(struct htrdr_planets* cmd)
|| cmd->spectral_domain.type == HTRDR_SPECTRAL_SW) {
struct htrdr_estimate L;
double omega; /* Solid angle of the camera */
+ enum scam_type type = SCAM_NONE;
htrdr_accum_get_estimation(&radiance_acc, &L);
- SCAM(perspective_get_solid_angle(cmd->camera, &omega));
htrdr_log(cmd->htrdr, "Radiance in W/m²/sr: %g +/- %g\n", L.E, L.SE);
- htrdr_log(cmd->htrdr, "Radiance in W/m² (solid angle = %g sr): %g +/- %g\n",
- omega, L.E*omega, L.SE*omega);
+
+ SCAM(get_type(cmd->camera, &type));
+ if(type == SCAM_PERSPECTIVE) {
+ SCAM(perspective_get_solid_angle(cmd->camera, &omega));
+
+ htrdr_log(cmd->htrdr, "Radiance in W/m² (solid angle = %g sr): %g +/- %g\n",
+ omega, L.E*omega, L.SE*omega);
+ }
}
exit: