satpy.tests.reader_tests.test_satpy_cf_nc module

Tests for the CF reader.

class satpy.tests.reader_tests.test_satpy_cf_nc.TestCFReader(methodName='runTest')[source]

Bases: TestCase

Test case for CF 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()[source]

Create a test scene.

test_fix_modifier_attr()[source]

Check that fix modifier can handle empty list as modifier attribute.

test_orbital_parameters()[source]

Test that the orbital parameters in attributes are handled correctly.

test_read_prefixed_channels()[source]

Check channels starting with digit is prefixed and read back correctly.

test_read_prefixed_channels_by_user()[source]

Check channels starting with digit is prefixed by user and read back correctly.

test_read_prefixed_channels_by_user2()[source]

Check channels starting with digit is prefixed by user when saving and read back correctly without prefix.

test_read_prefixed_channels_by_user_include_prefix()[source]

Check channels starting with digit is prefixed by user and include original name when saving.

test_read_prefixed_channels_by_user_no_prefix()[source]

Check channels starting with digit is not prefixed by user.

test_read_prefixed_channels_include_orig_name()[source]

Check channels starting with digit and includeed orig name is prefixed and read back correctly.

test_write_and_read()[source]

Save a file with cf_writer and read the data again.