satpy.tests.reader_tests.test_satpy_cf_nc module
Tests for the CF reader.
- class satpy.tests.reader_tests.test_satpy_cf_nc.TestCFReader[source]
Bases:
object
Test case for CF reader.
- test_dataid_attrs_equal_contains_not_matching_key(_cf_scene, _nc_filename)[source]
Check that get_dataset returns valid dataset when dataid have key(s) not existing in data.
- test_dataid_attrs_equal_matching_dataset(_cf_scene, _nc_filename)[source]
Check that get_dataset returns valid dataset when keys matches.
- test_dataid_attrs_equal_not_matching_dataset(_cf_scene, _nc_filename)[source]
Check that get_dataset returns None when key(s) are not matching.
- test_fix_modifier_attr()[source]
Check that fix modifier can handle empty list as modifier attribute.
- test_orbital_parameters(_cf_scene, _nc_filename)[source]
Test that the orbital parameters in attributes are handled correctly.
- test_read_prefixed_channels(_cf_scene, _nc_filename)[source]
Check channels starting with digit is prefixed and read back correctly.
- test_read_prefixed_channels_by_user(_cf_scene, _nc_filename)[source]
Check channels starting with digit is prefixed by user and read back correctly.
- test_read_prefixed_channels_by_user2(_cf_scene, _nc_filename)[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(_cf_scene, _nc_filename)[source]
Check channels starting with digit is prefixed by user and include original name when saving.
- test_read_prefixed_channels_by_user_no_prefix(_cf_scene, _nc_filename)[source]
Check channels starting with digit is not prefixed by user.
- test_read_prefixed_channels_include_orig_name(_cf_scene, _nc_filename)[source]
Check channels starting with digit and includeed orig name is prefixed and read back correctly.
- test_write_and_read_from_two_files(_nc_filename, _nc_filename_i)[source]
Save two datasets with different resolution and read the solar_zenith_angle again.