Test geometry
source module isofit.test.test_geometry
Functions
-
input_loc — [0] Longitude [1] Latitude [2] Elevation
-
input_obs — [0] Path length [1] To-sensor azimuth [2] To-sensor zenith [3] To-sun azimuth [4] To-sun zenith [5] Phase angle [6] Slope [7] Aspect [8] Cosine of local solar illumination (cos_i) [9] UTC time
-
test_loc — Test unit conversion for surface elevation
-
test_obs — Test unit conversion for path length, and test cos_i to default from OBS data.
-
test_default_behavior — Ensure all initial conditions of Geometry are returned as expected
-
test_geom_clipping — To ensure cos_i and skyview factor stay within physical bounds
-
test_config_terrain_settings — Test that max_slope and terrain_style are pulled from full_config
-
test_coszen_priority — Tests how we expect coszen to be defined based on defined priorities in Geometry
[0] Longitude [1] Latitude [2] Elevation
[0] Path length [1] To-sensor azimuth [2] To-sensor zenith [3] To-sun azimuth [4] To-sun zenith [5] Phase angle [6] Slope [7] Aspect [8] Cosine of local solar illumination (cos_i) [9] UTC time
Test unit conversion for surface elevation
source test_obs(input_obs, coszen=0.7)
Test unit conversion for path length, and test cos_i to default from OBS data.
source test_default_behavior()
Ensure all initial conditions of Geometry are returned as expected
source test_geom_clipping(input_obs)
To ensure cos_i and skyview factor stay within physical bounds
source test_config_terrain_settings(input_obs)
Test that max_slope and terrain_style are pulled from full_config
source test_coszen_priority(input_obs)
Tests how we expect coszen to be defined based on defined priorities in Geometry