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 (2020.075 RingServer) :: SLPROTO:3.1 CAP EXTREPLY NSWILDCARD BATCH WS:13
IRIS DMC RTSERVE2 SEA Ring Server
line 1 :SeedLink v3.1 (2020.075 RingServer) :: SLPROTO:3.1 CAP EXTREPLY NSWILDCARD BATCH WS:13
line 2 :IRIS DMC RTSERVE2 SEA 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=520
 Got a packet: ADAF2A  CO  HODGE  00  HHZ  2023,213,15:41:12.2800
D CO.HODGE.00.HHZ 2023,213,15:41:12.2800  4.15 415
hasNext(): blocking read for 3 bytes, available=4160
readPacket(): blocking read for 520 bytes, available=4160
 Got a packet: ADAF2B  CO  HODGE  00  HHZ  2023,213,15:41:16.4300
D CO.HODGE.00.HHZ 2023,213,15:41:16.4300  4.19 419
hasNext(): blocking read for 3 bytes, available=3640
readPacket(): blocking read for 520 bytes, available=3640
 Got a packet: ADAF2C  CO  HODGE  00  HHZ  2023,213,15:41:20.6200
D CO.HODGE.00.HHZ 2023,213,15:41:20.6200  4.04 404
send 'BYE'
Finished: 2023-08-01T15:42:00.331186Z