get_availability#
- gwpy.io.nds2.get_availability(
- channels: Sequence[str | Channel | nds2.channel],
- start: int,
- end: int,
- connection: nds2.connection | None = None,
- host: str | None = None,
- port: int | None = None,
Query an NDS2 server for data availability.
- Parameters:
- channels
listofstr List of channel names to query; this list is mapped to NDS channel names using
find_channels()..- start
int GPS start time of query.
- end
int GPS end time of query.
- connection
nds2.connection, optional Open NDS2 connection to use for query.
- host
str, optional Name of NDS2 server to query, required if
connectionis not given.- port
int, optional Port number on host to use for NDS2 connection.
- channels
- Returns:
- segdict
SegmentListDict Dict of
(name, SegmentList)pairs.
- segdict
- Raises:
ValueErrorIf the given channel name cannot be mapped uniquely to a name in the NDS server database.
See also
nds2.connection.get_availabilityFor documentation on the underlying query method.