obspy.clients.filesystem.tsindex.Client

class Client(database, datapath_replace=None, loglevel='WARNING')[source]

Bases: builtins.object

Time series extraction client for IRIS tsindex database schema.

Attributes

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

Public Methods

get_availability Get a list of tuples [(network, station, location, channel, starttime, endtime),...] containing data availability info for time series included in the tsindex database.
get_availability_extent Get a list of tuples [(network, station, location, channel, earliest, latest)] containing data extent info for time series included in the tsindex database.
get_availability_percentage Get percentage of available data.
get_nslc Get a list of tuples [(net, sta, loc, cha),...] containing information on what streams are included in the tsindex database.
get_waveforms Query tsindex database and read miniSEED data from local indexed
get_waveforms_bulk Query tsindex database and read miniSEED data from local indexed
has_data Return whether there is data for a specified network, station, location, channel, starttime, and endtime combination.

Private Methods

Warning

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

_are_timespans_adjacent Checks whether or not two time span named tuples (e.g.
_create_avail_tuple Returns a tuple representing available waveform data.
_create_timespan Create a TimeSpan named tuple object given a earliest and latest
_create_timespans_list Given a timespans string from the database, return a list of named tuples.
_do_timespans_overlap Checks whether or not two time span named tuples (e.g.
_get_availability_from_timespans Recurse over a list of timespans, joining adjacent timespans,
_get_summary_rows Return a list of tuples [(net, sta, loc, cha, earliest, latest),...] containing information found in the tsindex_summary table.
_get_tsindex_rows Return a list of tuples [(net, sta, loc, cha, quality...
_get_waveforms Query tsindex database and read miniSEED data from local

Special Methods

__dir__ default dir() implementation
__format__ default object formatter
__init__ Initializes the client.
__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().