satpy.tests.reader_tests.test_viirs_edr_flood module

Tests for the VIIRS EDR Flood reader.

class satpy.tests.reader_tests.test_viirs_edr_flood.FakeHDF4FileHandler2(filename, filename_info, filetype_info, **kwargs)[source]

Bases: FakeHDF4FileHandler

Swap in HDF4 file handler.

Get fake file content from ‘get_test_content’.

get_test_content(filename, filename_info, filename_type)[source]

Mimic reader input file content.

class satpy.tests.reader_tests.test_viirs_edr_flood.TestVIIRSEDRFloodReader(methodName='runTest')[source]

Bases: TestCase

Test VIIRS EDR Flood Reader.

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.

_classSetupFailed = False
_class_cleanups = []

Wrap HDF4 file handler with own fake file handler.


Stop wrapping the HDF4 file handler.


Test basic init with no extra parameters.


Test loading all datasets from a full swath file.


Test loading all datasets from an area of interest file.

yaml_file = 'viirs_edr_flood.yaml'