satpy.tests.test_composites module
Tests for compositors in composites/__init__.py.
- class satpy.tests.test_composites.TestAddBands(methodName='runTest')[source]
Bases:
TestCase
Test case for the add_bands function.
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_composites.TestBackgroundCompositor[source]
Bases:
object
Test case for the background compositor.
- class satpy.tests.test_composites.TestCategoricalDataCompositor(methodName='runTest')[source]
Bases:
TestCase
Test composiotor for recategorization of categorical data.
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_composites.TestCloudTopHeightCompositor(methodName='runTest')[source]
Bases:
TestCase
Test the CloudTopHeightCompositor.
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_call_dask_with_invalid_value_in_status()[source]
Test the CloudTopHeight composite generation.
- class satpy.tests.test_composites.TestColorizeCompositor(methodName='runTest')[source]
Bases:
TestCase
Test the ColorizeCompositor.
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_composites.TestColormapCompositor(methodName='runTest')[source]
Bases:
TestCase
Test the ColormapCompositor.
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_composites.TestDayNightCompositor(methodName='runTest')[source]
Bases:
TestCase
Test DayNightCompositor.
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_day_only_area_with_alpha()[source]
Test compositor with day portion with alpha_band when SZA data is not provided.
- test_day_only_area_without_alpha()[source]
Test compositor with day portion without alpha_band when SZA data is not provided.
- test_day_only_sza_with_alpha()[source]
Test compositor with day portion with alpha band when SZA data is included.
- test_day_only_sza_without_alpha()[source]
Test compositor with day portion without alpha band when SZA data is included.
- test_daynight_area()[source]
Test compositor both day and night portions when SZA data is not provided.
- test_daynight_sza()[source]
Test compositor with both day and night portions when SZA data is included.
- test_night_only_area_with_alpha()[source]
Test compositor with night portion with alpha band when SZA data is not provided.
- test_night_only_area_without_alpha()[source]
Test compositor with night portion without alpha band when SZA data is not provided.
- class satpy.tests.test_composites.TestDifferenceCompositor(methodName='runTest')[source]
Bases:
TestCase
Test case for the difference 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_composites.TestEnhance2Dataset(methodName='runTest')[source]
Bases:
TestCase
Test the enhance2dataset utility.
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_composites.TestFillingCompositor(methodName='runTest')[source]
Bases:
TestCase
Test case for the filling 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_composites.TestGenericCompositor(methodName='runTest')[source]
Bases:
TestCase
Test generic 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_composites.TestInferMode(methodName='runTest')[source]
Bases:
TestCase
Test the infer_mode utility.
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_composites.TestInlineComposites(methodName='runTest')[source]
Bases:
TestCase
Test inline composites.
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_composites.TestLongitudeMaskingCompositor(methodName='runTest')[source]
Bases:
TestCase
Test case for the LongitudeMaskingCompositor 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_composites.TestLuminanceSharpeningCompositor(methodName='runTest')[source]
Bases:
TestCase
Test luminance sharpening 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_composites.TestMaskingCompositor[source]
Bases:
object
Test case for the simple masking compositor.
- reference_data(test_data, test_ct_data)[source]
Get reference data to use in masking compositor tests.
- test_call_named_fields(conditions_v2, test_data, test_ct_data, reference_data, reference_alpha)[source]
Test with named fields.
- test_call_named_fields_string(conditions_v2, test_data, test_ct_data, reference_data, reference_alpha)[source]
Test with named fields which are as a string in the mask attributes.
- class satpy.tests.test_composites.TestMatchDataArrays(methodName='runTest')[source]
Bases:
TestCase
Test the utility method ‘match_data_arrays’.
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_composites.TestMultiFiller(methodName='runTest')[source]
Bases:
TestCase
Test case for the MultiFiller 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_composites.TestNaturalEnhCompositor(methodName='runTest')[source]
Bases:
TestCase
Test NaturalEnh 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_composites.TestPaletteCompositor(methodName='runTest')[source]
Bases:
TestCase
Test the PaletteCompositor.
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_composites.TestPrecipCloudsCompositor(methodName='runTest')[source]
Bases:
TestCase
Test the PrecipClouds 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_composites.TestRatioSharpenedCompositors(methodName='runTest')[source]
Bases:
TestCase
Test RatioSharpenedRGB and SelfSharpendRGB compositors.
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_composites.TestSandwichCompositor[source]
Bases:
object
Test sandwich compositor.
- class satpy.tests.test_composites.TestSingleBandCompositor(methodName='runTest')[source]
Bases:
TestCase
Test the single-band 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_composites.TestStaticImageCompositor(methodName='runTest')[source]
Bases:
TestCase
Test case for the static 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.
- satpy.tests.test_composites.fake_dataset_pair(fake_area)[source]
Return a fake pair of 2×2 datasets.
- satpy.tests.test_composites.test_bad_sensor_yaml_configs(tmp_path)[source]
Test composite YAML file with no sensor isn’t loaded.
But the bad YAML also shouldn’t crash composite configuration loading.