[seiscomp, scanloc] Install, add .gitignore
This commit is contained in:
7
share/templates/seedlink/nmxp/seedlink_plugin.tpl
Normal file
7
share/templates/seedlink/nmxp/seedlink_plugin.tpl
Normal file
@ -0,0 +1,7 @@
|
||||
* template: $template
|
||||
plugin $seedlink.source.id cmd="$seedlink.plugin_dir/nmxptool -H $sources.nmxp.address -P $sources.nmxp.port -S $sources.nmxp.short_term_completion -M $sources.nmxp.max_latency$sources.nmxp.additional_options -k"
|
||||
timeout = 0
|
||||
start_retry = 60
|
||||
shutdown_wait = 10
|
||||
proc = "$sources.nmxp.proc"
|
||||
|
44
share/templates/seedlink/nmxp/setup.py
Normal file
44
share/templates/seedlink/nmxp/setup.py
Normal file
@ -0,0 +1,44 @@
|
||||
import os
|
||||
|
||||
'''
|
||||
Plugin handler for the nmxptool plugin.
|
||||
'''
|
||||
class SeedlinkPluginHandler:
|
||||
# Create defaults
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def push(self, seedlink):
|
||||
# Check and set defaults
|
||||
address = "idahub.ucsd.edu"
|
||||
try: address = seedlink.param('sources.nmxp.address')
|
||||
except: seedlink.setParam('sources.nmxp.address', address)
|
||||
|
||||
port = 28000
|
||||
try: port = int(seedlink.param('sources.nmxp.port'))
|
||||
except: seedlink.setParam('sources.nmxp.port', port)
|
||||
|
||||
max_latency = 300
|
||||
try: max_latency = int(seedlink.param('sources.nmxp.max_latency'))
|
||||
except: seedlink.setParam('sources.nmxp.max_latency', max_latency)
|
||||
|
||||
short_term_completion = -1
|
||||
try: short_term_completion = int(seedlink.param('sources.nmxp.short_term_completion'))
|
||||
except: seedlink.setParam('sources.nmxp.short_term_completion', short_term_completion)
|
||||
|
||||
try: seedlink.param('sources.nmxp.proc')
|
||||
except: seedlink.setParam('sources.nmxp.proc', 'naqs_bb40_sm100')
|
||||
|
||||
additional_options = ""
|
||||
try: additional_options = " " + seedlink.param('sources.nmxp.additional_options')
|
||||
except: pass
|
||||
|
||||
seedlink.setParam('sources.nmxp.additional_options', additional_options)
|
||||
|
||||
# Key is address (one instance per address)
|
||||
return address + ":" + str(port)
|
||||
|
||||
|
||||
# Flush does nothing
|
||||
def flush(self, seedlink):
|
||||
pass
|
28
share/templates/seedlink/nmxp/streams_naqs_bb40_sm100.tpl
Normal file
28
share/templates/seedlink/nmxp/streams_naqs_bb40_sm100.tpl
Normal file
@ -0,0 +1,28 @@
|
||||
<proc name="naqs_bb40">
|
||||
<tree>
|
||||
<input name="BHZ" channel="Z" location="" rate="40"/>
|
||||
<input name="BHN" channel="N" location="" rate="40"/>
|
||||
<input name="BHE" channel="E" location="" rate="40"/>
|
||||
<node stream="SH"/>
|
||||
<node filter="F96C" stream="BH">
|
||||
<node filter="F96C">
|
||||
<node filter="ULP" stream="LH">
|
||||
<node filter="VLP" stream="VH"/>
|
||||
</node>
|
||||
</node>
|
||||
</node>
|
||||
</tree>
|
||||
</proc>
|
||||
<proc name="naqs_sm100">
|
||||
<tree>
|
||||
<input name="ACZ" channel="Z" location="" rate="100"/>
|
||||
<input name="ACN" channel="N" location="" rate="100"/>
|
||||
<input name="ACE" channel="E" location="" rate="100"/>
|
||||
<node stream="SL"/>
|
||||
</tree>
|
||||
</proc>
|
||||
<proc name="naqs_bb40_sm100">
|
||||
<using proc="naqs_bb40"/>
|
||||
<using proc="naqs_sm100"/>
|
||||
</proc>
|
||||
|
Reference in New Issue
Block a user