satpy.readers package
Submodules
- satpy.readers.aapp_l1b module
- satpy.readers.aapp_mhs_amsub_l1c module
- satpy.readers.abi_base module
- satpy.readers.abi_l1b module
- satpy.readers.abi_l2_nc module
- satpy.readers.acspo module
- satpy.readers.agri_l1 module
- satpy.readers.ahi_hsd module
- Time Information
- Satellite Position
AHIHSDFileHandler
AHIHSDFileHandler.area
AHIHSDFileHandler.calibrate()
AHIHSDFileHandler.convert_to_radiance()
AHIHSDFileHandler.end_time
AHIHSDFileHandler.get_area_def()
AHIHSDFileHandler.get_dataset()
AHIHSDFileHandler.nominal_end_time
AHIHSDFileHandler.nominal_start_time
AHIHSDFileHandler.observation_end_time
AHIHSDFileHandler.observation_start_time
AHIHSDFileHandler.read_band()
AHIHSDFileHandler.start_time
- satpy.readers.ahi_l1b_gridded_bin module
- satpy.readers.ami_l1b module
- satpy.readers.amsr2_l1b module
- satpy.readers.amsr2_l2 module
- satpy.readers.amsr2_l2_gaasp module
GAASPFileHandler
GAASPFileHandler.available_datasets()
GAASPFileHandler.dim_resolutions
GAASPFileHandler.end_time
GAASPFileHandler.get_dataset()
GAASPFileHandler.is_gridded
GAASPFileHandler.nc
GAASPFileHandler.platform_name
GAASPFileHandler.sensor_names
GAASPFileHandler.start_time
GAASPFileHandler.time_dims
GAASPFileHandler.x_dims
GAASPFileHandler.y_dims
GAASPGriddedFileHandler
GAASPLowResFileHandler
- satpy.readers.ascat_l2_soilmoisture_bufr module
- satpy.readers.atms_l1b_nc module
- satpy.readers.atms_sdr_hdf5 module
- satpy.readers.avhrr_l1b_gaclac module
- satpy.readers.clavrx module
- satpy.readers.cmsaf_claas2 module
- satpy.readers.electrol_hrit module
- satpy.readers.epic_l1b_h5 module
- satpy.readers.eps_l1b module
EPSAVHRRFile
EPSAVHRRFile.end_time
EPSAVHRRFile.get_bounding_box()
EPSAVHRRFile.get_dataset()
EPSAVHRRFile.get_lonlats()
EPSAVHRRFile.keys()
EPSAVHRRFile.platform_name
EPSAVHRRFile.sensor_name
EPSAVHRRFile.sensors
EPSAVHRRFile.spacecrafts
EPSAVHRRFile.start_time
EPSAVHRRFile.three_a_mask
EPSAVHRRFile.three_b_mask
EPSAVHRRFile.units
create_xarray()
radiance_to_bt()
radiance_to_refl()
read_records()
- satpy.readers.eum_base module
- satpy.readers.fci_l1c_nc module
FCIL1cNCFileHandler
FCIL1cNCFileHandler.calc_area_extent()
FCIL1cNCFileHandler.calibrate()
FCIL1cNCFileHandler.calibrate_counts_to_physical_quantity()
FCIL1cNCFileHandler.calibrate_counts_to_rad()
FCIL1cNCFileHandler.calibrate_rad_to_bt()
FCIL1cNCFileHandler.calibrate_rad_to_refl()
FCIL1cNCFileHandler.end_time
FCIL1cNCFileHandler.get_area_def()
FCIL1cNCFileHandler.get_channel_measured_group_path()
FCIL1cNCFileHandler.get_dataset()
FCIL1cNCFileHandler.get_segment_position_info()
FCIL1cNCFileHandler.orbital_param
FCIL1cNCFileHandler.start_time
- satpy.readers.fci_l2_nc module
- satpy.readers.file_handlers module
- satpy.readers.fy4_base module
- satpy.readers.generic_image module
- satpy.readers.geocat module
GEOCATFileHandler
GEOCATFileHandler.available_datasets()
GEOCATFileHandler.end_time
GEOCATFileHandler.get_area_def()
GEOCATFileHandler.get_dataset()
GEOCATFileHandler.get_metadata()
GEOCATFileHandler.get_platform()
GEOCATFileHandler.get_sensor()
GEOCATFileHandler.get_shape()
GEOCATFileHandler.is_geo
GEOCATFileHandler.platforms
GEOCATFileHandler.resolution
GEOCATFileHandler.resolutions
GEOCATFileHandler.sensor_names
GEOCATFileHandler.sensors
GEOCATFileHandler.start_time
- satpy.readers.ghi_l1 module
- satpy.readers.ghrsst_l2 module
- satpy.readers.glm_l2 module
- satpy.readers.goes_imager_hrit module
- satpy.readers.goes_imager_nc module
- NOAA-CLASS
- EUMETSAT
AreaDefEstimator
GOESCoefficientReader
GOESEUMGEONCFileHandler
GOESEUMNCFileHandler
GOESNCBaseFileHandler
GOESNCBaseFileHandler.available_datasets()
GOESNCBaseFileHandler.calibrate()
GOESNCBaseFileHandler.end_time
GOESNCBaseFileHandler.get_dataset()
GOESNCBaseFileHandler.get_shape()
GOESNCBaseFileHandler.ir_sectors
GOESNCBaseFileHandler.meta
GOESNCBaseFileHandler.resolution
GOESNCBaseFileHandler.start_time
GOESNCBaseFileHandler.vis_sectors
GOESNCBaseFileHandler.yaw_flip_sampling_distance
GOESNCFileHandler
is_vis_channel()
test_coefs()
- satpy.readers.gpm_imerg module
- satpy.readers.grib module
- satpy.readers.hdf4_utils module
- satpy.readers.hdf5_utils module
- satpy.readers.hdfeos_base module
- satpy.readers.hrit_base module
- satpy.readers.hrit_jma module
- satpy.readers.hrpt module
- satpy.readers.hsaf_grib module
- satpy.readers.hsaf_h5 module
- satpy.readers.hy2_scat_l2b_h5 module
- satpy.readers.iasi_l2 module
- satpy.readers.iasi_l2_so2_bufr module
- satpy.readers.ici_l1b_nc module
IciL1bNCFileHandler
IciL1bNCFileHandler.end_time
IciL1bNCFileHandler.get_dataset()
IciL1bNCFileHandler.latitude
IciL1bNCFileHandler.longitude
IciL1bNCFileHandler.longitude_and_latitude
IciL1bNCFileHandler.observation_azimuth
IciL1bNCFileHandler.observation_azimuth_and_zenith
IciL1bNCFileHandler.observation_zenith
IciL1bNCFileHandler.platform_name
IciL1bNCFileHandler.sensor
IciL1bNCFileHandler.solar_azimuth
IciL1bNCFileHandler.solar_azimuth_and_zenith
IciL1bNCFileHandler.solar_zenith
IciL1bNCFileHandler.ssp_lon
IciL1bNCFileHandler.start_time
InterpolationType
- satpy.readers.insat3d_img_l1b_h5 module
- satpy.readers.li_base_nc module
LINCFileHandler
LINCFileHandler.add_provided_dataset()
LINCFileHandler.apply_accumulate_index_offset()
LINCFileHandler.apply_broadcast_to()
LINCFileHandler.apply_fill_value()
LINCFileHandler.apply_milliseconds_to_timedelta()
LINCFileHandler.apply_seconds_to_datetime()
LINCFileHandler.apply_seconds_to_timedelta()
LINCFileHandler.apply_transforms()
LINCFileHandler.apply_use_rescaling()
LINCFileHandler.available_datasets()
LINCFileHandler.check_variable_extra_info()
LINCFileHandler.combine_info()
LINCFileHandler.end_time
LINCFileHandler.generate_coords_from_scan_angles()
LINCFileHandler.get_coordinate_names()
LINCFileHandler.get_daskified_lon_lat()
LINCFileHandler.get_dataset()
LINCFileHandler.get_dataset_infos()
LINCFileHandler.get_first_valid_variable()
LINCFileHandler.get_latlon_names()
LINCFileHandler.get_measured_variable()
LINCFileHandler.get_projection_config()
LINCFileHandler.get_transform_reference()
LINCFileHandler.get_transformed_dataset()
LINCFileHandler.get_variable_search_paths()
LINCFileHandler.inverse_projection()
LINCFileHandler.is_prod_in_accumulation_grid()
LINCFileHandler.register_available_datasets()
LINCFileHandler.register_coords_from_scan_angles()
LINCFileHandler.register_dataset()
LINCFileHandler.register_sector_datasets()
LINCFileHandler.register_variable_datasets()
LINCFileHandler.sensor_names
LINCFileHandler.start_time
LINCFileHandler.update_array_attributes()
LINCFileHandler.validate_array_dimensions()
LINCFileHandler.variable_path_exists()
- satpy.readers.li_l2_nc module
- satpy.readers.maia module
- satpy.readers.meris_nc_sen3 module
- satpy.readers.mersi2_l1b module
- satpy.readers.mimic_TPW2_nc module
- satpy.readers.mirs module
MiRSL2ncHandler
MiRSL2ncHandler.apply_attributes()
MiRSL2ncHandler.available_datasets()
MiRSL2ncHandler.end_time
MiRSL2ncHandler.force_date()
MiRSL2ncHandler.force_time()
MiRSL2ncHandler.get_dataset()
MiRSL2ncHandler.platform_shortname
MiRSL2ncHandler.sensor_names
MiRSL2ncHandler.start_time
MiRSL2ncHandler.update_metadata()
apply_atms_limb_correction()
get_coeff_by_sfc()
limb_correct_atms_bt()
read_atms_coeff_to_string()
read_atms_limb_correction_coefficients()
- satpy.readers.modis_l1b module
- satpy.readers.modis_l2 module
- satpy.readers.msi_safe module
- satpy.readers.msu_gsa_l1b module
- satpy.readers.mviri_l1b_fiduceo_nc module
- Introduction
- Dataset Names
- Image Orientation
- Geolocation
- Huge VIS Reflectances
- VIS Channel Quality Flags
- Angles
ALTITUDE
DatasetWrapper
FiduceoMviriBase
FiduceoMviriEasyFcdrFileHandler
FiduceoMviriFullFcdrFileHandler
IRWVCalibrator
Interpolator
MVIRI_FIELD_OF_VIEW
Navigator
VISCalibrator
VisQualityControl
is_high_resol()
- satpy.readers.mws_l1b module
- satpy.readers.netcdf_utils module
- satpy.readers.nucaps module
- satpy.readers.nwcsaf_msg2013_hdf5 module
- satpy.readers.nwcsaf_nc module
- satpy.readers.oceancolorcci_l3_nc module
- satpy.readers.olci_nc module
- satpy.readers.omps_edr module
- satpy.readers.pmw_channels_definitions module
- satpy.readers.safe_sar_l2_ocn module
- satpy.readers.sar_c_safe module
- satpy.readers.satpy_cf_nc module
- satpy.readers.scmi module
- satpy.readers.seadas_l2 module
- satpy.readers.seviri_base module
- Introduction
- Calibration
- Masking of bad quality scan lines
- Metadata
MpefProductHeader
NoValidOrbitParams
OrbitPolynomial
OrbitPolynomialFinder
SEVIRICalibrationAlgorithm
SEVIRICalibrationHandler
add_scanline_acq_time()
calculate_area_extent()
chebyshev()
chebyshev_3d()
create_coef_dict()
dec10216()
get_cds_time()
get_padding_area()
get_satpos()
mask_bad_quality()
pad_data_horizontally()
pad_data_vertically()
- satpy.readers.seviri_l1b_hrit module
- satpy.readers.seviri_l1b_icare module
- satpy.readers.seviri_l1b_native module
ImageBoundaries
NativeMSGFileHandler
NativeMSGFileHandler.calibrate()
NativeMSGFileHandler.end_time
NativeMSGFileHandler.get_area_def()
NativeMSGFileHandler.get_area_extent()
NativeMSGFileHandler.get_dataset()
NativeMSGFileHandler.is_roi()
NativeMSGFileHandler.nominal_end_time
NativeMSGFileHandler.nominal_start_time
NativeMSGFileHandler.observation_end_time
NativeMSGFileHandler.observation_start_time
NativeMSGFileHandler.satpos
NativeMSGFileHandler.start_time
Padder
get_available_channels()
- satpy.readers.seviri_l1b_native_hdr module
DEFAULT_15_SECONDARY_PRODUCT_HEADER
GSDTRecords
HritPrologue
L15DataHeaderRecord
L15MainProductHeaderRecord
L15PhData
L15SecondaryProductHeaderRecord
Msg15NativeHeaderRecord
Msg15NativeTrailerRecord
Msg15NativeTrailerRecord.geometric_quality
Msg15NativeTrailerRecord.get()
Msg15NativeTrailerRecord.image_production_stats
Msg15NativeTrailerRecord.navigation_extraction_results
Msg15NativeTrailerRecord.radiometric_quality
Msg15NativeTrailerRecord.seviri_l15_trailer
Msg15NativeTrailerRecord.timeliness_and_completeness
get_native_header()
- satpy.readers.seviri_l1b_nc module
- satpy.readers.seviri_l2_bufr module
SeviriL2BufrFileHandler
SeviriL2BufrFileHandler.end_time
SeviriL2BufrFileHandler.get_area_def()
SeviriL2BufrFileHandler.get_array()
SeviriL2BufrFileHandler.get_attribute()
SeviriL2BufrFileHandler.get_dataset()
SeviriL2BufrFileHandler.get_dataset_with_area_def()
SeviriL2BufrFileHandler.platform_name
SeviriL2BufrFileHandler.ssp_lon
SeviriL2BufrFileHandler.start_time
- satpy.readers.seviri_l2_grib module
- satpy.readers.slstr_l1b module
- satpy.readers.smos_l2_wind module
- satpy.readers.tropomi_l2 module
TROPOMIL2FileHandler
TROPOMIL2FileHandler.available_datasets()
TROPOMIL2FileHandler.end_time
TROPOMIL2FileHandler.get_dataset()
TROPOMIL2FileHandler.get_metadata()
TROPOMIL2FileHandler.platform_shortname
TROPOMIL2FileHandler.prepare_geo()
TROPOMIL2FileHandler.sensor
TROPOMIL2FileHandler.sensor_names
TROPOMIL2FileHandler.start_time
TROPOMIL2FileHandler.time_coverage_end
TROPOMIL2FileHandler.time_coverage_start
- satpy.readers.utils module
apply_earthsun_distance_correction()
apply_rad_correction()
bbox()
generic_open()
get_array_date()
get_earth_radius()
get_geostationary_angle_extent()
get_geostationary_bounding_box()
get_geostationary_mask()
get_sub_area()
get_user_calibration_factors()
np2str()
reduce_mda()
remove_earthsun_distance_correction()
unzip_context()
unzip_file()
- satpy.readers.vaisala_gld360 module
- satpy.readers.vii_base_nc module
- satpy.readers.vii_l1b_nc module
- satpy.readers.vii_l2_nc module
- satpy.readers.vii_utils module
- satpy.readers.viirs_atms_sdr_base module
JPSS_SDR_FileHandler
JPSS_SDR_FileHandler.available_datasets()
JPSS_SDR_FileHandler.concatenate_dataset()
JPSS_SDR_FileHandler.end_orbit_number
JPSS_SDR_FileHandler.end_time
JPSS_SDR_FileHandler.expand_single_values()
JPSS_SDR_FileHandler.mask_fill_values()
JPSS_SDR_FileHandler.platform_name
JPSS_SDR_FileHandler.scale_data_to_specified_unit()
JPSS_SDR_FileHandler.scale_swath_data()
JPSS_SDR_FileHandler.sensor_name
JPSS_SDR_FileHandler.start_orbit_number
JPSS_SDR_FileHandler.start_time
- satpy.readers.viirs_compact module
VIIRSCompactFileHandler
VIIRSCompactFileHandler.angles()
VIIRSCompactFileHandler.end_time
VIIRSCompactFileHandler.expand_angle_and_nav()
VIIRSCompactFileHandler.expansion_coefs
VIIRSCompactFileHandler.get_bounding_box()
VIIRSCompactFileHandler.get_dataset()
VIIRSCompactFileHandler.navigate()
VIIRSCompactFileHandler.read_dataset()
VIIRSCompactFileHandler.read_geo()
VIIRSCompactFileHandler.start_time
convert_from_angles()
convert_to_angles()
expand()
expand_arrays()
get_coefs()
- satpy.readers.viirs_edr_active_fires module
- satpy.readers.viirs_edr_flood module
- satpy.readers.viirs_l1b module
VIIRSL1BFileHandler
VIIRSL1BFileHandler.adjust_scaling_factors()
VIIRSL1BFileHandler.available_datasets()
VIIRSL1BFileHandler.end_orbit_number
VIIRSL1BFileHandler.end_time
VIIRSL1BFileHandler.get_dataset()
VIIRSL1BFileHandler.get_metadata()
VIIRSL1BFileHandler.get_shape()
VIIRSL1BFileHandler.platform_name
VIIRSL1BFileHandler.sensor_name
VIIRSL1BFileHandler.start_orbit_number
VIIRSL1BFileHandler.start_time
- satpy.readers.viirs_l2 module
VIIRSCloudMaskFileHandler
VIIRSCloudMaskFileHandler.end_orbit_number
VIIRSCloudMaskFileHandler.end_time
VIIRSCloudMaskFileHandler.get_dataset()
VIIRSCloudMaskFileHandler.get_metadata()
VIIRSCloudMaskFileHandler.get_shape()
VIIRSCloudMaskFileHandler.platform_name
VIIRSCloudMaskFileHandler.sensor_name
VIIRSCloudMaskFileHandler.start_orbit_number
VIIRSCloudMaskFileHandler.start_time
- satpy.readers.viirs_sdr module
- satpy.readers.virr_l1b module
- satpy.readers.xmlformat module
- satpy.readers.yaml_reader module
AbstractYAMLReader
AbstractYAMLReader.all_dataset_ids
AbstractYAMLReader.all_dataset_names
AbstractYAMLReader.available_dataset_ids
AbstractYAMLReader.available_dataset_names
AbstractYAMLReader.end_time
AbstractYAMLReader.filter_selected_filenames()
AbstractYAMLReader.from_config_files()
AbstractYAMLReader.get_dataset_key()
AbstractYAMLReader.load()
AbstractYAMLReader.load_ds_ids_from_config()
AbstractYAMLReader.select_files_from_directory()
AbstractYAMLReader.select_files_from_pathnames()
AbstractYAMLReader.sensor_names
AbstractYAMLReader.start_time
AbstractYAMLReader.supports_sensor()
FileYAMLReader
FileYAMLReader.available_dataset_ids
FileYAMLReader.check_file_covers_area()
FileYAMLReader.create_filehandlers()
FileYAMLReader.end_time
FileYAMLReader.filename_items_for_filetype()
FileYAMLReader.filter_fh_by_metadata()
FileYAMLReader.filter_filenames_by_info()
FileYAMLReader.filter_selected_filenames()
FileYAMLReader.find_required_filehandlers()
FileYAMLReader.get_dataset_key()
FileYAMLReader.load()
FileYAMLReader.metadata_matches()
FileYAMLReader.sensor_names
FileYAMLReader.sorted_filetype_items()
FileYAMLReader.start_time
FileYAMLReader.time_matches()
FileYAMLReader.update_ds_ids_from_file_handlers()
GEOFlippableFileYAMLReader
GEOSegmentYAMLReader
GEOVariableSegmentYAMLReader
listify_string()
load_yaml_configs()
split_integer_in_most_equal_parts()
Module contents
Shared objects of the various reader classes.
- class satpy.readers.FSFile(file, fs=None)[source]
Bases:
PathLike
Implementation of a PathLike file object, that can be opened.
Giving the filenames to
Scene
with valid transfer protocols will automatically use this class so manual usage of this class is needed mainly for fine-grained control.This class is made to be used in conjuction with fsspec or s3fs. For example:
from satpy import Scene import fsspec filename = 'noaa-goes16/ABI-L1b-RadC/2019/001/17/*_G16_s20190011702186*' the_files = fsspec.open_files("simplecache::s3://" + filename, s3={'anon': True}) from satpy.readers import FSFile fs_files = [FSFile(open_file) for open_file in the_files] scn = Scene(filenames=fs_files, reader='abi_l1b') scn.load(['true_color_raw'])
Initialise the FSFile instance.
- Parameters
file (str, Pathlike, or OpenFile) – String, object implementing the os.PathLike protocol, or an fsspec.OpenFile instance. If passed an instance of fsspec.OpenFile, the following argument
fs
has no effect.fs (fsspec filesystem, optional) – Object implementing the fsspec filesystem protocol.
- satpy.readers.available_readers(as_dict=False, yaml_loader=<class 'yaml.loader.UnsafeLoader'>)[source]
Available readers based on current configuration.
- Parameters
as_dict (bool) – Optionally return reader information as a dictionary. Default: False.
yaml_loader (Optional[Union[yaml.BaseLoader, yaml.FullLoader, yaml.UnsafeLoader]]) – The yaml loader type. Default:
yaml.UnsafeLoader
.
- Returns
List of available reader names. If as_dict is True then a list of dictionaries including additionally reader information is returned.
- Return type
- satpy.readers.configs_for_reader(reader=None)[source]
Generate reader configuration files for one or more readers.
- Parameters
reader (Optional[str]) – Yield configs only for this reader
Returns: Generator of lists of configuration files
- satpy.readers.find_files_and_readers(start_time=None, end_time=None, base_dir=None, reader=None, sensor=None, filter_parameters=None, reader_kwargs=None, missing_ok=False, fs=None)[source]
Find files matching the provided parameters.
Use start_time and/or end_time to limit found filenames by the times in the filenames (not the internal file metadata). Files are matched if they fall anywhere within the range specified by these parameters.
Searching is NOT recursive.
Files may be either on-disk or on a remote file system. By default, files are searched for locally. Users can search on remote filesystems by passing an instance of an implementation of fsspec.spec.AbstractFileSystem (strictly speaking, any object of a class implementing a
glob
method works).If locating files on a local file system, the returned dictionary can be passed directly to the Scene object through the filenames keyword argument. If it points to a remote file system, it is the responsibility of the user to download the files first (directly reading from cloud storage is not currently available in Satpy).
The behaviour of time-based filtering depends on whether or not the filename contains information about the end time of the data or not:
if the end time is not present in the filename, the start time of the filename is used and has to fall between (inclusive) the requested start and end times
otherwise, the timespan of the filename has to overlap the requested timespan
Example usage for querying a s3 filesystem using the s3fs module:
>>> import s3fs, satpy.readers, datetime >>> satpy.readers.find_files_and_readers( ... base_dir="s3://noaa-goes16/ABI-L1b-RadF/2019/321/14/", ... fs=s3fs.S3FileSystem(anon=True), ... reader="abi_l1b", ... start_time=datetime.datetime(2019, 11, 17, 14, 40)) {'abi_l1b': [...]}
- Parameters
start_time (datetime) – Limit used files by starting time.
end_time (datetime) – Limit used files by ending time.
base_dir (str) – The directory to search for files containing the data to load. Defaults to the current directory.
reader (str or list) – The name of the reader to use for loading the data or a list of names.
sensor (str or list) – Limit used files by provided sensors.
filter_parameters (dict) – Filename pattern metadata to filter on. start_time and end_time are automatically added to this dictionary. Shortcut for reader_kwargs[‘filter_parameters’].
reader_kwargs (dict) – Keyword arguments to pass to specific reader instances to further configure file searching.
missing_ok (bool) – If False (default), raise ValueError if no files are found. If True, return empty dictionary if no files are found.
fs (
fsspec.spec.AbstractFileSystem
) – Optional, instance of implementation offsspec.spec.AbstractFileSystem
(strictly speaking, any object of a class implementing.glob
is enough). Defaults to searching the local filesystem.
- Returns
Dictionary mapping reader name string to list of filenames
- Return type
- satpy.readers.get_valid_reader_names(reader)[source]
Check for old reader names or readers pending deprecation.
- satpy.readers.group_files(files_to_sort, reader=None, time_threshold=10, group_keys=None, reader_kwargs=None, missing='pass')[source]
Group series of files by file pattern information.
By default this will group files by their filename
start_time
assuming it exists in the pattern. By passing the individual dictionaries returned by this function to the Scene classes’filenames
, a series Scene objects can be easily created.- Parameters
files_to_sort (iterable) – File paths to sort in to group
reader (str or Collection[str]) – Reader or readers whose file patterns should be used to sort files. If not given, try all readers (slow, adding a list of readers is strongly recommended).
time_threshold (int) – Number of seconds used to consider time elements in a group as being equal. For example, if the ‘start_time’ item is used to group files then any time within time_threshold seconds of the first file’s ‘start_time’ will be seen as occurring at the same time.
group_keys (list or tuple) – File pattern information to use to group files. Keys are sorted in order and only the first key is used when comparing datetime elements with time_threshold (see above). This means it is recommended that datetime values should only come from the first key in
group_keys
. Otherwise, there is a good chance that files will not be grouped properly (datetimes being barely unequal). Defaults to a reader’sgroup_keys
configuration (set in YAML), otherwise('start_time',)
. When passing multiple readers, passing group_keys is strongly recommended as the behaviour without doing so is undefined.reader_kwargs (dict) – Additional keyword arguments to pass to reader creation.
missing (str) – Parameter to control the behavior in the scenario where multiple readers were passed, but at least one group does not have files associated with every reader. Valid values are
"pass"
(the default),"skip"
, and"raise"
. If set to"pass"
, groups are passed as-is. Some groups may have zero files for some readers. If set to"skip"
, groups for which one or more readers have zero files are skipped (meaning that some files may not be associated to any group). If set to"raise"
, raise a FileNotFoundError in case there are any groups for which one or more readers have no files associated.
- Returns
List of dictionaries mapping ‘reader’ to a list of filenames. Each of these dictionaries can be passed as
filenames
to a Scene object.
- satpy.readers.load_reader(reader_configs, **reader_kwargs)[source]
Import and setup the reader from reader_info.
- satpy.readers.load_readers(filenames=None, reader=None, reader_kwargs=None)[source]
Create specified readers and assign files to them.
- Parameters
filenames (iterable or dict) – A sequence of files that will be used to load data from. A
dict
object should map reader names to a list of filenames for that reader.reader (str or list) – The name of the reader to use for loading the data or a list of names.
reader_kwargs (dict) – Keyword arguments to pass to specific reader instances. This can either be a single dictionary that will be passed to all reader instances, or a mapping of reader names to dictionaries. If the keys of
reader_kwargs
match exactly the list of strings inreader
or the keys of filenames, each reader instance will get its own keyword arguments accordingly.
Returns: Dictionary mapping reader name to reader instance