SeisComP3 文档

invextr

从编目中提取通道

描述

invextr 从 Inventory XML 文件中提取或移除台网、台站和通道等。 接受三个重要参数:

  1. 通道 ID 列表
  2. 输入文件
  3. 输出文件

示例

假设一个编目: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

要提取BHNLHZ

invextr --chans "*BHN,*LHZ" inv.xml

要移除所有HHSH通道,使用:

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]