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

Bases: object

Test dataset preprocessing.

fixture_dataset()[source]

Get dataset before preprocessing.

  • Encoded timestamps including fill values

  • Duplicate dimension names

  • x/y coordinates not assigned

fixture_dataset_exp()[source]

Get expected dataset after preprocessing.

  • Timestamps should have been converted to datetime64

  • Time dimension should have been renamed

  • Duplicate dimensions should have been removed

  • x/y coordinates should have been assigned

test_preprocess(dataset, dataset_exp)[source]

Test dataset preprocessing.

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_fake_file(fake_dataset, tmp_path)[source]

Create test file.

satpy.tests.reader_tests.test_mviri_l1b_fiduceo_nc.fixture_file_handler(fake_file, 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.