[seiscomp, scanloc] Install, add .gitignore
This commit is contained in:
69
share/templates/seedlink/sadc/plugins.ini.tpl
Normal file
69
share/templates/seedlink/sadc/plugins.ini.tpl
Normal file
@ -0,0 +1,69 @@
|
||||
* Generated at $date - Do not edit!
|
||||
* template: $template
|
||||
|
||||
[$seedlink.source.id]
|
||||
|
||||
* Settings for SADC10/18/20/30 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=sadc
|
||||
|
||||
* Serial port
|
||||
port=$sources.sadc.comport
|
||||
|
||||
* Baud rate
|
||||
bps=$sources.sadc.baudrate
|
||||
|
||||
* Use PC clock for initial time setting.
|
||||
pctime=$sources.sadc.pctime
|
||||
|
||||
* 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 N source_id=1
|
||||
channel E source_id=2
|
||||
|
||||
channel Z1 source_id=3
|
||||
channel N1 source_id=4
|
||||
channel E1 source_id=5
|
||||
|
||||
* Remaining channels of the 16-channel digitizer are defined as auxiliary
|
||||
* channels (100 sps, downsampled to 1 sps)
|
||||
|
||||
channel S0 source_id=6
|
||||
channel S1 source_id=7
|
||||
channel S2 source_id=8
|
||||
channel S3 source_id=9
|
||||
channel S4 source_id=10
|
||||
channel S5 source_id=11
|
||||
channel S6 source_id=12
|
||||
channel S7 source_id=13
|
||||
channel S8 source_id=14
|
||||
channel S9 source_id=15
|
||||
|
7
share/templates/seedlink/sadc/seedlink_plugin.tpl
Normal file
7
share/templates/seedlink/sadc/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.sadc.proc"
|
||||
|
29
share/templates/seedlink/sadc/setup.py
Normal file
29
share/templates/seedlink/sadc/setup.py
Normal file
@ -0,0 +1,29 @@
|
||||
import os
|
||||
|
||||
'''
|
||||
Plugin handler for the SADC10/18/20/30 plugin.
|
||||
'''
|
||||
class SeedlinkPluginHandler:
|
||||
# Create defaults
|
||||
def __init__(self): pass
|
||||
|
||||
def push(self, seedlink):
|
||||
# Check and set defaults
|
||||
try: seedlink.param('sources.sadc.comport')
|
||||
except: seedlink.setParam('sources.sadc.comport', '/dev/data')
|
||||
|
||||
try: seedlink.param('sources.sadc.baudrate')
|
||||
except: seedlink.setParam('sources.sadc.baudrate', 38400)
|
||||
|
||||
try: seedlink.param('sources.sadc.pctime')
|
||||
except: seedlink.setParam('sources.sadc.pctime', 0)
|
||||
|
||||
try: seedlink.param('sources.sadc.proc')
|
||||
except: seedlink.setParam('sources.sadc.proc', 'sadc_100')
|
||||
|
||||
return seedlink.param('sources.sadc.comport')
|
||||
|
||||
|
||||
# Flush does nothing
|
||||
def flush(self, seedlink):
|
||||
pass
|
37
share/templates/seedlink/sadc/streams_sadc_100.tpl
Normal file
37
share/templates/seedlink/sadc/streams_sadc_100.tpl
Normal file
@ -0,0 +1,37 @@
|
||||
<proc name="sadc_100">
|
||||
<tree>
|
||||
<input name="Z" channel="Z" location="" rate="100"/>
|
||||
<input name="N" channel="N" location="" rate="100"/>
|
||||
<input name="E" channel="E" location="" rate="100"/>
|
||||
<node stream="HH"/>
|
||||
|
||||
<!-- Uncomment this to enable 50Hz SH? streams -->
|
||||
<!-- -->
|
||||
<!-- <node filter="F96C" stream="SH"/> -->
|
||||
|
||||
<node filter="FS2D5" stream="BH">
|
||||
<node filter="F96C">
|
||||
<node filter="ULP" stream="LH">
|
||||
<node filter="VLP" stream="VH"/>
|
||||
</node>
|
||||
</node>
|
||||
</node>
|
||||
</tree>
|
||||
<tree>
|
||||
<input name="S0" channel="0" location="" rate="100"/>
|
||||
<input name="S1" channel="1" location="" rate="100"/>
|
||||
<input name="S2" channel="2" location="" rate="100"/>
|
||||
<input name="S3" channel="3" location="" rate="100"/>
|
||||
<input name="S4" channel="4" location="" rate="100"/>
|
||||
<input name="S5" channel="5" location="" rate="100"/>
|
||||
<input name="S6" channel="6" location="" rate="100"/>
|
||||
<input name="S7" channel="7" location="" rate="100"/>
|
||||
<input name="S8" channel="8" location="" rate="100"/>
|
||||
<input name="S9" channel="9" location="" rate="100"/>
|
||||
<node filter="FS2D5">
|
||||
<node filter="F96C">
|
||||
<node filter="ULP" stream="AE"/>
|
||||
</node>
|
||||
</node>
|
||||
</tree>
|
||||
</proc>
|
Reference in New Issue
Block a user