satpy.tests.reader_tests.test_ghi_l1 module

The agri_l1 reader tests package.

class satpy.tests.reader_tests.test_ghi_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, file_type)[source]
_create_coeff_array(nb_channels)[source]
_get_250m_data(file_type)[source]
_get_2km_data(file_type)[source]
_get_500m_data(file_type)[source]
_get_geo_data(file_type)[source]
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_ghi_l1.Test_HDF_GHI_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_ghi_all_bands_have_right_units()[source]

Test all bands have the right units.

test_ghi_channels_are_loaded_with_right_resolution()[source]

Test all channels are loaded with the right resolution.

test_ghi_counts_calibration()[source]

Test loading data at counts calibration.

test_ghi_for_one_resolution(resolution_to_test)[source]

Test loading data when only one resolution is available.

test_ghi_geo()[source]

Test loading data for angles.

test_ghi_orbital_parameters_are_correct()[source]

Test orbital parameters are set correctly.

yaml_file = 'ghi_l1.yaml'
satpy.tests.reader_tests.test_ghi_l1._create_filenames_from_resolutions(*resolutions)[source]

Create filenames from the given resolutions.