satpy.tests.reader_tests.test_fci_l1c_nc module

Tests for the ‘fci_l1c_nc’ reader.

class satpy.tests.reader_tests.test_fci_l1c_nc.FakeNetCDF4FileHandler2(filename, filename_info, filetype_info, auto_maskandscale=False, xarray_kwargs=None, cache_var_size=0, cache_handle=False, extra_file_content=None)[source]

Bases: FakeNetCDF4FileHandler

Class for faking the NetCDF4 Filehandler.

Get fake file content from ‘get_test_content’.

get_test_content(filename, filename_info, filetype_info)[source]

Get the content of the test data.

class satpy.tests.reader_tests.test_fci_l1c_nc.FakeNetCDF4FileHandler3(filename, filename_info, filetype_info, auto_maskandscale=False, xarray_kwargs=None, cache_var_size=0, cache_handle=False, extra_file_content=None)[source]

Bases: FakeNetCDF4FileHandler2

Mock bad data.

Get fake file content from ‘get_test_content’.

class satpy.tests.reader_tests.test_fci_l1c_nc.FakeNetCDF4FileHandler4(filename, filename_info, filetype_info, auto_maskandscale=False, xarray_kwargs=None, cache_var_size=0, cache_handle=False, extra_file_content=None)[source]

Bases: FakeNetCDF4FileHandler2

Mock bad data for IDPF TO-DO’s.

Get fake file content from ‘get_test_content’.

class satpy.tests.reader_tests.test_fci_l1c_nc.TestFCIL1cNCReader[source]

Bases: object

Initialize the unittest TestCase for the FCI L1c NetCDF Reader.

fake_handler()[source]

Wrap NetCDF4 FileHandler with our own fake handler.

yaml_file = 'fci_l1c_nc.yaml'
class satpy.tests.reader_tests.test_fci_l1c_nc.TestFCIL1cNCReaderBadData[source]

Bases: TestFCIL1cNCReader

Test the FCI L1c NetCDF Reader for bad data input.

test_handling_bad_data_ir(reader_configs, caplog)[source]

Test handling of bad IR data.

test_handling_bad_data_vis(reader_configs, caplog)[source]

Test handling of bad VIS data.

class satpy.tests.reader_tests.test_fci_l1c_nc.TestFCIL1cNCReaderBadDataFromIDPF[source]

Bases: TestFCIL1cNCReader

Test the FCI L1c NetCDF Reader for bad data input.

test_bad_xy_coords(reader_configs)[source]

Test that the geolocation computation is correct.

test_handling_bad_earthsun_distance(reader_configs, caplog)[source]

Test handling of bad earth-sun distance data.

class satpy.tests.reader_tests.test_fci_l1c_nc.TestFCIL1cNCReaderGoodData[source]

Bases: TestFCIL1cNCReader

Test FCI L1c NetCDF reader.

test_area_definition_computation(reader_configs)[source]

Test that the geolocation computation is correct.

test_excs(reader_configs)[source]

Test that exceptions are raised where expected.

test_file_pattern(reader_configs)[source]

Test file pattern matching.

test_load_aux_data(reader_configs)[source]

Test loading of auxiliary data.

test_load_bt(reader_configs, caplog)[source]

Test loading with bt.

test_load_composite()[source]

Test that composites are loadable.

test_load_counts(reader_configs)[source]

Test loading with counts.

test_load_index_map(reader_configs)[source]

Test loading of index_map.

test_load_quality_only(reader_configs)[source]

Test that loading quality only works.

test_load_radiance(reader_configs)[source]

Test loading with radiance.

test_load_reflectance(reader_configs)[source]

Test loading with reflectance.

test_orbital_parameters_attr(reader_configs)[source]

Test the orbital parameter attribute.

test_platform_name(reader_configs)[source]

Test that platform name is exposed.

Test that the FCI reader exposes the platform name. Corresponds to GH issue 1014.

satpy.tests.reader_tests.test_fci_l1c_nc.reader_configs()[source]

Return reader configs for FCI.