Skip to content

Commit eaefa7c

Browse files
author
Chad Trabant
committed
Prep for push to Github
1 parent f80ff30 commit eaefa7c

File tree

2 files changed

+28
-45
lines changed

2 files changed

+28
-45
lines changed

README renamed to README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

2-
slinktool, the all-in-one SeedLink client.
2+
# slinktool, the all-in-one SeedLink client.
33

4-
For usage information see the slinktool(1) man page in the 'doc'
5-
directory.
4+
For usage information see the [slinktool manual](doc/slinktool.md)
5+
in the 'doc' directory.
66

7-
-- Building and Installation --
7+
## Building and Installation
88

99
In most environments a simple 'make' will compile the program.
1010

@@ -19,7 +19,7 @@ A Makefile.win is included for building for using with Nmake, i.e.
1919
For further installation simply copy the resulting binary and man page
2020
(in the 'doc' directory) to appropriate system directories.
2121

22-
-- Licensing --
22+
## Licensing
2323

2424
Copyright (C) 2016 Chad Trabant, IRIS Data Management Center
2525

@@ -36,5 +36,3 @@ Lesser General Public License (GNU-LGPL) for more details.
3636
You should have received a copy of the GNU Lesser General Public
3737
License along with this software.
3838
If not, see <https://www.gnu.org/licenses/>.
39-
40-

doc/slinktool.1

Lines changed: 23 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH SLINKTOOL 1 2010/03/10
1+
.TH SLINKTOOL 1 2016/10/19
22
.SH NAME
33
slinktool \- SeedLink client for data stream inspection, data collection
44
and server testing
@@ -53,8 +53,8 @@ The default value is 30 seconds.
5353

5454
.IP "-nt \fItimeout\fR"
5555
The network timeout (in seconds) for the connection to the SeedLink
56-
server. If no data [or keep alive packets?] are received in this
57-
time the connection is closed and re-established (after the
56+
server. If no data [or keep alive packets?] are received in this
57+
time the connection is closed and re-established (after the
5858
reconnect delay has expired). The default value is 600 seconds.
5959
A value of 0 disables the timeout.
6060

@@ -105,7 +105,7 @@ subdirectories will be created if necessary. This option is
105105
esentially a preset version of '-A' option. The SDS dir/file
106106
structure is:
107107
.nf
108-
<SDSdir>/<YEAR>/<NET>/<STA>/<CHAN.TYPE>/NET.STA.LOC.CHAN.TYPE.YEAR.DAY
108+
SDSdir/YEAR/NET/STA/CHAN.TYPE/NET.STA.LOC.CHAN.TYPE.YEAR.DAY
109109
.fi
110110

111111
.IP "-BUD \fIBUDdir\fR"
@@ -116,7 +116,7 @@ subdirectories will be created if necessary. This option is
116116
esentially a preset version of '-A' option. The BUD dir/file
117117
structure is:
118118
.nf
119-
<BUDdir>/<NET>/<STA>/STA.NET.LOC.CHAN.YEAR.DAY
119+
BUDdir/NET/STA/STA.NET.LOC.CHAN.YEAR.DAY
120120
.fi
121121

122122
.IP "-s \fIselectors\fR"
@@ -152,7 +152,7 @@ Warning: time windowing might be disabled on the remote server.
152152
Send an information request (INFO); the returned raw XML response
153153
is displayed. Possible levels are: ID, CAPABILITIES, STATIONS,
154154
STREAMS, GAPS, CONNECTIONS, ALL.
155-
.PP
155+
156156
Formatted INFO shortcuts (formats the XML for readability):
157157

158158
.nf
@@ -165,7 +165,7 @@ Formatted INFO shortcuts (formats the XML for readability):
165165

166166
Warning: informational (INFO) messages might be disabled on the server.
167167

168-
.IP "\fI[host][:][port]\fR"
168+
.IP "[host][:][port]"
169169
A required argument, specifies the address of the SeedLink server in
170170
host:port format. Either the host, port or both can be omitted. If
171171
host is omitted then localhost is assumed, i.e. ':18000'
@@ -174,16 +174,15 @@ assumed, i.e. 'localhost' implies 'localhost:18000'. If only ':' is
174174
specified 'localhost:18000' is assumed.
175175

176176
.SH "EXAMPLES"
177-
All-station/Uni-station mode example:
178-
.IP
177+
.IP All-station/Uni-station mode example:
179178
The following would connect to a SeedLink server at slink.host.com
180179
port 18000 and configure the link in all-station/uni-station mode,
181180
exactly which data are received depends on the data being served by
182181
the SeedLink server on that particular port. Additionally, all of the
183182
received packets are appended to the file 'data.mseed' and each packet
184183
received is reported on the standard output.
185184

186-
.B >slinktool -v -o data.mseed slink.host.com:18000
185+
.B > slinktool -v -o data.mseed slink.host.com:18000
187186

188187
The '-s' argument could be used to indicate selectors to limit the
189188
type of packets sent by the SeedLink server (without selectors all
@@ -193,38 +192,30 @@ explanation of SeedLink selectors below). Additionally another
193192
verbose flag is given, causing slinktool to report detailed
194193
header information from data records.
195194

196-
.B >slinktool -vv -s 10BHZ.D -o data.mseed slink.host.com:18000
195+
.B > slinktool -vv -s 10BHZ.D -o data.mseed slink.host.com:18000
197196

198-
.PP
199-
Multi-station mode example:
200-
.IP
197+
.IP Multi-station mode example:
201198
The following example would connect to a SeedLink server on
202199
localhost port 18010 and configure the link in multi-station
203200
mode. Each station specified with the '-S' argument will be
204201
requested, optionally specifying selectors for each station.
205202

206-
.nf
207-
.B >slinktool -v -S GE_WLF,MN_AQU:00???,IU_KONO:BHZ.D :18010
208-
.fi
203+
.B > slinktool -v -S GE_WLF,MN_AQU:00???,IU_KONO:BHZ.D :18010
209204

210205
This would request GEOFON station WLF (all data as no selectors
211206
were indicated), MedNet station AQU with location code 00 (all
212207
channels) and IU network station KONO (only waveform data) from
213208
channel BHZ.
214209

215-
Of course, a variety of different data selections can be made
216-
(only one '-S' option):
210+
Of course, a variety of different data selections can be made:
217211

218-
.nf
219212
.B -s 'BHE.D BHN.D' -S 'GE_STU,GE_MALT,GE_WLF'
220213
(horizontal BH channels, data only)
214+
221215
.B -s BHZ -S GE_STU,GE_WLF,GE_RUE,GE_EIL
222216
(vertical channels only)
223-
.fi
224217

225-
.PP
226-
Wildcarding network and station codes
227-
.IP
218+
.IP Wildcarding network and station codes
228219
Some SeedLink implementation support wildcarding of the network and
229220
station codes, when this is the case the only two wildcard characters
230221
recognized are '*' for one or more characters and '?' for any single
@@ -233,9 +224,7 @@ character.
233224
As an example, all US network data can be requested using the
234225
following syntax:
235226

236-
.nf
237-
-B -S 'US_*
238-
.fi
227+
.B -S 'US_*'
239228

240229
.SH "SeedLink SELECTORS"
241230

@@ -283,12 +272,12 @@ flags:
283272
\fB#\fP : the number (#) character
284273
\fBt\fP : single character type code:
285274
D - waveform data packet
286-
E - detection packet
287-
C - calibration packet
288-
T - timing packet
289-
L - log packet
290-
O - opaque data packet
291-
U - unknown/general packet
275+
E - detection packet
276+
C - calibration packet
277+
T - timing packet
278+
L - log packet
279+
O - opaque data packet
280+
U - unknown/general packet
292281
I - INFO packet
293282
? - unidentifiable packet
294283
.fi
@@ -327,7 +316,7 @@ The stream list file used with the '-l' option is expected to
327316
define a data stream on each line. The format of each line is:
328317

329318
.nf
330-
<net> <station> [selectors]
319+
Network Station [selectors]
331320
.fi
332321

333322
The selectors are optional. If default selectors are also specified
@@ -351,10 +340,6 @@ All diagnostic output from slinktool is printed to standard error
351340
-p flag), when printing unpacked samples (the -u flag) and when
352341
printing the raw or formatted responses to INFO requests.
353342

354-
SeedLink is currently distributed as part of the SeisComP
355-
(Seismological Communication Processor) package. For more
356-
information see, http://www.gfz-potsdam.de/geofon/
357-
358343
.SH AUTHOR
359344
.nf
360345
Chad Trabant

0 commit comments

Comments
 (0)