satpy.tests.reader_tests.test_mersi_l1b module

Tests for the ‘mersi2_l1b’ reader.

class satpy.tests.reader_tests.test_mersi_l1b.FakeHDF5FileHandler2(filename, filename_info, filetype_info, **kwargs)[source]

Bases: FakeHDF5FileHandler

Swap-in HDF5 File Handler.

Get fake file content from ‘get_test_content’.

_add_band_data_file_content()[source]
_add_geo_data_file_content()[source]
_add_tbb_coefficients(global_attrs)[source]
property _geo_prefix_for_file_type
_get_data_file_content()[source]
property _num_cols_for_file_type
property _rows_per_scan
_set_sensor_attrs(global_attrs)[source]
get_test_content(filename, filename_info, filetype_info)[source]

Mimic reader input file content.

num_cols = 2048
num_scans = 2
class satpy.tests.reader_tests.test_mersi_l1b.MERSIL1BTester[source]

Bases: object

Test MERSI2 L1B Reader.

setup_method()[source]

Wrap HDF5 file handler with our own fake handler.

teardown_method()[source]

Stop wrapping the HDF5 file handler.

class satpy.tests.reader_tests.test_mersi_l1b.TestMERSI2L1B[source]

Bases: MERSIL1BTester

Test the FY3D MERSI2 L1B reader.

filenames_1000m = ['tf2019071182739.FY3D-X_MERSI_1000M_L1B.HDF', 'tf2019071182739.FY3D-X_MERSI_GEO1K_L1B.HDF']
filenames_250m = ['tf2019071182739.FY3D-X_MERSI_0250M_L1B.HDF', 'tf2019071182739.FY3D-X_MERSI_GEOQK_L1B.HDF']
filenames_all = ['tf2019071182739.FY3D-X_MERSI_1000M_L1B.HDF', 'tf2019071182739.FY3D-X_MERSI_GEO1K_L1B.HDF', 'tf2019071182739.FY3D-X_MERSI_0250M_L1B.HDF', 'tf2019071182739.FY3D-X_MERSI_GEOQK_L1B.HDF']
test_1km_resolutions()[source]

Test loading data when only 1km resolutions are available.

test_250_resolutions()[source]

Test loading data when only 250m resolutions are available.

test_all_resolutions()[source]

Test loading data when all resolutions are available.

test_counts_calib()[source]

Test loading data at counts calibration.

test_rad_calib()[source]

Test loading data at radiance calibration.

yaml_file = 'mersi2_l1b.yaml'
class satpy.tests.reader_tests.test_mersi_l1b.TestMERSILLL1B[source]

Bases: MERSIL1BTester

Test the FY3E MERSI-LL L1B reader.

filenames_1000m = ['FY3E_MERSI_GRAN_L1_20230410_1910_1000M_V0.HDF', 'FY3E_MERSI_GRAN_L1_20230410_1910_GEO1K_V0.HDF']
filenames_250m = ['FY3E_MERSI_GRAN_L1_20230410_1910_0250M_V0.HDF', 'FY3E_MERSI_GRAN_L1_20230410_1910_GEOQK_V0.HDF']
filenames_all = ['FY3E_MERSI_GRAN_L1_20230410_1910_1000M_V0.HDF', 'FY3E_MERSI_GRAN_L1_20230410_1910_GEO1K_V0.HDF', 'FY3E_MERSI_GRAN_L1_20230410_1910_0250M_V0.HDF', 'FY3E_MERSI_GRAN_L1_20230410_1910_GEOQK_V0.HDF']
test_1km_resolutions()[source]

Test loading data when only 1km resolutions are available.

test_250_resolutions()[source]

Test loading data when only 250m resolutions are available.

test_all_resolutions()[source]

Test loading data when all resolutions are available.

test_rad_calib()[source]

Test loading data at radiance calibration.

yaml_file = 'mersi_ll_l1b.yaml'
class satpy.tests.reader_tests.test_mersi_l1b.TestMERSIRML1B[source]

Bases: MERSIL1BTester

Test the FY3E MERSI-RM L1B reader.

filenames_500m = ['FY3G_MERSI_GRAN_L1_20230410_1910_0500M_V1.HDF', 'FY3G_MERSI_GRAN_L1_20230410_1910_GEOHK_V1.HDF']
test_500m_resolution()[source]

Test loading data when all resolutions are available.

test_rad_calib()[source]

Test loading data at radiance calibration.

yaml_file = 'mersi_rm_l1b.yaml'
satpy.tests.reader_tests.test_mersi_l1b._get_1km_data(num_scans, rows_per_scan, num_cols)[source]
satpy.tests.reader_tests.test_mersi_l1b._get_250m_data(num_scans, rows_per_scan, num_cols)[source]
satpy.tests.reader_tests.test_mersi_l1b._get_250m_ll_data(num_scans, rows_per_scan, num_cols)[source]
satpy.tests.reader_tests.test_mersi_l1b._get_500m_data(num_scans, rows_per_scan, num_cols)[source]
satpy.tests.reader_tests.test_mersi_l1b._get_calibration(num_scans, ftype)[source]
satpy.tests.reader_tests.test_mersi_l1b._get_geo_data(num_scans, rows_per_scan, num_cols, prefix)[source]
satpy.tests.reader_tests.test_mersi_l1b._test_helper(res)[source]

Remove test code duplication.

satpy.tests.reader_tests.test_mersi_l1b.make_test_data(dims)[source]

Make test data.