satpy.tests.reader_tests.test_avhrr_l1b_gaclac module

Pygac interface.

class satpy.tests.reader_tests.test_avhrr_l1b_gaclac.GACLACFilePatcher(methodName='runTest')[source]

Bases: PygacPatcher

Patch pygac.

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]

Patch GACLACFile.

class satpy.tests.reader_tests.test_avhrr_l1b_gaclac.PygacPatcher(methodName='runTest')[source]

Bases: TestCase

Patch pygac.

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]

Patch pygac imports.

tearDown()[source]

Unpatch the pygac imports.

class satpy.tests.reader_tests.test_avhrr_l1b_gaclac.TestGACLACFile(methodName='runTest')[source]

Bases: GACLACFilePatcher

Test the GACLAC file handler.

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_eosip_fh(filename, **kwargs)[source]

Create a file handler.

_get_fh(filename='NSS.GHRR.NG.D88002.S0614.E0807.B0670506.WI', **kwargs)[source]

Create a file handler.

test__slice(strip_invalid_lat, get_qual_flags)[source]

Test slicing.

test_get_angle()[source]

Test getting the angle.

test_get_channel()[source]

Test getting the channels.

test_get_dataset_angles(get_angle, *mocks)[source]

Test getting the angles.

test_get_dataset_latlon(*mocks)[source]

Test getting the latitudes and longitudes.

test_get_dataset_qual_flags(*mocks)[source]

Test getting the qualitiy flags.

test_get_dataset_slice(get_channel, slc, *mocks)[source]

Get a slice of a dataset.

test_init()[source]

Test GACLACFile initialization.

test_init_eosip()[source]

Test GACLACFile initialization.

test_read_raw_data()[source]

Test raw data reading.

test_slice(_slice)[source]

Test slicing.

test_strip_invalid_lat()[source]

Test stripping invalid coordinates.

class satpy.tests.reader_tests.test_avhrr_l1b_gaclac.TestGetDataset(methodName='runTest')[source]

Bases: GACLACFilePatcher

Test the get_dataset method.

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.

static _check_get_channel_calls(fh, get_channel)[source]

Check _get_channel() calls.

_classSetupFailed = False
_class_cleanups = []
static _create_expected(name)[source]
static _create_file_handler(reader)[source]

Mock reader and file handler.

static _get_dataset(fh)[source]
setUp()[source]

Set up the instance.

test_get_dataset_channels(get_channel, *mocks)[source]

Test getting the channel datasets.

test_get_dataset_no_tle(get_channel, *mocks)[source]

Test getting the channel datasets when no TLEs are present.

satpy.tests.reader_tests.test_avhrr_l1b_gaclac._get_fh_mocked(init_mock, **attrs)[source]

Create a mocked file handler with the given attributes.

satpy.tests.reader_tests.test_avhrr_l1b_gaclac._get_reader_mocked(along_track=3)[source]

Create a mocked reader.