Synopsis

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

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>

list of locations to search

--max=<maxRecords>

number of packets to receive before ending the connection

-n, --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>

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 RTSERVE SEA Ring Server
line 1 :SeedLink v3.1 (2020.075 RingServer) :: SLPROTO:3.1 CAP EXTREPLY NSWILDCARD BATCH WS:13
line 2 :IRIS DMC RTSERVE SEA Ring Server
send 'STATION HODGE CO'
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=4160
 Got a packet: 7E0417  CO  HODGE  00  HHZ  2021,062,17:26:52.8500
D CO.HODGE.00.HHZ 2021,062,17:26:52.8500  4.34 434
hasNext(): blocking read for 3 bytes, available=3640
readPacket(): blocking read for 520 bytes, available=3640
 Got a packet: 7E0418  CO  HODGE  00  HHZ  2021,062,17:26:57.1900
D CO.HODGE.00.HHZ 2021,062,17:26:57.1900  4.22 422
hasNext(): blocking read for 3 bytes, available=3120
readPacket(): blocking read for 520 bytes, available=3120
 Got a packet: 7E0419  CO  HODGE  00  HHZ  2021,062,17:27:01.4100
D CO.HODGE.00.HHZ 2021,062,17:27:01.4100  4.24 424
send 'BYE'
Finished: 2021-03-03T17:27:35.415872Z