satpy.readers.core.hdfeos module
Base HDF-EOS reader.
- class satpy.readers.core.hdfeos.HDFEOSBaseFileReader(filename, filename_info, filetype_info, **kwargs)[source]
Bases:
BaseFileHandlerBase file handler for HDF EOS data for both L1b and L2 products.
Initialize the base reader.
- 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.core.hdfeos.HDFEOSGeoReader(filename, filename_info, filetype_info, **kwargs)[source]
Bases:
HDFEOSBaseFileReaderHandler for the geographical datasets.
Initialize the geographical reader.
- DATASET_NAMES = {'height': 'Height', 'landsea_mask': 'Land/SeaMask', 'latitude': 'Latitude', 'longitude': 'Longitude', 'range': 'Range', 'satellite_azimuth_angle': ('SensorAzimuth', 'Sensor_Azimuth'), 'satellite_zenith_angle': ('SensorZenith', 'Sensor_Zenith'), 'solar_azimuth_angle': ('SolarAzimuth', 'SolarAzimuth'), 'solar_zenith_angle': ('SolarZenith', 'Solar_Zenith'), 'water_present': 'WaterPresent'}
- __init__(filename, filename_info, filetype_info, **kwargs)[source]
Initialize the geographical reader.
- property geo_resolution
Resolution of the geographical data retrieved in the metadata.
- get_interpolated_dataset(dataset_name, resolution)[source]
Load and interpolate datasets.
- Return type:
- satpy.readers.core.hdfeos._find_and_run_interpolation(interpolation_functions, src_resolution, dst_resolution, args)[source]
- satpy.readers.core.hdfeos._interpolate_no_angles(clons, clats, src_resolution, dst_resolution)[source]
- satpy.readers.core.hdfeos._interpolate_with_angles(clons, clats, csatz, src_resolution, dst_resolution)[source]
- satpy.readers.core.hdfeos._mapblocks_scale_and_mask(arr, scale_factor, add_offset, fill_value, is_category)[source]
- satpy.readers.core.hdfeos._modis_date(date)[source]
Transform a date and time string into a datetime object.
- satpy.readers.core.hdfeos._scale_and_mask_data_array(data_arr, 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:
- Return type: