satpy.tests.reader_tests.test_ahi_l1b_gridded_bin module

The ahi_l1b_gridded_bin reader tests package.

class satpy.tests.reader_tests.test_ahi_l1b_gridded_bin.TestAHIGriddedArea(methodName='runTest')[source]

Bases: TestCase

Test the AHI gridded reader definition.

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 = []
static make_fh(filetype, area='fld')[source]

Create a test file handler.

setUp()[source]

Create fake data for testing.

test_area_def()[source]

Check that a valid full disk area is produced.

test_bad_area()[source]

Ensure an error is raised for an usupported area.

test_hi_res()[source]

Check size of the low resolution (0.5km) grid.

test_low_res()[source]

Check size of the low resolution (2km) grid.

test_med_res()[source]

Check size of the low resolution (1km) grid.

class satpy.tests.reader_tests.test_ahi_l1b_gridded_bin.TestAHIGriddedFileCalibration(methodName='runTest')[source]

Bases: TestCase

Test case for the file calibration types.

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]

Create a test file handler.

test_calibrate(np_loadtxt, os_exist, get_luts)[source]

Test the calibration modes of AHI using the LUTs.

class satpy.tests.reader_tests.test_ahi_l1b_gridded_bin.TestAHIGriddedFileHandler(methodName='runTest')[source]

Bases: TestCase

Test case for the file reading.

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 = []
new_unzip()[source]

Fake unzipping.

setUp()[source]

Create a test file handler.

test_dataread(memmap)[source]

Check that a dask array is returned from the read function.

test_destructor(exist_patch, remove_patch)[source]

Check that file handler deletes files if needed.

test_get_dataset(mocked_read)[source]

Check that a good dataset is returned on request.

class satpy.tests.reader_tests.test_ahi_l1b_gridded_bin.TestAHIGriddedLUTs(methodName='runTest')[source]

Bases: TestCase

Test case for the downloading and preparing LUTs.

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 = []
mocked_ftp_dl()[source]

Fake download of LUT tar file by creating a local tar.

setUp()[source]

Create a test file handler.

tearDown()[source]

Remove files and directories created by the tests.

test_download_luts(mock_dl, mock_shutil)[source]

Test that the FTP library is called for downloading LUTS.

test_get_luts()[source]

Check that the function to download LUTs operates successfully.