satpy.tests.reader_tests.test_gpm_imerg module

Unittests for GPM IMERG reader.

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

Bases: FakeHDF5FileHandler

Swap-in HDF5 File Handler.

Get fake file content from ‘get_test_content’.

_get_geo_data(num_rows, num_cols)[source]
_get_precip_data(num_rows, num_cols)[source]
get_test_content(filename, filename_info, filetype_info)[source]

Mimic reader input file content.

class satpy.tests.reader_tests.test_gpm_imerg.TestHdf5IMERG(methodName='runTest')[source]

Bases: TestCase

Test the GPM IMERG 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()[source]

Test loading data.

yaml_file = 'gpm_imerg.yaml'