satpy.tests.reader_tests.test_cmsaf_claas module

Tests for the ‘cmsaf-claas2_l2_nc’ reader.

class satpy.tests.reader_tests.test_cmsaf_claas.TestCLAAS2MultiFile[source]

Bases: object

Test reading multiple CLAAS-2 files.

multi_file_dataset(multi_file_reader)[source]

Load datasets from multiple files.

multi_file_reader(reader, fake_files)[source]

Create a multi-file reader.

test_combine_datasets(multi_file_dataset, ds_name, expected)[source]

Test combination of datasets.

test_combine_timestamps(multi_file_reader, start_time)[source]

Test combination of timestamps.

test_number_of_datasets(multi_file_dataset)[source]

Test number of datasets.

class satpy.tests.reader_tests.test_cmsaf_claas.TestCLAAS2SingleFile[source]

Bases: object

Test reading a single CLAAS2 file.

area_exp(area_extent_exp)[source]

Get expected area definition.

area_extent_exp(start_time)[source]

Get expected area extent.

file_handler(fake_file)[source]

Return a CLAAS-2 file handler.

test_end_time(file_handler)[source]

Test end time property.

test_get_area_def(file_handler, area_exp)[source]

Test area definition.

test_get_dataset(file_handler, ds_name, expected)[source]

Test dataset loading.

test_start_time(file_handler, start_time)[source]

Test start time property.

satpy.tests.reader_tests.test_cmsaf_claas.encoding()[source]

Dataset encoding.

satpy.tests.reader_tests.test_cmsaf_claas.fake_dataset(start_time_str)[source]

Create a CLAAS-like test dataset.

satpy.tests.reader_tests.test_cmsaf_claas.fake_file(fake_dataset, encoding, tmp_path)[source]

Write a fake dataset to file.

satpy.tests.reader_tests.test_cmsaf_claas.fake_files(fake_dataset, encoding, tmp_path)[source]

Write the same fake dataset into two different files.

satpy.tests.reader_tests.test_cmsaf_claas.reader()[source]

Return reader for CMSAF CLAAS-2.

satpy.tests.reader_tests.test_cmsaf_claas.start_time(request)[source]

Get start time of the dataset.

satpy.tests.reader_tests.test_cmsaf_claas.start_time_str(start_time)[source]

Get string representation of the start time.

satpy.tests.reader_tests.test_cmsaf_claas.test_file_pattern(reader)[source]

Test file pattern matching.