satpy.tests.reader_tests.test_seviri_l1b_native module

Unittesting the Native SEVIRI reader.

class satpy.tests.reader_tests.test_seviri_l1b_native.TestNativeMSGArea(methodName='runTest')[source]

Bases: TestCase

Test NativeMSGFileHandler.get_area_extent.

The expected results have been verified by manually inspecting the output of geoferenced imagery.

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.

static create_test_header(earth_model, dataset_id, is_full_disk, is_rapid_scan)[source]

Create mocked NativeMSGFileHandler.

Contains sufficient attributes for NativeMSGFileHandler.get_area_extent to be able to execute.

static create_test_trailer(is_rapid_scan)[source]

Create Test Trailer.

Mocked Trailer with sufficient attributes for NativeMSGFileHandler.get_area_extent to be able to execute.

prepare_area_defs(test_dict)[source]

Prepare calculated and expected area definitions for equal checking.

prepare_is_roi(test_dict)[source]

Prepare calculated and expected check for region of interest data for equal checking.

test_earthmodel1_hrv_fulldisk()[source]

Test the HRV FES with the EarthModel 1.

test_earthmodel1_hrv_fulldisk_fill()[source]

Test the HRV FES padded to fulldisk with the EarthModel 1.

test_earthmodel1_hrv_rapidscan()[source]

Test the HRV RSS with the EarthModel 1.

test_earthmodel1_hrv_rapidscan_fill()[source]

Test the HRV RSS padded to fulldisk with the EarthModel 1.

test_earthmodel1_hrv_roi()[source]

Test the HRV ROI with the EarthModel 1.

test_earthmodel1_hrv_roi_fill()[source]

Test the HRV ROI padded to fulldisk with the EarthModel 1.

test_earthmodel1_visir_fulldisk()[source]

Test the VISIR FES with the EarthModel 1.

test_earthmodel1_visir_rapidscan()[source]

Test the VISIR RSS with the EarthModel 1.

test_earthmodel1_visir_rapidscan_fill()[source]

Test the VISIR RSS padded to fulldisk with the EarthModel 1.

test_earthmodel1_visir_roi()[source]

Test the VISIR ROI with the EarthModel 1.

test_earthmodel1_visir_roi_fill()[source]

Test the VISIR ROI padded to fulldisk with the EarthModel 1.

test_earthmodel2_hrv_fulldisk()[source]

Test the HRV FES with the EarthModel 2.

test_earthmodel2_hrv_fulldisk_fill()[source]

Test the HRV FES padded to fulldisk with the EarthModel 2.

test_earthmodel2_hrv_rapidscan()[source]

Test the HRV RSS with the EarthModel 2.

test_earthmodel2_hrv_rapidscan_fill()[source]

Test the HRV RSS padded to fulldisk with the EarthModel 2.

test_earthmodel2_hrv_roi()[source]

Test the HRV ROI with the EarthModel 2.

test_earthmodel2_hrv_roi_fill()[source]

Test the HRV ROI padded to fulldisk with the EarthModel 2.

test_earthmodel2_visir_fulldisk()[source]

Test the VISIR FES with the EarthModel 2.

test_earthmodel2_visir_rapidscan()[source]

Test the VISIR RSS with the EarthModel 2.

test_earthmodel2_visir_rapidscan_fill()[source]

Test the VISIR RSS padded to fulldisk with the EarthModel 2.

test_earthmodel2_visir_roi()[source]

Test the VISIR ROI with the EarthModel 2.

test_earthmodel2_visir_roi_fill()[source]

Test the VISIR ROI padded to fulldisk with the EarthModel 2.

test_is_roi_fulldisk()[source]

Test check for region of interest with FES data.

test_is_roi_rapidscan()[source]

Test check for region of interest with RSS data.

test_is_roi_roi()[source]

Test check for region of interest with ROI data.

class satpy.tests.reader_tests.test_seviri_l1b_native.TestNativeMSGCalibration[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_native.TestNativeMSGDataset[source]

Bases: object

Tests for getting the dataset.

file_handler()[source]

Create a file handler for testing.

test_get_dataset(file_handler)[source]

Test getting the dataset.

test_get_dataset_with_raw_metadata(file_handler)[source]

Test provision of raw metadata.

test_satpos_no_valid_orbit_polynomial(file_handler)[source]

Test satellite position if there is no valid orbit polynomial.

class satpy.tests.reader_tests.test_seviri_l1b_native.TestNativeMSGFileHandler(methodName='runTest')[source]

Bases: TestCase

Test the NativeMSGFileHandler.

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.

test_get_available_channels()[source]

Test the derivation of the available channel list.

class satpy.tests.reader_tests.test_seviri_l1b_native.TestNativeMSGFilenames[source]

Bases: object

Test identification of Native format filenames.

reader()[source]

Return reader for SEVIRI Native format.

test_file_pattern(reader)[source]

Test file pattern matching.

class satpy.tests.reader_tests.test_seviri_l1b_native.TestNativeMSGPadder(methodName='runTest')[source]

Bases: TestCase

Test Padder of the native l1b seviri reader.

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.

static prepare_padder(test_dict)[source]

Initialize Padder and pad test data.

test_padder_fes_hrv()[source]

Test padder for FES HRV data.

test_padder_rss_roi()[source]

Test padder for RSS and ROI data (applies to both VISIR and HRV).

satpy.tests.reader_tests.test_seviri_l1b_native.test_header_type(file_content, exp_header_size)[source]

Test identification of the file header type.