satpy.tests.reader_tests.test_electrol_hrit module

The HRIT electrol reader tests package.

class satpy.tests.reader_tests.test_electrol_hrit.TestHRITGOMSEpiFileHandler(methodName='runTest')[source]

Bases: TestCase

Test the HRIT Epilogue FileHandler.

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 = []
test_init(new_fh_init, fromfile)[source]

Set up the hrit file handler for testing.

class satpy.tests.reader_tests.test_electrol_hrit.TestHRITGOMSFileHandler(methodName='runTest')[source]

Bases: TestCase

A test of the ELECTRO-L main file handler functions.

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

Test calibrate.

test_get_area_def(*mocks)[source]

Test get_area_def.

test_get_dataset(calibrate_mock, *mocks)[source]

Test get dataset.

class satpy.tests.reader_tests.test_electrol_hrit.TestHRITGOMSProFileHandler(methodName='runTest')[source]

Bases: TestCase

Test the HRIT Prologue FileHandler.

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 = []
test_calib = array([[50, 50, 50, ..., 50, 50, 50],        [50, 50, 50, ..., 50, 50, 50],        [50, 50, 50, ..., 50, 50, 50],        ...,        [50, 50, 50, ..., 50, 50, 50],        [50, 50, 50, ..., 50, 50, 50],        [50, 50, 50, ..., 50, 50, 50]], dtype=int32)
test_img_acq = {'Cel': array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]), 'StartDelay': array([9119019, 9119019, 9119019, 9119019, 9119019, 9119019, 9119019,        9119019, 9119019, 9119019], dtype=int32), 'Status': array([2, 2, 2, 2, 2, 2, 2, 2, 2, 2], dtype=uint32), 'TagLength': array([24, 24, 24, 24, 24, 24, 24, 24, 24, 24], dtype=uint32), 'TagType': array([3, 3, 3, 3, 3, 3, 3, 3, 3, 3], dtype=uint32)}
test_init(new_fh_init, fromfile)[source]

Set up the hrit file handler for testing.

test_pro = {'ImageAcquisition': {'Cel': array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]), 'StartDelay': array([9119019, 9119019, 9119019, 9119019, 9119019, 9119019, 9119019,        9119019, 9119019, 9119019], dtype=int32), 'Status': array([2, 2, 2, 2, 2, 2, 2, 2, 2, 2], dtype=uint32), 'TagLength': array([24, 24, 24, 24, 24, 24, 24, 24, 24, 24], dtype=uint32), 'TagType': array([3, 3, 3, 3, 3, 3, 3, 3, 3, 3], dtype=uint32)}, 'ImageCalibration': array([[50, 50, 50, ..., 50, 50, 50],        [50, 50, 50, ..., 50, 50, 50],        [50, 50, 50, ..., 50, 50, 50],        ...,        [50, 50, 50, ..., 50, 50, 50],        [50, 50, 50, ..., 50, 50, 50],        [50, 50, 50, ..., 50, 50, 50]], dtype=int32), 'SatelliteStatus': {'NominalLongitude': 1.3264, 'SatelliteCondition': 1, 'SatelliteID': 19002, 'SatelliteName': b'ELECTRO', 'TagLength': 292, 'TagType': 2, 'TimeOffset': 0.0}}
test_sat_status = {'NominalLongitude': 1.3264, 'SatelliteCondition': 1, 'SatelliteID': 19002, 'SatelliteName': b'ELECTRO', 'TagLength': 292, 'TagType': 2, 'TimeOffset': 0.0}
class satpy.tests.reader_tests.test_electrol_hrit.Testrecarray2dict(methodName='runTest')[source]

Bases: TestCase

Test the function that converts numpy record arrays into dicts for use within SatPy.

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

Test record array.