satpy.readers.hdfeos_base module
Base HDF-EOS reader.
- class satpy.readers.hdfeos_base.HDFEOSBaseFileReader(filename, filename_info, filetype_info, **kwargs)[source]
Bases:
BaseFileHandler
Base file handler for HDF EOS data for both L1b and L2 products.
Initialize the base reader.
- _add_satpy_metadata(data_id: DataID, data_arr: DataArray)[source]
Add metadata that is specific to Satpy.
- _scale_and_mask_data_array(data, is_category=False)[source]
Unscale byte data and mask invalid/fill values.
MODIS requires unscaling the in-file bytes in an unexpected way:
data = (byte_value - add_offset) * scale_factor
See the below L1B User’s Guide Appendix C for more information:
- property end_time
Get the end time of the dataset.
- property metadata_platform_name
Platform name from the internal file metadata.
- property start_time
Get the start time of the dataset.
- class satpy.readers.hdfeos_base.HDFEOSGeoReader(filename, filename_info, filetype_info, **kwargs)[source]
Bases:
HDFEOSBaseFileReader
Handler for the geographical datasets.
Initialize the geographical reader.
- DATASET_NAMES = {'latitude': 'Latitude', 'longitude': 'Longitude', 'satellite_azimuth_angle': ('SensorAzimuth', 'Sensor_Azimuth'), 'satellite_zenith_angle': ('SensorZenith', 'Sensor_Zenith'), 'solar_azimuth_angle': ('SolarAzimuth', 'SolarAzimuth'), 'solar_zenith_angle': ('SolarZenith', 'Solar_Zenith')}
- property geo_resolution
Resolution of the geographical data retrieved in the metadata.
- get_dataset(dataset_id: DataID, dataset_info: dict) DataArray [source]
Get the geolocation dataset.
- get_interpolated_dataset(name1, name2, resolution, offset=0)[source]
Load and interpolate datasets.
- satpy.readers.hdfeos_base._find_and_run_interpolation(interpolation_functions, src_resolution, dst_resolution, args)[source]
- satpy.readers.hdfeos_base._interpolate_no_angles(clons, clats, src_resolution, dst_resolution)[source]