obspy.clients.filesystem.tsindex.Client.get_availability
- Client.get_availability(network=None, station=None, location=None, channel=None, starttime=None, endtime=None, include_sample_rate=False, merge_overlap=False)[source]
Get a list of tuples [(network, station, location, channel, starttime, endtime),…] containing data availability info for time series included in the tsindex database.
If
include_sample_rate=True
, then a tuple containing the sample rate [(net, sta, loc, cha, start, end, sample_rate),…] is returned.If
merge_overlap=True
, then all time spans that overlap are merged.- Parameters
network (str) – Network code of requested data (e.g. “IU”). Wildcards ‘*’ and ‘?’ are supported.
station (str) – Station code of requested data (e.g. “ANMO”). Wildcards ‘*’ and ‘?’ are supported.
location (str) – Location code of requested data (e.g. “”). Wildcards ‘*’ and ‘?’ are supported.
channel (str) – Channel code of requested data (e.g. “HHZ”). Wildcards ‘*’ and ‘?’ are supported.
starttime (
UTCDateTime
) – Start of requested time window.endtime (
UTCDateTime
) – End of requested time window.include_sample_rate (bool) – If
include_sample_rate=True
, then a tuple containing the sample rate [(net, sta, loc, cha, start, end, sample_rate),…] is returned.merge_overlap (bool) – If
merge_overlap=True
, then all time spans that overlap are merged.
- Return type
list(tuple(str, str, str, str,
UTCDateTime
,UTCDateTime
))- Returns
A list of tuples [(network, station, location, channel, earliest, latest)…] representing contiguous time spans for selected channels and time ranges.