satpy.tests.compositor_tests.test_spectral module

Tests for spectral correction compositors.

class satpy.tests.compositor_tests.test_spectral.TestNdviHybridGreenCompositor[source]

Bases: object

Test NDVI-weighted hybrid green correction of green band.

setup_method()[source]

Initialize channels.

test_invalid_strength()[source]

Test using invalid strength term for non-linear scaling.

test_ndvi_hybrid_green()[source]

Test General functionality with linear scaling from ndvi to blend fraction.

test_ndvi_hybrid_green_dtype()[source]

Test that the datatype is not altered by the compositor.

test_nonlinear_scaling()[source]

Test non-linear scaling using strength term.

test_with_slightly_mismatching_coord_input()[source]

Test the case where an input (typically the red band) has a slightly different coordinate.

If match_data_arrays is called correctly, the coords will be aligned and the array will have the expected shape.

class satpy.tests.compositor_tests.test_spectral.TestSpectralComposites[source]

Bases: object

Test composites for spectral channel corrections.

setup_method()[source]

Initialize channels.

test_bad_lengths()[source]

Test that error is raised if the amount of channels to blend does not match the number of weights.

test_hybrid_green()[source]

Test hybrid green correction of the ‘green’ band.

test_spectral_blender()[source]

Test the base class for spectral blending of channels.