satpy.readers.core.loading module

Reader loading.

satpy.readers.core.loading._check_reader_and_filenames(reader, filenames)[source]
satpy.readers.core.loading._check_reader_instances(reader_instances)[source]
satpy.readers.core.loading._check_remaining_files(remaining_filenames)[source]
satpy.readers.core.loading._early_exit(filenames, reader)[source]
satpy.readers.core.loading._get_reader_and_filenames(reader, filenames)[source]
satpy.readers.core.loading._get_reader_instance(reader, reader_configs, idx, reader_kwargs)[source]
satpy.readers.core.loading._get_reader_kwargs(reader, reader_kwargs)[source]

Help load_readers to form reader_kwargs.

Helper for load_readers to get reader_kwargs and reader_kwargs_without_filter in the desirable form.

satpy.readers.core.loading._get_readers_files(filenames, reader, idx, remaining_filenames)[source]
satpy.readers.core.loading._log_yaml_error(reader_configs, err)[source]
satpy.readers.core.loading.load_reader(reader_configs, **reader_kwargs)[source]

Import and setup the reader from reader_info.

satpy.readers.core.loading.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 in reader or the keys of filenames, each reader instance will get its own keyword arguments accordingly.

Returns: Dictionary mapping reader name to reader instance