satpy.tests.reader_tests.test_seviri_base module

Test the MSG common (native and hrit format) functionionalities.

class satpy.tests.reader_tests.test_seviri_base.SeviriBaseTest(methodName='runTest')[source]

Bases: TestCase

Test SEVIRI base.

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 scan end timestamp for testing.


Get scan start timestamp for testing.


Test the chebyshev function.


Test the dec10216 function.


Test the get_cds_time function.

static test_get_padding_area_float()[source]

Test padding area generator for floats.

static test_get_padding_area_int()[source]

Test padding area generator for integers.

static test_pad_data_horizontally()[source]

Test the horizontal hrv padding.


Test the error handling for the horizontal hrv padding.

static test_pad_data_vertically()[source]

Test the vertical hrv padding.


Test the error handling for the vertical hrv padding.


Test the rouding of start/end_time.

class satpy.tests.reader_tests.test_seviri_base.TestMeirinkSlope[source]

Bases: object

Unit tests for the slope of Meirink calibration.

test_get_meirink_slope_2020(platform_id, time, expected)[source]

Test the value of the slope of the Meirink calibration.

test_get_meirink_slope_epoch(platform_id, channel_name)[source]

Test the value of the slope of the Meirink calibration on 2000-01-01.

class satpy.tests.reader_tests.test_seviri_base.TestOrbitPolynomialFinder[source]

Bases: object

Unit tests for orbit polynomial finder.

test_get_orbit_polynomial(orbit_polynomials, time, orbit_polynomial_exp)[source]

Test getting the satellite locator.

test_get_orbit_polynomial_exceptions(orbit_polynomials, time)[source]

Test exceptions thrown while getting the satellite locator.

class satpy.tests.reader_tests.test_seviri_base.TestSatellitePosition[source]

Bases: object

Test locating the satellite.


Get an orbit polynomial for testing.

test_eval_polynomial(orbit_polynomial, time)[source]

Test getting the position in cartesian coordinates.

test_get_satpos(orbit_polynomial, time)[source]

Test getting the position in geodetic coordinates.


Get scan timestamp for testing.

satpy.tests.reader_tests.test_seviri_base.chebyshev4(c, x, domain)[source]

Evaluate 4th order Chebyshev polynomial.