satpy.readers.viirs_sdr module
Interface to VIIRS SDR format.
This reader implements the support of VIIRS SDR files as produced by CSPP and CLASS. It is comprised of two parts:
A subclass of the YAMLFileReader class to allow handling all the files
A filehandler class to implement the actual reading
Format documentation:
- class satpy.readers.viirs_sdr.VIIRSSDRFileHandler(filename, filename_info, filetype_info, use_tc=None, **kwargs)[source]
Bases:
satpy.readers.hdf5_utils.HDF5FileHandler
VIIRS HDF5 File Reader.
Initialize file handler.
- available_datasets(configured_datasets=None)[source]
Generate dataset info and their availablity.
See
satpy.readers.file_handlers.BaseFileHandler.available_datasets()
for details.
- property end_orbit_number
Get end orbit number.
- property end_time
Get end time.
- static expand_single_values(var, scans)[source]
Expand single valued variable to full scan lengths.
- get_dataset(dataset_id, ds_info)[source]
Get the dataset corresponding to dataset_id.
The size of the return DataArray will be dependent on the number of scans actually sensed, and not necessarily the regular 768 scanlines that the file contains for each granule. To that end, the number of scans for each granule is read from:
Data_Products/...Gran_x/N_Number_Of_Scans
.
- property platform_name
Get platform name.
- scale_swath_data(data, scaling_factors, dataset_group)[source]
Scale swath data using scaling factors and offsets.
Multi-granule (a.k.a. aggregated) files will have more than the usual two values.
- property sensor_name
Get sensor name.
- property start_orbit_number
Get start orbit number.
- property start_time
Get start time.
- class satpy.readers.viirs_sdr.VIIRSSDRReader(config_files, use_tc=None, **kwargs)[source]
Bases:
satpy.readers.yaml_reader.FileYAMLReader
Custom file reader for finding VIIRS SDR geolocation at runtime.
Initialize file reader and adjust geolocation preferences.
- Parameters
config_files (iterable) – yaml config files passed to base class
use_tc (boolean) – If True use the terrain corrected files. If False, switch to non-TC files. If None (default), use TC if available, non-TC otherwise.