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.
- 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_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.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.