satpy.tests.reader_tests.test_agri_l1 module

The agri_l1 reader tests package.

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

Bases: FakeHDF5FileHandler

Swap-in HDF5 File Handler.

Get fake file content from ‘get_test_content’.

get_test_content(filename, filename_info, filetype_info)[source]

Mimic reader input file content.

make_test_data(cwl, ch, prefix, dims, file_type)[source]

Make test data.

class satpy.tests.reader_tests.test_agri_l1.Test_HDF_AGRI_L1_cal[source]

Bases: object

Test VIRR L1B Reader.

setup_method()[source]

Wrap HDF5 file handler with our own fake handler.

teardown_method()[source]

Stop wrapping the HDF5 file handler.

test_fy4a_all_bands_have_right_units()[source]

Test all bands have the right units.

test_fy4a_channels_are_loaded_with_right_resolution()[source]

Test all channels are loaded with the right resolution.

test_fy4a_counts_calibration()[source]

Test loading data at counts calibration.

test_fy4a_for_one_resolution(resolution_to_test)[source]

Test loading data when only one resolution is available.

test_fy4a_geo()[source]

Test loading data for angles.

test_fy4a_orbital_parameters_are_correct()[source]

Test orbital parameters are set correctly.

test_times_correct()[source]

Test that the reader handles the two possible time formats correctly.

yaml_file = 'agri_l1.yaml'