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:
unittest.case.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.
- 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.
- class satpy.tests.reader_tests.test_nwcsaf_nc.TestNcNWCSAFFileKeyPrefix(methodName='runTest')[source]
Bases:
unittest.case.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.