satpy.readers.modis_l2 module
Modis level 2 hdf-eos format reader.
Introduction
The modis_l2
reader reads and calibrates Modis L2 image data in hdf-eos format.
Since there are a multitude of different level 2 datasets not all of theses are implemented (yet).
- Currently the reader supports:
m[o/y]d35_l2: cloud_mask dataset
some datasets in m[o/y]d06 files
Additionally the reader tries to add non yaml configured 2D datasets dynamically. As mentioned above there are a lot of different level 2 datasets so this might not work in every case (for example bit encoded datasets similar to the supported m[0/y]d35_l2 cloud mask are not decoded).
To get a list of the available datasets for a given file refer to the Available datasets section.
Geolocation files
Similar to the modis_l1b
reader the geolocation files (mod03) for the 1km data are optional and if not
given 1km geolocations will be interpolated from the 5km geolocation contained within the file.
For the 500m and 250m data geolocation files are needed.
References
Documentation about the format: https://modis-atmos.gsfc.nasa.gov/products
- class satpy.readers.modis_l2.ModisL2HDFFileHandler(filename, filename_info, filetype_info, **kwargs)[source]
Bases:
HDFEOSGeoReader
File handler for MODIS HDF-EOS Level 2 files.
Includes error handling for files produced by IMAPP produced files.
Initialize the geographical reader.
- _select_hdf_dataset(hdf_dataset_name, byte_dimension)[source]
Load a dataset from HDF-EOS level 2 file.
- available_datasets(configured_datasets)[source]
Add dataset information from arbitrary level 2 files.
Adds dataset information not specifically specified in reader yaml file from arbitrary modis level 2 product files to available datasets.
Notes
Currently only adds 2D datasets and does not decode bit encoded information.
- property end_time
Get the end time of the dataset.
- property is_imapp_mask_byte1
Get if this file is the IMAPP ‘mask_byte1’ file type.
- static read_geo_resolution(metadata)[source]
Parse metadata to find the geolocation resolution.
It is implemented as a staticmethod to match read_mda pattern.
- property start_time
Get the start time of the dataset.