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_fix_duplicate_dimensions()[source]

Test the renaming of duplicate dimensions.

If duplicate dimensions are within the Dataset, opening the datasets with chunks throws a warning. The dimensions need to be renamed.

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, projection_longitude)[source]

Test file handler initialization.

test_time_cache(interp_acq_time, file_handler)[source]

Test caching of acquisition times.

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

Bases: object

Unit tests for Interpolator class.

fixture_acq_time_exp()[source]

Returns acq_time_vis_exp.

fixture_time_ir_wv()[source]

Returns time_ir_wv.

test_interp_acq_time(time_ir_wv, acq_time_exp)[source]

Tests time interpolation.

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

Create fake dataset.

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

Create mocked file handler.

satpy.tests.reader_tests.test_mviri_l1b_fiduceo_nc.fixture_projection_longitude(request)[source]

Get projection longitude as string.

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

Return MVIRI FIDUCEO FCDR reader.

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

Create time for fake dataset.