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,
) SegmentListDict[source]#

Query an NDS2 server for data availability.

Parameters:
channelslist of str

List of channel names to query; this list is mapped to NDS channel names using find_channels()..

startint

GPS start time of query.

endint

GPS end time of query.

connectionnds2.connection, optional

Open NDS2 connection to use for query.

hoststr, optional

Name of NDS2 server to query, required if connection is not given.

portint, optional

Port number on host to use for NDS2 connection.

Returns:
segdictSegmentListDict

Dict of (name, SegmentList) pairs.

Raises:
ValueError

If the given channel name cannot be mapped uniquely to a name in the NDS server database.

See also

nds2.connection.get_availability

For documentation on the underlying query method.