satpy.tests.test_modifiers module
Tests for modifiers in modifiers/__init__.py.
- class satpy.tests.test_modifiers.TestAngleGeneration[source]
Bases:
object
Test the angle generation utility functions.
- test_cache_get_angles(input_func, num_normalized_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.
- class satpy.tests.test_modifiers.TestNIREmissivePartFromReflectance(methodName='runTest')[source]
Bases:
unittest.case.TestCase
Test the NIR Emissive part from reflectance compositor.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- class satpy.tests.test_modifiers.TestNIRReflectance(methodName='runTest')[source]
Bases:
unittest.case.TestCase
Test NIR reflectance compositor.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_masking_limit_default_value_is_not_none(calculator, apply_modifier_info, sza)[source]
Check that sun_zenith_threshold is not None.
- test_no_sunz_no_co2(calculator, apply_modifier_info, sza)[source]
Test NIR reflectance compositor with minimal parameters.
- test_no_sunz_with_co2(calculator, apply_modifier_info, sza)[source]
Test NIR reflectance compositor provided extra co2 info.
- test_provide_masking_limit(calculator, apply_modifier_info, sza)[source]
Test NIR reflectance compositor provided sunz and a sunz threshold.
- test_provide_sunz_and_threshold(calculator, apply_modifier_info, sza)[source]
Test NIR reflectance compositor provided sunz and a sunz threshold.
- class satpy.tests.test_modifiers.TestPSPAtmosphericalCorrection(methodName='runTest')[source]
Bases:
unittest.case.TestCase
Test the pyspectral-based atmospheric correction modifier.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.