satpy.tests.reader_tests.test_mviri_l1b_fiduceo_nc module

Unit tests for the FIDUCEO MVIRI FCDR Reader.

class satpy.tests.reader_tests.test_mviri_l1b_fiduceo_nc.TestDatasetWrapper[source]

Bases: object

Unit tests for DatasetWrapper class.

test_reassign_coords()[source]

Test reassigning of coordinates.

For some reason xarray does not always assign (y, x) coordinates to the high resolution datasets, although they have dimensions (y, x) and coordinates y and x exist. A dataset with these properties seems impossible to create (neither dropping, resetting or deleting coordinates seems to work). Instead use mock as a workaround.

class satpy.tests.reader_tests.test_mviri_l1b_fiduceo_nc.TestFiduceoMviriFileHandlers[source]

Bases: object

Unit tests for FIDUCEO MVIRI file handlers.

test_angle_cache(interp_tiepoints, file_handler)[source]

Test caching of angle datasets.

test_bad_quality_warning(file_handler)[source]

Test warning about bad VIS quality.

test_calib_exceptions(file_handler)[source]

Test calibration exceptions.

test_file_pattern(reader)[source]

Test file pattern matching.

test_get_area_definition(file_handler, name, resolution, area_exp)[source]

Test getting area definitions.

test_get_dataset(file_handler, name, calibration, resolution, expected)[source]

Test getting datasets.

test_get_dataset_corrupt(file_handler)[source]

Test getting datasets with known corruptions.

test_init(file_handler)[source]

Test file handler initialization.

test_time_cache(interp_acq_time, file_handler)[source]

Test caching of acquisition times.

satpy.tests.reader_tests.test_mviri_l1b_fiduceo_nc.fixture_fake_dataset()[source]

Create fake dataset.

satpy.tests.reader_tests.test_mviri_l1b_fiduceo_nc.fixture_file_handler(fake_dataset, request)[source]

Create mocked file handler.

satpy.tests.reader_tests.test_mviri_l1b_fiduceo_nc.fixture_reader()[source]

Return MVIRI FIDUCEO FCDR reader.