satpy.tests.enhancement_tests.test_enhancements module

Unit testing the enhancements functions, e.g. cira_stretch.

class satpy.tests.enhancement_tests.test_enhancements.TestColormapLoading(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test utilities used with colormaps.

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_cmap_from_file_bad_shape()[source]

Test that unknown array shape causes an error.

test_cmap_from_file_rgb()[source]

Test that colormaps can be loaded from a binary file.

test_cmap_from_file_rgb_1()[source]

Test that colormaps can be loaded from a binary file with 0-1 colors.

test_cmap_from_file_vrgb()[source]

Test that colormaps can be loaded from a binary file with values.

test_cmap_from_file_vrgba()[source]

Test that colormaps can be loaded RGBA colors and values.

test_cmap_from_trollimage()[source]

Test that colormaps in trollimage can be loaded.

test_cmap_list()[source]

Test that colors can be a list/tuple.

test_cmap_no_colormap()[source]

Test that being unable to create a colormap raises an error.

class satpy.tests.enhancement_tests.test_enhancements.TestEnhancementStretch(methodName='runTest')[source]

Bases: unittest.case.TestCase

Class for testing enhancements in satpy.enhancements.

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.

setUp()[source]

Create test data used by every test.

tearDown()[source]

Clean up.

test_btemp_threshold()[source]

Test applying the cira_stretch.

test_cira_stretch()[source]

Test applying the cira_stretch.

test_colorize()[source]

Test the colorize enhancement function.

test_crefl_scaling()[source]

Test the crefl_scaling enhancement function.

test_lookup()[source]

Test the lookup enhancement function.

test_merge_colormaps()[source]

Test merging colormaps.

test_palettize()[source]

Test the palettize enhancement function.

test_piecewise_linear_stretch()[source]

Test the piecewise_linear_stretch enhancement function.

test_reinhard()[source]

Test the reinhard algorithm.

test_three_d_effect()[source]

Test the three_d_effect enhancement function.