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, defaults to 10
- -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=3640
Got a packet: C3472B CO HODGE 00 HHZ 2021,196,13:06:48.8000
D CO.HODGE.00.HHZ 2021,196,13:06:48.8000 4.26 426
hasNext(): blocking read for 3 bytes, available=3120
readPacket(): blocking read for 520 bytes, available=3120
Got a packet: C3472C CO HODGE 00 HHZ 2021,196,13:06:53.0600
D CO.HODGE.00.HHZ 2021,196,13:06:53.0600 4.44 444
hasNext(): blocking read for 3 bytes, available=2600
readPacket(): blocking read for 520 bytes, available=2600
Got a packet: C3472D CO HODGE 00 HHZ 2021,196,13:06:57.5000
D CO.HODGE.00.HHZ 2021,196,13:06:57.5000 4.29 429
send 'BYE'
Finished: 2021-07-15T13:07:49.613Z