satpy.tests.reader_tests.test_viirs_edr module

Module for testing the satpy.readers.viirs_l2_jrr module.

Note: This is adapted from the test_slstr_l2.py code.

class satpy.tests.reader_tests.test_viirs_edr.TestVIIRSJRRReader[source]

Bases: object

Test the VIIRS JRR L2 reader.

test_availability_veg_idx(data_file, exp_available)[source]

Test that vegetation indexes aren’t available when they aren’t present.

test_get_dataset_generic(var_names, data_file)[source]

Test datasets from cloud height files.

test_get_dataset_surf_refl(data_files)[source]

Test retrieval of datasets.

test_get_dataset_surf_refl_with_veg_idx(data_files, filter_veg)[source]

Test retrieval of vegetation indices from surface reflectance files.

test_get_platformname(surface_reflectance_file, filename_platform, exp_shortname)[source]

Test finding start and end times of granules.

satpy.tests.reader_tests.test_viirs_edr._array_checks(data_arr: xr.DataArray, dtype: npt.Dtype = <class 'numpy.float32'>, multiple_files: bool = False) None[source]
satpy.tests.reader_tests.test_viirs_edr._check_continuous_data_arr(data_arr: DataArray) None[source]
satpy.tests.reader_tests.test_viirs_edr._check_surf_refl_data_arr(data_arr: xr.DataArray, dtype: npt.DType = <class 'numpy.float32'>, multiple_files: bool = False) None[source]
satpy.tests.reader_tests.test_viirs_edr._check_surf_refl_qf_data_arr(data_arr: DataArray, multiple_files: bool) None[source]
satpy.tests.reader_tests.test_viirs_edr._check_vi_data_arr(data_arr: DataArray, is_filtered: bool, multiple_files: bool) None[source]
satpy.tests.reader_tests.test_viirs_edr._create_continuous_variables(var_names: Iterable[str]) dict[str, DataArray][source]
satpy.tests.reader_tests.test_viirs_edr._create_fake_dataset(vars_dict: dict[str, DataArray]) Dataset[source]
satpy.tests.reader_tests.test_viirs_edr._create_fake_file(tmp_path_factory: TempPathFactory, filename: str, data_arrs: dict[str, DataArray]) Path[source]
satpy.tests.reader_tests.test_viirs_edr._create_lst_variables() dict[str, DataArray][source]
satpy.tests.reader_tests.test_viirs_edr._create_surf_refl_variables() dict[str, DataArray][source]
satpy.tests.reader_tests.test_viirs_edr._create_surface_reflectance_file(tmp_path_factory: TempPathFactory, start_time: datetime, include_veg_indices: bool = False) Path[source]
satpy.tests.reader_tests.test_viirs_edr._create_veg_index_variables() dict[str, DataArray][source]
satpy.tests.reader_tests.test_viirs_edr._is_mband_res(data_arr: DataArray) bool[source]
satpy.tests.reader_tests.test_viirs_edr._shared_metadata_checks(data_arr: DataArray) None[source]
satpy.tests.reader_tests.test_viirs_edr.aod_file(tmp_path_factory: TempPathFactory) Path[source]

Generate fake AOD VIIRs EDR file.

satpy.tests.reader_tests.test_viirs_edr.cloud_height_file(tmp_path_factory: TempPathFactory) Path[source]

Generate fake CloudHeight VIIRS EDR file.

satpy.tests.reader_tests.test_viirs_edr.lst_file(tmp_path_factory: TempPathFactory) Path[source]

Generate fake VLST EDR file.

satpy.tests.reader_tests.test_viirs_edr.multiple_surface_reflectance_files(surface_reflectance_file, surface_reflectance_file2) list[Path][source]

Get two multiple surface reflectance files.

satpy.tests.reader_tests.test_viirs_edr.multiple_surface_reflectance_files_with_veg_indices(surface_reflectance_with_veg_indices_file, surface_reflectance_with_veg_indices_file2) list[Path][source]

Get two multiple surface reflectance files with vegetation indexes included.

satpy.tests.reader_tests.test_viirs_edr.surface_reflectance_file(tmp_path_factory: TempPathFactory) Path[source]

Generate fake surface reflectance EDR file.

satpy.tests.reader_tests.test_viirs_edr.surface_reflectance_file2(tmp_path_factory: TempPathFactory) Path[source]

Generate fake surface reflectance EDR file.

satpy.tests.reader_tests.test_viirs_edr.surface_reflectance_with_veg_indices_file(tmp_path_factory: TempPathFactory) Path[source]

Generate fake surface reflectance EDR file with vegetation indexes included.

satpy.tests.reader_tests.test_viirs_edr.surface_reflectance_with_veg_indices_file2(tmp_path_factory: TempPathFactory) Path[source]

Generate fake surface reflectance EDR file with vegetation indexes included.