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.

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.

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.

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.

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_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.

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.

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.