satpy.tests.enhancement_tests.test_enhancements module
Unit testing the enhancements functions, e.g. cira_stretch.
- class satpy.tests.enhancement_tests.test_enhancements.TestColormapLoading[source]
Bases:
object
Test utilities used with colormaps.
- test_cmap_bad_mode(real_mode, forced_mode, filename_suffix)[source]
Test that reading colormaps with the wrong mode fails.
- class satpy.tests.enhancement_tests.test_enhancements.TestEnhancementStretch[source]
Bases:
object
Class for testing enhancements in satpy.enhancements.
- class satpy.tests.enhancement_tests.test_enhancements.TestTCREnhancement[source]
Bases:
object
Test the AHI enhancement functions.
- satpy.tests.enhancement_tests.test_enhancements._generate_cmap_test_data(color_scale, colormap_mode)[source]
- satpy.tests.enhancement_tests.test_enhancements._write_cmap_to_file(cmap_filename, cmap_data)[source]
- satpy.tests.enhancement_tests.test_enhancements.closed_named_temp_file(**kwargs)[source]
Named temporary file context manager that closes the file after creation.
This helps with Windows systems which can get upset with opening or deleting a file that is already open.
- satpy.tests.enhancement_tests.test_enhancements.identical_decorator(func)[source]
Decorate but do nothing.
- satpy.tests.enhancement_tests.test_enhancements.run_and_check_enhancement(func, data, expected, **kwargs)[source]
Perform basic checks that apply to multiple tests.
- satpy.tests.enhancement_tests.test_enhancements.test_nwcsaf_comps(fake_area, tmp_path, data)[source]
Test loading NWCSAF composites.
- satpy.tests.enhancement_tests.test_enhancements.test_on_dask_array()[source]
Test the on_dask_array decorator.