satpy.tests.reader_tests.test_seviri_l1b_icare module

Tests for the SEVIRI L1b HDF4 from ICARE reader.

class satpy.tests.reader_tests.test_seviri_l1b_icare.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_seviri_l1b_icare.TestSEVIRIICAREReader(methodName='runTest')[source]

Bases: TestCase

Test SEVIRI L1b HDF4 from ICARE 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 = []
compare_areas(v)[source]

Compare produced AreaDefinition with expected.

setUp()[source]

Wrap HDF4 file handler with own fake file handler.

tearDown()[source]

Stop wrapping the HDF4 file handler.

test_area_def_hires()[source]

Test loading all datasets from an area of interest file.

test_area_def_lores()[source]

Test loading all datasets from an area of interest file.

test_bad_bandname()[source]

Check reader raises an error if a band bandname is passed.

test_init()[source]

Test basic init with no extra parameters.

test_load_dataset_ir()[source]

Test loading all datasets from a full swath file.

test_load_dataset_vis()[source]

Test loading all datasets from a full swath file.

test_nocompute()[source]

Test that dask does not compute anything in the reader itself.

test_sensor_names()[source]

Check satellite name conversion is correct, including error case.

yaml_file = 'seviri_l1b_icare.yaml'