satpy.tests.reader_tests.test_fci_l2_nc module

The fci_cld_l2_nc reader tests package.

class satpy.tests.reader_tests.test_fci_l2_nc.TestFciL2NCFileHandler(methodName='runTest')[source]

Bases: TestCase

Test the FciL2NCFileHandler reader.

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]

Set up the test by creating a test file and opening it with the reader.

tearDown()[source]

Remove the previously created test file.

test_all_basic()[source]

Test all basic functionalities.

test_area_definition(me_, gad_)[source]

Test the area definition computation.

test_dataset()[source]

Test the correct execution of the get_dataset function with a valid file_key.

test_dataset_with_invalid_filekey()[source]

Test the correct execution of the get_dataset function with an invalid file_key.

test_dataset_with_layer()[source]

Check the correct execution of the get_dataset function with a valid file_key & layer.

test_dataset_with_scalar()[source]

Test the execution of the get_dataset function for scalar values.

test_dataset_with_total_cot()[source]

Test the correct execution of the get_dataset function for total COT (add contributions from two layers).

class satpy.tests.reader_tests.test_fci_l2_nc.TestFciL2NCReadingByteData(methodName='runTest')[source]

Bases: TestCase

Test the FciL2NCFileHandler when reading and extracting byte data.

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]

Set up the test by creating a test file and opening it with the reader.

tearDown()[source]

Remove the previously created test file.

test_byte_extraction()[source]

Test the execution of the get_dataset function.

class satpy.tests.reader_tests.test_fci_l2_nc.TestFciL2NCSegmentFileHandler(methodName='runTest')[source]

Bases: TestCase

Test the FciL2NCSegmentFileHandler reader.

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 _get_unique_array(iarr, jarr)[source]
setUp()[source]

Set up the test by creating a test file and opening it with the reader.

tearDown()[source]

Remove the previously created test file.

test_all_basic()[source]

Test all basic functionalities.

test_dataset()[source]

Test the correct execution of the get_dataset function with valid file_key.

test_dataset_slicing_catid()[source]

Test the correct execution of the _slice_dataset function with ‘category_id’ set.

test_dataset_slicing_chid_catid()[source]

Test the correct execution of the _slice_dataset function with ‘channel_id’ and ‘category_id’ set.

test_dataset_slicing_irid()[source]

Test the correct execution of the _slice_dataset function with ‘ir_channel_id’ set.

test_dataset_slicing_visid_catid()[source]

Test the correct execution of the _slice_dataset function with ‘vis_channel_id’ and ‘category_id’ set.

test_dataset_with_adef()[source]

Test the correct execution of the get_dataset function with with_area_definition=True.

test_dataset_with_adef_and_wrongs_dims()[source]

Test the correct execution of the get_dataset function with dims that don’t match expected AreaDefinition.

test_dataset_with_invalid_filekey()[source]

Test the correct execution of the get_dataset function with an invalid file_key.

test_dataset_with_scalar()[source]

Test the execution of the get_dataset function for scalar values.