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’.

_create_channel_data(chs, cwls)[source]
_create_coeffs_array(channel_numbers: list[int]) DataArray[source]
_get_1km_data()[source]
_get_2km_data()[source]
_get_4km_data()[source]
_get_500m_data()[source]
_get_geo_data()[source]
_make_cal_data(cwl, ch, dims)[source]

Make test data.

_make_geo_data(dims)[source]
_make_nom_data(cwl, ch, dims)[source]
get_test_content(filename, filename_info, filetype_info)[source]

Mimic reader input file content.

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

Bases: object

Test VIRR L1B Reader.

static _assert_which_channels_are_loaded(available_datasets, band_names, resolution_to_test)[source]
_check_calibration_and_units(band_names, result)[source]
static _check_keys_for_dsq(available_datasets, resolution_to_test)[source]
static _check_units(band_name, result)[source]
_create_reader_for_resolutions(*resolutions)[source]
setup_method()[source]

Wrap HDF5 file handler with our own fake handler.

teardown_method()[source]

Stop wrapping the HDF5 file handler.

test_agri_all_bands_have_right_units()[source]

Test all bands have the right units.

test_agri_counts_calibration()[source]

Test loading data at counts calibration.

test_agri_for_one_resolution(resolution_to_test, satname)[source]

Test loading data when only one resolution is available.

test_agri_geo(satname)[source]

Test loading data for angles.

test_agri_orbital_parameters_are_correct()[source]

Test orbital parameters are set correctly.

test_fy4a_channels_are_loaded_with_right_resolution()[source]

Test all channels are loaded with the right resolution.

test_times_correct()[source]

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

yaml_file = 'agri_fy4a_l1.yaml'
satpy.tests.reader_tests.test_agri_l1._create_filenames_from_resolutions(satname, *resolutions)[source]

Create filenames from the given resolutions.