[seiscomp, scanloc] Install, add .gitignore
This commit is contained in:
73
share/templates/seedlink/dr24/plugins.ini.tpl
Normal file
73
share/templates/seedlink/dr24/plugins.ini.tpl
Normal file
@ -0,0 +1,73 @@
|
||||
* Generated at $date - Do not edit!
|
||||
* template: $template
|
||||
|
||||
[$seedlink.source.id]
|
||||
|
||||
* Settings for Geotech DR24 digitizer
|
||||
|
||||
* Station ID (network/station code is set in seedlink.ini)
|
||||
station=$seedlink.station.id
|
||||
|
||||
* Use the command 'serial_plugin -m' to find out which protocols are
|
||||
* supported.
|
||||
protocol=dr24
|
||||
|
||||
* Serial port
|
||||
port=$sources.dr24.comport
|
||||
|
||||
* Baud rate
|
||||
bps=$sources.dr24.baudrate
|
||||
|
||||
* lsb (defaults to 8): least significant bit (relative to 32-bit samples),
|
||||
* normally 8 for 24-bit samples, but can be set for example to 7 to get
|
||||
* 25-bit samples;
|
||||
* statusinterval (defaults to 0): time interval in minutes when "state of
|
||||
* health" information is logged, 0 means "disabled". State of health
|
||||
* channels can be used independently of this option.
|
||||
*
|
||||
* If you set 'checksum' to a wrong value then the driver will not work and
|
||||
* you will get error messages like "bad SUM segment" or "bad MOD segment".
|
||||
lsb=8
|
||||
statusinterval=60
|
||||
|
||||
* Parameter 'time_offset' contains the amount of microseconds to be added
|
||||
* to the time reported by the digitizer.
|
||||
|
||||
* 1.389 sec is possibly the correct offset if you have a version of the
|
||||
* Earth Data digitizer with external GPS unit.
|
||||
* time_offset=1389044
|
||||
|
||||
* Maximum number of consecutive zeros in datastream before data gap will be
|
||||
* declared (-1 = disabled).
|
||||
zero_sample_limit = -1
|
||||
|
||||
* Default timing quality in percents. This value will be used when no
|
||||
* timing quality information is available. Can be -1 to omit the blockette
|
||||
* 1001 altogether.
|
||||
default_tq = 0
|
||||
|
||||
* Timing quality to use when GPS is out of lock
|
||||
unlock_tq = 10
|
||||
|
||||
* Keyword 'channel' is used to map input channels to symbolic channel
|
||||
* names. Channel names are arbitrary 1..10-letter identifiers which should
|
||||
* match the input names of the stream processing scheme in streams.xml,
|
||||
* which is referenced from seedlink.ini
|
||||
|
||||
channel Z source_id=0
|
||||
channel E source_id=1
|
||||
channel N source_id=2
|
||||
|
||||
* "State of health" channels
|
||||
|
||||
channel S0 source_id=16
|
||||
channel S1 source_id=17
|
||||
channel S2 source_id=18
|
||||
channel S3 source_id=19
|
||||
channel S4 source_id=20
|
||||
channel S5 source_id=21
|
||||
channel S6 source_id=22
|
||||
channel S7 source_id=23
|
||||
channel S8 source_id=24
|
||||
* channel S9 source_id=25
|
||||
|
7
share/templates/seedlink/dr24/seedlink_plugin.tpl
Normal file
7
share/templates/seedlink/dr24/seedlink_plugin.tpl
Normal file
@ -0,0 +1,7 @@
|
||||
* template: $template
|
||||
plugin $seedlink.source.id cmd = "$seedlink.plugin_dir/serial_plugin$seedlink._daemon_opt -v -f $seedlink.config_dir/plugins.ini"
|
||||
timeout = 600
|
||||
start_retry = 60
|
||||
shutdown_wait = 10
|
||||
proc = "$sources.dr24.proc"
|
||||
|
26
share/templates/seedlink/dr24/setup.py
Normal file
26
share/templates/seedlink/dr24/setup.py
Normal file
@ -0,0 +1,26 @@
|
||||
import os
|
||||
|
||||
'''
|
||||
Plugin handler for the Geotech DR24 plugin.
|
||||
'''
|
||||
class SeedlinkPluginHandler:
|
||||
# Create defaults
|
||||
def __init__(self): pass
|
||||
|
||||
def push(self, seedlink):
|
||||
# Check and set defaults
|
||||
try: seedlink.param('sources.dr24.comport')
|
||||
except: seedlink.setParam('sources.dr24.comport', '/dev/data')
|
||||
|
||||
try: seedlink.param('sources.dr24.baudrate')
|
||||
except: seedlink.setParam('sources.dr24.baudrate', 19200)
|
||||
|
||||
try: seedlink.param('sources.dr24.proc')
|
||||
except: seedlink.setParam('sources.dr24.proc', 'dr24_50')
|
||||
|
||||
return seedlink.param('sources.dr24.comport')
|
||||
|
||||
|
||||
# Flush does nothing
|
||||
def flush(self, seedlink):
|
||||
pass
|
28
share/templates/seedlink/dr24/streams_dr24_50.tpl
Normal file
28
share/templates/seedlink/dr24/streams_dr24_50.tpl
Normal file
@ -0,0 +1,28 @@
|
||||
<proc name="dr24_50">
|
||||
<tree>
|
||||
<input name="Z" channel="Z" location="" rate="50"/>
|
||||
<input name="N" channel="N" location="" rate="50"/>
|
||||
<input name="E" channel="E" location="" rate="50"/>
|
||||
<node stream="SH"/>
|
||||
<node filter="F96C" stream="BH">
|
||||
<node filter="FS2D5">
|
||||
<node filter="FS2D5" stream="LH">
|
||||
<node filter="VLP" stream="VH"/>
|
||||
</node>
|
||||
</node>
|
||||
</node>
|
||||
</tree>
|
||||
<tree>
|
||||
<input name="S0" channel="0" location="" rate="1/10"/>
|
||||
<input name="S1" channel="1" location="" rate="1/10"/>
|
||||
<input name="S2" channel="2" location="" rate="1/10"/>
|
||||
<input name="S3" channel="3" location="" rate="1/10"/>
|
||||
<input name="S4" channel="4" location="" rate="1/10"/>
|
||||
<input name="S5" channel="5" location="" rate="1/10"/>
|
||||
<input name="S6" channel="6" location="" rate="1/10"/>
|
||||
<input name="S7" channel="7" location="" rate="1/10"/>
|
||||
<input name="S8" channel="8" location="" rate="1/10"/>
|
||||
<input name="S9" channel="9" location="" rate="1/10"/>
|
||||
<node stream="AE"/>
|
||||
</tree>
|
||||
</proc>
|
Reference in New Issue
Block a user