satpy.tests.reader_tests.test_nwcsaf_nc module

Unittests for NWC SAF reader.

class satpy.tests.reader_tests.test_nwcsaf_nc.TestNcNWCSAF(methodName='runTest')[source]

Bases: TestCase

Test the NcNWCSAF reader.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

setUp(xr_open_dataset, unzip)[source]

Set up the test case.

test_get_area_def()[source]

Test that get_area_def() returns proper area.

test_get_dataset_can_handle_file_key_list()[source]

Test that get_dataset() can handle a list of file_keys.

test_get_dataset_raises_when_dataset_missing()[source]

Test that get_dataset() raises an error when the requested dataset is missing.

test_get_dataset_scales_and_offsets()[source]

Test that get_dataset() returns scaled and offseted data.

test_get_dataset_scales_and_offsets_palette_meanings_using_other_dataset()[source]

Test that get_dataset() returns scaled palette_meanings while another dataset as scaling source.

test_get_dataset_uses_file_key_if_present()[source]

Test that get_dataset() uses a file_key if present.

test_scale_dataset_attr_removal()[source]

Test the scaling of the dataset and removal of obsolete attributes.

test_scale_dataset_floating()[source]

Test the scaling of the dataset with floating point values.

test_sensor_name()[source]

Test that the correct sensor name is being set.

class satpy.tests.reader_tests.test_nwcsaf_nc.TestNcNWCSAFFileKeyPrefix(methodName='runTest')[source]

Bases: TestCase

Test the NcNWCSAF reader when using a file key prefix.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

setUp(xr_open_dataset, unzip)[source]

Set up the test case.

test_get_dataset_scales_and_offsets_palette_meanings_using_other_dataset()[source]

Test that get_dataset() returns scaled palette_meanings using another dataset as scaling source.

test_get_dataset_uses_file_key_prefix()[source]

Test that get_dataset() uses a file_key_prefix.