satpy.tests.reader_tests.test_ahi_hrit module

The hrit ahi reader tests package.

class satpy.tests.reader_tests.test_ahi_hrit.TestHRITJMAFileHandler(methodName='runTest')[source]

Bases: TestCase

Test the HRITJMAFileHandler.

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

Get sample header entry for scanline acquisition times.

Lines: 1, 21, 41, 61, …, nlines Times: 1970-01-01 00:00 + (1, 21, 41, 61, …, nlines) seconds

So the interpolated times are expected to be 1970-01-01 + (1, 2, 3, 4, …, nlines) seconds. Note that there will be some floating point inaccuracies, because timestamps are stored with only 6 decimals precision.

_get_mda(loff=5500.0, coff=5500.0, nlines=11000, ncols=11000, segno=0, numseg=1, vis=True, platform='Himawari-8')[source]

Create metadata dict like HRITFileHandler would do it.

_get_reader(mocked_init, mda, filename_info=None, filetype_info=None, reader_kwargs=None)[source]
test_calibrate()[source]

Test calibration.

test_get_acq_time()[source]

Test computation of scanline acquisition times.

test_get_area_def()[source]

Test getting an AreaDefinition.

test_get_dataset(base_get_dataset)[source]

Test getting a dataset.

test_get_platform(mocked_init)[source]

Test platform identification.

test_init()[source]

Test creating the file handler.

test_mask_space()[source]

Test masking of space pixels.

test_mjd2datetime64()[source]

Test conversion from modified julian day to datetime64.

test_start_time_from_aqc_time()[source]

Test that by the datetime from the metadata returned when use_acquisition_time_as_start_time=True.

test_start_time_from_filename()[source]

Test that by default the datetime in the filename is returned.