obspy.clients.filesystem.tsindex.Client._get_availability_from_timespans

Client._get_availability_from_timespans(network, station, location, channel, samplerates, include_sample_rate, merge_overlap, timespans, _sncl_joined_avail_tuples=None)[source]

Recurse over a list of timespans, joining adjacent timespans, and merging if merge_overlaps is True.

Returns a list of tuples (network, station, location, channel, earliest, latest) representing available data.

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.
  • timespans (list) List of timespan tuples.