satpy.tests.reader_tests.test_seviri_l1b_hrit module

The HRIT msg reader tests package.

class satpy.tests.reader_tests.test_seviri_l1b_hrit.TestHRITMSGBase(methodName='runTest')[source]

Bases: TestCase

Baseclass for SEVIRI HRIT reader tests.

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 = []
assert_attrs_equal(attrs, attrs_exp)[source]

Assert equality of dataset attributes.

class satpy.tests.reader_tests.test_seviri_l1b_hrit.TestHRITMSGCalibration[source]

Bases: TestFileHandlerCalibrationBase

Unit tests for calibration.

file_handler()[source]

Create a mocked file handler.

test_calibrate(file_handler, counts, channel, calibration, calib_mode, use_ext_coefs)[source]

Test the calibration.

test_mask_bad_quality(file_handler)[source]

Test the masking of bad quality scan lines.

class satpy.tests.reader_tests.test_seviri_l1b_hrit.TestHRITMSGEpilogueFileHandler(methodName='runTest')[source]

Bases: TestCase

Test the HRIT epilogue file handler.

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(init, *mocks)[source]

Set up the test case.

test_extra_kwargs(init, *mocks)[source]

Test whether the epilogue file handler accepts extra keyword arguments.

test_reduce(reduce_mda)[source]

Test metadata reduction.

class satpy.tests.reader_tests.test_seviri_l1b_hrit.TestHRITMSGFileHandler(methodName='runTest')[source]

Bases: TestHRITMSGBase

Test the HRITFileHandler.

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

Set up the hrit file handler for testing.

test_get_area_def()[source]

Test getting the area def.

test_get_dataset(calibrate, parent_get_dataset)[source]

Test getting the dataset.

test_get_dataset_with_raw_metadata(calibrate, parent_get_dataset)[source]

Test getting the dataset.

test_get_dataset_without_masking_bad_scan_lines(calibrate, parent_get_dataset)[source]

Test getting the dataset.

test_get_raw_mda()[source]

Test provision of raw metadata.

test_read_band(memmap)[source]

Test reading a band.

test_satpos_no_valid_orbit_polynomial()[source]

Test satellite position if there is no valid orbit polynomial.

class satpy.tests.reader_tests.test_seviri_l1b_hrit.TestHRITMSGFileHandlerHRV(methodName='runTest')[source]

Bases: TestHRITMSGBase

Test the HRITFileHandler.

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]

Set up the hrit file handler for testing HRV.

test_get_area_def()[source]

Test getting the area def.

test_get_dataset(calibrate, parent_get_dataset)[source]

Test getting the hrv dataset.

test_get_dataset_non_fill(calibrate, parent_get_dataset)[source]

Test getting a non-filled hrv dataset.

test_read_hrv_band(memmap)[source]

Test reading the hrv band.

class satpy.tests.reader_tests.test_seviri_l1b_hrit.TestHRITMSGPrologueFileHandler(methodName='runTest')[source]

Bases: TestCase

Test the HRIT prologue file handler.

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

Set up the test case.

test_extra_kwargs(init, *mocks)[source]

Test whether the prologue file handler accepts extra keyword arguments.

test_reduce(reduce_mda)[source]

Test metadata reduction.