class Indexer(root_path, database='timeseries.sqlite', leap_seconds_file='SEARCH', index_cmd='mseedindex', bulk_params=None, filename_pattern='*', parallel=5, loglevel='WARNING')[source]

Bases: builtins.object

Build an index for miniSEED data using IRIS’s mseedindex program. Recursively search for files matching filename_pattern starting from root_path and run index_cmd for each target file found that is not already in the index. After all new files are indexed a summary table is generated with the extents of each timeseries.


__doc__ str(object=’‘) -> str
__module__ str(object=’‘) -> str
__weakref__ list of weak references to the object (if defined)

Public Methods

build_file_list Create a list of absolute paths to all files under root_path that match the filename_pattern.
download_leap_seconds_file Attempt to download leap-seconds.list from Internet Engineering Task
run Execute the file discovery and indexing.

Private Methods


Private methods are mainly for internal/developer use and their API might change without notice.

_get_leap_seconds_file Return path to leap second file and set appropriate environment variable for mseedindex.
_get_rootpath_files Return a list of absolute paths to files under the rootpath that
_is_index_cmd_installed Checks if the index command (e.g.
_run_index_command Execute a command to perform indexing.

Special Methods

__dir__ default dir() implementation
__format__ default object formatter
__init__ Initializes the Indexer.
__new__ Create and return a new object.
__reduce__ helper for pickle
__reduce_ex__ helper for pickle
__sizeof__ size of object in memory, in bytes
__subclasshook__ Abstract classes can override this to customize issubclass().