satpy.tests.reader_tests.modis_tests._modis_fixtures module

MODIS L1b and L2 test fixtures.

satpy.tests.reader_tests.modis_tests._modis_fixtures._add_variable_to_file(h, var_name, var_info)[source]
satpy.tests.reader_tests.modis_tests._modis_fixtures._create_core_metadata(file_shortname: str) str[source]
satpy.tests.reader_tests.modis_tests._modis_fixtures._create_header_metadata() str[source]
satpy.tests.reader_tests.modis_tests._modis_fixtures._create_struct_metadata(geo_resolution: int) str[source]
satpy.tests.reader_tests.modis_tests._modis_fixtures._create_struct_metadata_cmg(ftype: str) str[source]
satpy.tests.reader_tests.modis_tests._modis_fixtures._generate_angle_data(resolution: int) ndarray[source]
satpy.tests.reader_tests.modis_tests._modis_fixtures._generate_lonlat_data(resolution: int) tuple[ndarray, ndarray][source]
satpy.tests.reader_tests.modis_tests._modis_fixtures._generate_visible_data(resolution: int, num_bands: int, dtype=<class 'numpy.uint16'>) ndarray[source]
satpy.tests.reader_tests.modis_tests._modis_fixtures._generate_visible_uncertainty_data(shape: tuple) ndarray[source]
satpy.tests.reader_tests.modis_tests._modis_fixtures._get_angles_variable_info(resolution: int) dict[source]
satpy.tests.reader_tests.modis_tests._modis_fixtures._get_basic_variable_info(var_name: str, resolution: int) dict[source]
satpy.tests.reader_tests.modis_tests._modis_fixtures._get_cloud_mask_variable_info(var_name: str, resolution: int) dict[source]
satpy.tests.reader_tests.modis_tests._modis_fixtures._get_emissive_variable_info(var_name: str, resolution: int, bands: list[str])[source]
satpy.tests.reader_tests.modis_tests._modis_fixtures._get_l1b_geo_variable_info(filename: str, geo_resolution: int, include_angles: bool = True) dict[source]
satpy.tests.reader_tests.modis_tests._modis_fixtures._get_l3_land_cover_info() dict[source]
satpy.tests.reader_tests.modis_tests._modis_fixtures._get_l3_refl_variable_info(var_name: str) dict[source]
satpy.tests.reader_tests.modis_tests._modis_fixtures._get_lonlat_variable_info(resolution: int) dict[source]
satpy.tests.reader_tests.modis_tests._modis_fixtures._get_mask_byte1_variable_info() dict[source]
satpy.tests.reader_tests.modis_tests._modis_fixtures._get_visible_variable_info(var_name: str, resolution: int, bands: list[str])[source]
satpy.tests.reader_tests.modis_tests._modis_fixtures._shape_for_resolution(resolution: int) tuple[int, int][source]
satpy.tests.reader_tests.modis_tests._modis_fixtures.create_hdfeos_test_file(filename: str, variable_infos: dict, struct_meta: str | None = None, core_meta: str | None = None, archive_meta: str | None = None) None[source]

Create a fake MODIS L1b HDF4 file with headers.

Parameters:
  • filename – Full path of filename to be created.

  • variable_infos – Dictionary mapping HDF4 variable names to dictionary of variable information (see _add_variable_to_file).

  • struct_meta – Contents of the ‘StructMetadata.0’ header.

  • core_meta – Contents of the ‘CoreMetadata.0’ header.

  • archive_meta – Contents of the ‘ArchiveMetadata.0’ header.

satpy.tests.reader_tests.modis_tests._modis_fixtures.generate_imapp_filename(suffix)[source]

Generate a filename that follows IMAPP MODIS L1b convention.

satpy.tests.reader_tests.modis_tests._modis_fixtures.generate_nasa_l1b_filename(prefix)[source]

Generate a filename that follows NASA MODIS L1b convention.

satpy.tests.reader_tests.modis_tests._modis_fixtures.generate_nasa_l2_filename(prefix: str) str[source]

Generate a file name that follows MODIS 35 L2 convention in a temporary directory.

satpy.tests.reader_tests.modis_tests._modis_fixtures.generate_nasa_l3_filename(prefix: str) str[source]

Generate a file name that follows MODIS 09 L3 convention in a temporary directory.

satpy.tests.reader_tests.modis_tests._modis_fixtures.generate_nasa_l3_tile_filename(prefix: str) str[source]

Generate a file name that follows MODIS sinusoidal grid tile pattern.

satpy.tests.reader_tests.modis_tests._modis_fixtures.modis_l1b_imapp_1000m_file(tmpdir_factory) list[str][source]

Create a single MOD021KM file following IMAPP file scheme.

satpy.tests.reader_tests.modis_tests._modis_fixtures.modis_l1b_imapp_geo_file(tmpdir_factory) list[str][source]

Create a single geo file following standard IMAPP file scheme.

satpy.tests.reader_tests.modis_tests._modis_fixtures.modis_l1b_nasa_1km_mod03_files(modis_l1b_nasa_mod021km_file, modis_l1b_nasa_mod03_file) list[str][source]

Create input files including the 1KM and MOD03 files.

satpy.tests.reader_tests.modis_tests._modis_fixtures.modis_l1b_nasa_mod021km_file(tmpdir_factory) list[str][source]

Create a single MOD021KM file following standard NASA file scheme.

satpy.tests.reader_tests.modis_tests._modis_fixtures.modis_l1b_nasa_mod02hkm_file(tmpdir_factory) list[str][source]

Create a single MOD02HKM file following standard NASA file scheme.

satpy.tests.reader_tests.modis_tests._modis_fixtures.modis_l1b_nasa_mod02qkm_file(tmpdir_factory) list[str][source]

Create a single MOD02QKM file following standard NASA file scheme.

satpy.tests.reader_tests.modis_tests._modis_fixtures.modis_l1b_nasa_mod03_file(tmpdir_factory) list[str][source]

Create a single MOD03 file following standard NASA file scheme.

satpy.tests.reader_tests.modis_tests._modis_fixtures.modis_l2_imapp_mask_byte1_file(tmpdir_factory) list[str][source]

Create a single IMAPP mask_byte1 L2 HDF4 file with headers.

satpy.tests.reader_tests.modis_tests._modis_fixtures.modis_l2_imapp_mask_byte1_geo_files(modis_l2_imapp_mask_byte1_file, modis_l1b_nasa_mod03_file) list[str][source]

Create the IMAPP mask_byte1 and geo HDF4 files.

satpy.tests.reader_tests.modis_tests._modis_fixtures.modis_l2_imapp_snowmask_file(tmpdir_factory) list[str][source]

Create a single IMAPP snowmask L2 HDF4 file with headers.

satpy.tests.reader_tests.modis_tests._modis_fixtures.modis_l2_imapp_snowmask_geo_files(modis_l2_imapp_snowmask_file, modis_l1b_nasa_mod03_file) list[str][source]

Create the IMAPP snowmask and geo HDF4 files.

satpy.tests.reader_tests.modis_tests._modis_fixtures.modis_l2_nasa_mod06_file(tmpdir_factory) list[str][source]

Create a single MOD06 L2 HDF4 file with headers.

satpy.tests.reader_tests.modis_tests._modis_fixtures.modis_l2_nasa_mod35_file(tmpdir_factory) list[str][source]

Create a single MOD35 L2 HDF4 file with headers.

satpy.tests.reader_tests.modis_tests._modis_fixtures.modis_l2_nasa_mod35_mod03_files(modis_l2_nasa_mod35_file, modis_l1b_nasa_mod03_file) list[str][source]

Create a MOD35 L2 HDF4 file and MOD03 L1b geolocation file.

satpy.tests.reader_tests.modis_tests._modis_fixtures.modis_l3_file(tmpdir_factory, f_prefix, var_name, f_short)[source]

Create a MODIS L3 file of the desired type.

satpy.tests.reader_tests.modis_tests._modis_fixtures.modis_l3_nasa_mcd12q1_file(tmpdir_factory) list[str][source]

Create a single MOD35 L2 HDF4 file with headers.

satpy.tests.reader_tests.modis_tests._modis_fixtures.modis_l3_nasa_mod09_file(tmpdir_factory) list[str][source]

Create a single MOD09 L3 HDF4 file with headers.

satpy.tests.reader_tests.modis_tests._modis_fixtures.modis_l3_nasa_mod43_file(tmpdir_factory) list[str][source]

Create a single MVCD43 L3 HDF4 file with headers.