从编目中提取通道
invextr 从 Inventory XML 文件中提取或移除台网、台站和通道等。 接受三个重要参数:
假设一个编目:GE台网、MORC台站,几个通道
network GE
station MORC
location __
channel BHZ ID: GE.MORC..BHZ
channel BHN ID: GE.MORC..BHN
channel BHE ID: GE.MORC..BHE
channel LHZ ID: GE.MORC..LHZ
channel LHN ID: GE.MORC..LHN
channel LHE ID: GE.MORC..LHE
所有的 ID 经由--chans
传递的参数进行匹配:
invextr --chans "GE*" inv.xml
因 GE*
匹配所有有效ID,不会进行过滤。
invextr --chans "*MORC*" inv.xml
因MORC
匹配所有有效ID,不会进行过滤。
invextr --chans "GE.MORC" inv.xml
因GE.MORC
不匹配任何ID,全部过滤。
要使其工作,需添加星号:GE.MORC*
或GE.MORC.*
提取所有垂直分量,使用:
invextr --chans "*Z" inv.xml
要提取BHN
和LHZ
:
invextr --chans "*BHN,*LHZ" inv.xml
要移除所有HH
和SH
通道,使用:
invextr --rm --chans "*HH?,*SH?" inv.xml
etc/defaults/global.cfg
etc/defaults/invextr.cfg
etc/global.cfg
etc/invextr.cfg
~/.seiscomp3/global.cfg
~/.seiscomp3/invextr.cfg
invextr [OPTIONS] [input=stdin] [output=stdout]