satpy.tests.reader_tests.test_hrit_base module

The HRIT base reader tests package.

class satpy.tests.reader_tests.test_hrit_base.TestHRITDecompress(methodName='runTest')[source]

Bases: TestCase

Test the on-the-fly decompression.

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.

test_decompress(popen)[source]

Test decompression works.

test_xrit_cmd()[source]

Test running the xrit decompress command.

test_xrit_outfile()[source]

Test the right decompression filename is used.

class satpy.tests.reader_tests.test_hrit_base.TestHRITFileHandler(methodName='runTest')[source]

Bases: TestCase

Test the HRITFileHandler.

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.

setUp(fromfile)[source]

Set up the hrit file handler for testing.

test_get_area_def()[source]

Test getting an area definition.

test_get_area_extent()[source]

Test getting the area extent.

test_get_xy_from_linecol()[source]

Test get_xy_from_linecol.

test_read_band_FSFile(fsfile_open)[source]

Test reading a single band from a FSFile.

test_read_band_filepath(memmap)[source]

Test reading a single band from a filepath.

satpy.tests.reader_tests.test_hrit_base.new_get_hd(instance, hdr_info)[source]

Generate some metadata.