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_read_band(calibrate, *mocks)[source]

Test masking of space pixels.

test_read_band_from_actual_file(hsd_file_jp01)[source]

Test read_bands on real data.

test_read_header(*mocks)[source]

Test header reading.

test_scene_loading(calibrate, *mocks)[source]

Test masking of space pixels.

test_time_properties()[source]

Test start/end/scheduled time properties.

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.

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

Bases: object

Test case for nominal timestamp computation.

test_areas(area, expected)[source]

Test nominal timestamps for multiple areas.

test_invalid_timeline(timeline, expected)[source]

Test handling of invalid timeline.

test_timelines(timeline, obs_start_time, expected)[source]

Test nominal timestamps for multiple timelines.

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.

satpy.tests.reader_tests.test_ahi_hsd.hsd_file_jp01(tmp_path)[source]

Create a jp01 hsd file.