Skip to content

Test forward

source module isofit.test.test_forward

Functions

source test_calc_rdn_lambertian_no_emission()

1-component Lambertian RT formula: L = L_atm + L_totrho/(1-Srho)

With zero surface emission (Ls=0) the standard formula must hold exactly.

source test_calc_rdn_lambertian_zero_sphalb()

With zero spherical sky albedo the formula reduces to L = L_atm + L_tot*rho.

source test_calc_rdn_includes_surface_emission()

Surface thermal emission (Ls) is attenuated by upward transmittance and added to the radiance signal.

source test_out_of_bounds_in_bounds()

State vector strictly inside bounds returns False.

source test_out_of_bounds_at_upper()

State vector at the upper bound (within eps*2 tolerance) returns True.

source test_out_of_bounds_at_lower()

State vector at the lower bound (within eps*2 tolerance) returns True.

source test_get_L_coupled_nadir_sum()

With nadir geometry (coszen=cos_i=1) and full transmittance, L_tot equals the sum of the four coupling term radiances.

source test_get_L_coupled_cos_i_scaling()

Direct-illuminated components scale linearly with cos_i / coszen.