satpy.tests.reader_tests.test_atms_sdr_hdf5 module

Module for testing the ATMS SDR HDF5 reader.

class satpy.tests.reader_tests.test_atms_sdr_hdf5.FakeHDF5_ATMS_SDR_FileHandler(filename, filename_info, filetype_info, include_factors=True)[source]

Bases: FakeHDF5FileHandler

Swap-in HDF5 File Handler.

Create fake file handler.

static _add_basic_metadata_to_file_content(file_content, filename_info, num_grans)[source]
_add_data_info_to_file_content(file_content, filename, data_var_prefix, num_grans)[source]
static _add_geo_ref(file_content, filename)[source]
static _add_geolocation_info_to_file_content(file_content, filename, data_var_prefix, num_grans)[source]
_add_granule_specific_info_to_file_content(file_content, dataset_group, num_granules, num_scans_per_granule, gran_group_prefix)[source]
static _convert_numpy_content_to_dataarray(final_content)[source]
static _get_per_granule_lats()[source]
static _get_per_granule_lons()[source]
_num_of_bands = 22
_num_scans_per_gran = [12]
_num_test_granules = 1
get_test_content(filename, filename_info, filetype_info)[source]

Mimic reader input file content.

class satpy.tests.reader_tests.test_atms_sdr_hdf5.TestATMS_SDR_Reader[source]

Bases: object

Test ATMS SDR Reader.

_assert_bt_properties(data_arr, num_scans=1, with_area=True)[source]
setup_method()[source]

Wrap HDF5 file handler with our own fake handler.

teardown_method()[source]

Stop wrapping the HDF5 file handler.

test_init()[source]

Test basic init with no extra parameters.

test_init_start_end_time()[source]

Test basic init with start and end times around the start/end times of the provided file.

test_load_all_bands(files, expected)[source]

Load brightness temperatures for all 22 ATMS channels, with/without geolocation.

yaml_file = 'atms_sdr_hdf5.yaml'