satpy.tests.modifier_tests.test_angles module

Tests for the angles in modifiers.

class satpy.tests.modifier_tests.test_angles.TestAngleGeneration[source]

Bases: object

Test the angle generation utility functions.

test_cache_get_angles(input_func, num_normalized_chunks, exp_zarr_chunks, input2_func, exp_equal_sun, exp_num_zarr, force_bad_glob, tmp_path)[source]

Test get_angles when caching is enabled.

test_cached_no_chunks_fails(tmp_path)[source]

Test that trying to pass non-dask arrays and no chunks fails.

test_cached_result_numpy_fails(tmp_path)[source]

Test that trying to cache with non-dask arrays fails.

test_get_angles(input_func, exp_calls)[source]

Test sun and satellite angle calculation.

test_get_angles_satpos_preference(forced_preference)[source]

Test that ‘actual’ satellite position is used for generating sensor angles.

test_no_cache_dir_fails(tmp_path)[source]

Test that ‘cache_dir’ not being set fails.

test_relative_azimuth_calculation()[source]

Test relative azimuth calculation.

test_solazi_correction()[source]

Test that solar azimuth angles are corrected into the right range.