satpy.tests.reader_tests.test_hy2_scat_l2b_h5 module

Module for testing the satpy.readers.hy2_scat_l2b_h5 module.

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

Bases: FakeHDF5FileHandler

Swap-in HDF5 File Handler.

Get fake file content from ‘get_test_content’.

_get_all_ambiguities_data(num_rows, num_cols, num_amb)[source]
_get_geo_data(num_rows, num_cols)[source]
_get_geo_data_nsoas(num_rows, num_cols)[source]
_get_global_attrs(num_rows, num_cols)[source]
_get_selection_data(num_rows, num_cols)[source]
_get_wvc_row_time(num_rows)[source]
get_test_content(filename, filename_info, filetype_info)[source]

Mimic reader input file content.

class satpy.tests.reader_tests.test_hy2_scat_l2b_h5.TestHY2SCATL2BH5Reader(methodName='runTest')[source]

Bases: TestCase

Test HY2 Scatterometer L2B H5 Reader.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

_classSetupFailed = False
_class_cleanups = []
setUp()[source]

Wrap HDF5 file handler with our own fake handler.

tearDown()[source]

Stop wrapping the HDF5 file handler.

test_load_data_all_ambiguities()[source]

Test loading data.

test_load_data_row_times()[source]

Test loading data.

test_load_data_selection()[source]

Test loading data.

test_load_geo()[source]

Test loading data.

test_load_geo_nsoas()[source]

Test loading data from nsoas file.

test_properties()[source]

Test platform_name.

test_reading_attrs()[source]

Test loading data.

test_reading_attrs_nsoas()[source]

Test loading data.

yaml_file = 'hy2_scat_l2b_h5.yaml'