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_caching_with_array_in_args_does_not_warn_when_caching_is_not_enabled(tmp_path, recwarn)[source]
Test that trying to cache with non-dask arrays fails.
- test_caching_with_array_in_args_warns(tmp_path)[source]
Test that trying to cache with non-dask arrays fails.
- satpy.tests.modifier_tests.test_angles._get_angle_test_data(area_def: AreaDefinition | StackedAreaDefinition | None = None, chunks: int | tuple | None = 2, shape: tuple = (5, 5), dims: tuple | None = None) DataArray [source]