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
send 'HELLO'
SeedLink v3.1 (2018.078 RingServer) :: SLPROTO:3.1 CAP EXTREPLY NSWILDCARD BATCH WS:13
IRIS DMC RTSERVE3 ADC1 Ring Server
line 1 :SeedLink v3.1 (2018.078 RingServer) :: SLPROTO:3.1 CAP EXTREPLY NSWILDCARD BATCH WS:13
line 2 :IRIS DMC RTSERVE3 ADC1 Ring Server
send 'STATION HODGE CO'
OK
send 'SELECT   HHZ.D'
OK
send 'SELECT ??HHZ.D'
OK
send 'DATA'
OK
send 'END'
hasNext(): blocking read for 3 bytes, available=0
readPacket(): blocking read for 520 bytes, available=4680
 Got a packet: D00BCC  CO  HODGE  00  HHZ  2023,038,17:31:47.6700
D CO.HODGE.00.HHZ 2023,038,17:31:47.6700  4.13 413
hasNext(): blocking read for 3 bytes, available=4160
readPacket(): blocking read for 520 bytes, available=4160
 Got a packet: D00BCD  CO  HODGE  00  HHZ  2023,038,17:31:51.8000
D CO.HODGE.00.HHZ 2023,038,17:31:51.8000  3.86 386
hasNext(): blocking read for 3 bytes, available=3640
readPacket(): blocking read for 520 bytes, available=3640
 Got a packet: D00BCE  CO  HODGE  00  HHZ  2023,038,17:31:55.6600
D CO.HODGE.00.HHZ 2023,038,17:31:55.6600  3.67 367
send 'BYE'
Finished: 2023-02-07T17:32:42.555035Z