satpy.tests.test_multiscene module

Unit tests for multiscene.py.

class satpy.tests.test_multiscene.TestBlendFuncs(methodName='runTest')[source]

Bases: TestCase

Test individual functions used for blending.

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]

Set up test data.

test_stack()[source]

Test the ‘stack’ function.

test_timeseries()[source]

Test the ‘timeseries’ function.

class satpy.tests.test_multiscene.TestMultiScene(methodName='runTest')[source]

Bases: TestCase

Test basic functionality of MultiScene.

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

Test creating a multiscene from multiple files.

test_init_children()[source]

Test creating a multiscene with children.

test_init_empty()[source]

Test creating a multiscene with no children.

test_properties()[source]

Test basic properties/attributes of the MultiScene.

class satpy.tests.test_multiscene.TestMultiSceneGrouping[source]

Bases: object

Test dataset grouping in MultiScene.

groups()[source]

Get group definitions for the MultiScene.

multi_scene(scene1, scene2)[source]

Create small multi scene for testing.

scene1()[source]

Create first test scene.

scene2()[source]

Create second test scene.

test_fails_to_add_multiple_datasets_from_the_same_scene_to_a_group(multi_scene)[source]

Test that multiple datasets from the same scene in one group fails.

test_multi_scene_grouping(multi_scene, groups, scene1)[source]

Test grouping a MultiScene.

class satpy.tests.test_multiscene.TestMultiSceneSave(methodName='runTest')[source]

Bases: TestCase

Test saving a MultiScene to various formats.

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 temporary directory to save files to.

tearDown()[source]

Remove the temporary directory created for a test.

test_crop()[source]

Test the crop method.

test_save_datasets_distributed_delayed()[source]

Test distributed save for writers returning delayed obejcts e.g. simple_image.

test_save_datasets_distributed_source_target()[source]

Test distributed save for writers returning sources and targets e.g. geotiff writer.

test_save_datasets_simple()[source]

Save a series of fake scenes to an PNG images.

test_save_mp4_distributed()[source]

Save a series of fake scenes to an mp4 video.

test_save_mp4_no_distributed()[source]

Save a series of fake scenes to an mp4 video when distributed isn’t available.

satpy.tests.test_multiscene.make_dataid(**items)[source]

Make a data id.

satpy.tests.test_multiscene.test_save_mp4(smg, tmp_path)[source]

Save a series of fake scenes to an mp4 video.