satpy.tests.reader_tests.test_seviri_l1b_hrit_setup module

Setup for SEVIRI HRIT reader tests.

satpy.tests.reader_tests.test_seviri_l1b_hrit_setup.get_acq_time_cds(start_time, nlines)[source]

Get fake scanline acquisition times.

satpy.tests.reader_tests.test_seviri_l1b_hrit_setup.get_acq_time_exp(start_time, nlines)[source]

Get expected scanline acquisition times.

satpy.tests.reader_tests.test_seviri_l1b_hrit_setup.get_attrs_exp(projection_longitude=0.0)[source]

Get expected dataset attributes.

satpy.tests.reader_tests.test_seviri_l1b_hrit_setup.get_fake_dataset_info()[source]

Create fake dataset info.

satpy.tests.reader_tests.test_seviri_l1b_hrit_setup.get_fake_epilogue()[source]

Create a fake HRIT epilogue.

satpy.tests.reader_tests.test_seviri_l1b_hrit_setup.get_fake_file_handler(observation_start_time, nlines, ncols, projection_longitude=0, orbit_polynomials={'EndTime': array([[datetime.datetime(2006, 1, 1, 12, 0), datetime.datetime(2006, 1, 1, 18, 0), datetime.datetime(2006, 1, 2, 0, 0), datetime.datetime(1958, 1, 1, 0, 0)]], dtype=object), 'StartTime': array([[datetime.datetime(2006, 1, 1, 6, 0), datetime.datetime(2006, 1, 1, 12, 0), datetime.datetime(2006, 1, 1, 18, 0), datetime.datetime(1958, 1, 1, 0, 0)]], dtype=object), 'X': [array([0., 0., 0., 0., 0., 0., 0., 0.]), [84160.7082, 2.9431926, 0.986748617, -0.270135453, -0.038436465, 0.00848718433, 0.000770548174, -0.000144262718], array([0., 0., 0., 0., 0., 0., 0., 0.])], 'Y': [array([0., 0., 0., 0., 0., 0., 0., 0.]), [-5211.70255, 5.12998948, -1.33370453, -0.309634144, 0.0618232793, 0.00750505681, -0.00135131011, -0.000112054405], array([0., 0., 0., 0., 0., 0., 0., 0.])], 'Z': [array([0., 0., 0., 0., 0., 0., 0., 0.]), [-651.293855, 145.830459, 56.13794, -3.90970565, -0.738137565, 0.0306131644, 0.00382892428, -0.000112739309], array([0., 0., 0., 0., 0., 0., 0., 0.])]})[source]

Create a mocked SEVIRI HRIT file handler.

satpy.tests.reader_tests.test_seviri_l1b_hrit_setup.get_fake_filename_info(start_time)[source]

Create fake filename information.

satpy.tests.reader_tests.test_seviri_l1b_hrit_setup.get_fake_mda(nlines, ncols, start_time)[source]

Create fake metadata.

satpy.tests.reader_tests.test_seviri_l1b_hrit_setup.get_fake_prologue(projection_longitude, orbit_polynomials)[source]

Create a fake HRIT prologue.

satpy.tests.reader_tests.test_seviri_l1b_hrit_setup.get_new_read_prologue(prologue)[source]

Create mocked read_prologue() method.

satpy.tests.reader_tests.test_seviri_l1b_hrit_setup.new_get_hd(instance, hdr_info)[source]

Generate some metadata.