satpy.tests.reader_tests.modis_tests.test_modis_l2 module

Unit tests for MODIS L2 HDF reader.

class satpy.tests.reader_tests.modis_tests.test_modis_l2.TestModisL2[source]

Bases: object

Test MODIS L2 reader.

test_available_reader()[source]

Test that MODIS L2 reader is available.

test_load_250m_cloud_mask_dataset(input_files, exp_area)[source]

Test loading 250m cloud mask.

test_load_category_dataset(input_files, loadables, request_resolution, exp_resolution, exp_area)[source]

Test loading category products.

test_load_l2_dataset(input_files, loadables, exp_resolution, exp_area, exp_value)[source]

Load and check an L2 variable.

test_load_longitude_latitude(input_files, has_5km, has_500, has_250, default_res)[source]

Test that longitude and latitude datasets are loaded correctly.

test_load_quality_assurance(modis_l2_nasa_mod35_file)[source]

Test loading quality assurance.

test_scene_available_datasets(modis_l2_nasa_mod35_file)[source]

Test that datasets are available.

satpy.tests.reader_tests.modis_tests.test_modis_l2._check_shared_metadata(data_arr, expect_area=False)[source]