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

Get scan end timestamp for testing.

observation_start_time()[source]

Get scan start timestamp for testing.

test_chebyshev()[source]

Test the chebyshev function.

test_dec10216()[source]

Test the dec10216 function.

test_get_cds_time_array()[source]

Test the get_cds_time function for array inputs.

test_get_cds_time_nanoseconds()[source]

Test the get_cds_time function for having nanosecond precision.

test_get_cds_time_scalar()[source]

Test the get_cds_time function for scalar inputs.

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

Test the error handling for the horizontal hrv padding.

static test_pad_data_vertically()[source]

Test the vertical hrv padding.

test_pad_data_vertically_bad_shape()[source]

Test the error handling for the vertical hrv padding.

test_round_nom_time()[source]

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.

orbit_polynomial()[source]

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.

time()[source]

Get scan timestamp for testing.

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

Evaluate 4th order Chebyshev polynomial.