[seiscomp, scanloc] Install, add .gitignore
This commit is contained in:
47
share/templates/seedlink/hrd24/plugins.ini.tpl
Normal file
47
share/templates/seedlink/hrd24/plugins.ini.tpl
Normal file
@ -0,0 +1,47 @@
|
||||
* Generated at $date - Do not edit!
|
||||
* template: $template
|
||||
|
||||
[$seedlink.source.id]
|
||||
|
||||
* Settings for Nanometrics HRD24 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=hrd24
|
||||
|
||||
* Serial port
|
||||
port=$sources.hrd24.comport
|
||||
|
||||
* Baud rate
|
||||
bps=$sources.hrd24.baudrate
|
||||
|
||||
* Number of "bundles" in one packet
|
||||
bundles=$sources.hrd24.bundles
|
||||
|
||||
* 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
|
||||
|
||||
* Directory for state-of-health log files (optional)
|
||||
* soh_log_dir=$pkgroot/var/log/hrd24-SOH-files
|
||||
|
||||
* 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
|
||||
|
7
share/templates/seedlink/hrd24/seedlink_plugin.tpl
Normal file
7
share/templates/seedlink/hrd24/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.hrd24.proc"
|
||||
|
29
share/templates/seedlink/hrd24/setup.py
Normal file
29
share/templates/seedlink/hrd24/setup.py
Normal file
@ -0,0 +1,29 @@
|
||||
import os
|
||||
|
||||
'''
|
||||
Plugin handler for the EarthData PS6-24 plugin.
|
||||
'''
|
||||
class SeedlinkPluginHandler:
|
||||
# Create defaults
|
||||
def __init__(self): pass
|
||||
|
||||
def push(self, seedlink):
|
||||
# Check and set defaults
|
||||
try: seedlink.param('sources.hrd24.comport')
|
||||
except: seedlink.setParam('sources.hrd24.comport', '/dev/data')
|
||||
|
||||
try: seedlink.param('sources.hrd24.baudrate')
|
||||
except: seedlink.setParam('sources.hrd24.baudrate', 19200)
|
||||
|
||||
try: seedlink.param('sources.hrd24.bundles')
|
||||
except: seedlink.setParam('sources.hrd24.bundles', 59)
|
||||
|
||||
try: seedlink.param('sources.hrd24.proc')
|
||||
except: seedlink.setParam('sources.hrd24.proc', 'hrd24_100')
|
||||
|
||||
return seedlink.net + "." + seedlink.sta
|
||||
|
||||
|
||||
# Flush does nothing
|
||||
def flush(self, seedlink):
|
||||
pass
|
20
share/templates/seedlink/hrd24/streams_hrd24_100.tpl
Normal file
20
share/templates/seedlink/hrd24/streams_hrd24_100.tpl
Normal file
@ -0,0 +1,20 @@
|
||||
<proc name="hrd24_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>
|
||||
</proc>
|
Reference in New Issue
Block a user