satpy.tests.reader_tests.test_ahi_hsd module

The ahi_hsd reader tests package.

class satpy.tests.reader_tests.test_ahi_hsd.TestAHICalibration(methodName='runTest')[source]

Bases: TestCase

Test case for various AHI 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(*mocks)[source]

Create fake data for testing.

test_default_calibrate(*mocks)[source]

Test default in-file calibration modes.

test_updated_calibrate()[source]

Test updated in-file calibration modes.

test_user_calibration()[source]

Test user-defined calibration modes.

class satpy.tests.reader_tests.test_ahi_hsd.TestAHIHSDFileHandler[source]

Bases: object

Tests for the AHI HSD file handler.

test_actual_satellite_position(round_actual_position, expected_result)[source]

Test that rounding of the actual satellite position can be controlled.

test_bad_calibration()[source]

Test that a bad calibration mode causes an exception.

test_blocklen_error(*mocks)[source]

Test erraneous blocklength.

test_is_valid_time()[source]

Test that valid times are correctly identified.

test_read_band(calibrate, *mocks)[source]

Test masking of space pixels.

test_read_header(*mocks)[source]

Test header reading.

test_scanning_frequencies()[source]

Test scanning frequencies.

test_scene_loading(calibrate, *mocks)[source]

Test masking of space pixels.

test_time_properties()[source]

Test start/end/scheduled time properties.

test_time_rounding()[source]

Test rounding of the nominal time.

class satpy.tests.reader_tests.test_ahi_hsd.TestAHIHSDNavigation(methodName='runTest')[source]

Bases: TestCase

Test the AHI HSD reader navigation.

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 = []
test_region(fromfile, np2str)[source]

Test region navigation.

test_segment(fromfile, np2str)[source]

Test segment navigation.

satpy.tests.reader_tests.test_ahi_hsd._create_fake_file_handler(in_fname, filename_info=None, filetype_info=None, fh_kwargs=None)[source]
satpy.tests.reader_tests.test_ahi_hsd._custom_fromfile(*args, **kwargs)[source]
satpy.tests.reader_tests.test_ahi_hsd._fake_hsd_handler(fh_kwargs=None)[source]

Create a test file handler.

satpy.tests.reader_tests.test_ahi_hsd._new_unzip(fname, prefix='')[source]

Fake unzipping.