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

Wrap HDF4 file handler with own fake file handler.

tearDown()[source]

Stop wrapping the HDF4 file handler.

test_init()[source]

Test basic init with no extra parameters.

test_load_dataset()[source]

Test loading all datasets from a full swath file.

test_load_dataset_aoi()[source]

Test loading all datasets from an area of interest file.

yaml_file = 'viirs_edr_flood.yaml'