Synopsis

seedlinkclient [-vV] [--help] [-b=<start>] [-e=<end>] [-h=<host>] [--iout=<ioutFile>] [--itype=<infoType>] [--max=<maxRecords>] [-o=<outputFile>] [-p=<port>] [--timeout=<timeoutSec>] [-c=<channel>[,<channel>…​]]…​ [-l=<location>[, <location>…​]]…​ [-n=<network>[,<network>…​]]…​ [-s=<station> [,<station>…​]]…​

Description

Example client to stream miniseed over seedlink.

Information about the Seedlink protocol can be found here https://www.seiscomp.de/seiscomp3/doc/applications/seedlink.html and information about its use at IRIS here http://ds.iris.edu/ds/nodes/dmc/services/seedlink/.

Options

-b, --start, --starttime=<start>

Limit results to time series samples on or after the specified start time

-c, --channel=<channel>[,<channel>…​]

list of channels to search

-e, --end, --endtime=<end>

Limit results to time series samples on or before the specified end time

-h, --host=<host>

host to connect to, defaults to IRIS, rtserve.iris.washington.edu

--help

display a help message

--iout=<ioutFile>

info out file

--itype=<infoType>

info typ, ex STREAMS

-l, --location=<location>[,<location>…​]

list of locations to search

--max=<maxRecords>

number of packets to receive before ending the connection, defaults to 10

-n, --network=<network>[,<network>…​]

list of networks to search

-o, --output=<outputFile>

Output file (default: print to console)

-p, --port=<port>

port to connect to, defaults to IRIS, 18000

-s, --station=<station>[,<station>…​]

list of stations to search

--timeout=<timeoutSec>

timeout seconds, defaults to 120

-v, --verbose

Verbose

-V, --version

Print version and exit

Examples

Ask for a few packets of HHZ data from station CO.HODGE, and output to a file.

> seedlinkclient -n CO -s HODGE -c HHZ -o hodge.mseed --max 3 -v
Init SeedLink to rtserve.iris.washington.edu 18000
send 'HELLO'
recv 'SeedLink v3.1 (2020.075 RingServer) :: SLPROTO:3.1 CAP EXTREPLY NSWILDCARD BATCH WS:13'
recv 'IRIS DMC RTSERVE2 SEA Ring Server'
send 'STATION HODGE CO'
recv 'OK'
send 'SELECT   HHZ.D'
recv 'OK'
send 'SELECT ??HHZ.D'
recv 'OK'
send 'DATA'
recv 'OK'
send 'END'
3 true
 Got a packet: 1E615A  CO  HODGE  00  HHZ  2023,249,17:33:18.8000
D CO.HODGE.00.HHZ 2023,249,17:33:18.8000  4.72 472
 Got a packet: 1E615B  CO  HODGE  00  HHZ  2023,249,17:33:23.5200
D CO.HODGE.00.HHZ 2023,249,17:33:23.5200  4.62 462
 Got a packet: 1E617F  CO  HODGE  00  HHZ  2023,249,17:33:28.1400
D CO.HODGE.00.HHZ 2023,249,17:33:28.1400  4.72 472
send 'BYE'
Finished: 2023-09-06T17:34:30.853081Z