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.TestFciL2NCAMVFileHandler[source]

Bases: object

Test the FciL2NCAMVFileHandler reader.

test_all_basic(amv_filehandler, amv_file)[source]

Test all basic functionalities.

test_dataset(amv_filehandler)[source]

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

test_dataset_with_invalid_filekey(amv_filehandler)[source]

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

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 nc_key.

test_dataset_with_invalid_filekey()[source]

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

test_dataset_with_layer()[source]

Check the correct execution of the get_dataset function with a valid nc_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).

test_emumerations()[source]

Test the conversion of enumerated type information into flag_values and flag_meanings.

test_unit_from_file()[source]

Test that a unit stored with attribute unit in the file is assigned to the units attribute.

test_units_from_file()[source]

Test units extraction from NetCDF file.

test_units_from_yaml()[source]

Test units extraction from yaml file.

test_units_none_conversion()[source]

Test that a units stored as ‘none’ is converted to None.

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 nc_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 nc_key.

test_dataset_with_scalar()[source]

Test the execution of the get_dataset function for scalar values.

satpy.tests.reader_tests.test_fci_l2_nc.amv_file(tmp_path_factory)[source]

Create an AMV file.

satpy.tests.reader_tests.test_fci_l2_nc.amv_filehandler(amv_file)[source]

Create an AMV filehandler.