fdsnxml2inv

Convert station inventory between FDSN StationXML format and SeisComP inventory XML.

Description

fdsnws2inv is an inventory converter. It converts station meta data from FDSN StationXML format to SeisComP XML (SCML) and back. Write the output to the command line.

Examples

  1. Convert an inventory file in FDSN StationXML format to SCML with formatted XML. Redirect the output to a new file:

    fdsnxml2inv -f inventory_fdsn.xml > inventory_sc.xml
    
  2. Convert an inventory file in SCML format to FDSN StationXML with formatted XML. Redirect the output to a new file:

    fdsnxml2inv --to-staxml -f inventory_sc.xml > inventory_fdns.xml
    

Configuration

etc/defaults/global.cfg
etc/defaults/fdsnxml2inv.cfg
etc/global.cfg
etc/fdsnxml2inv.cfg
~/.seiscomp/global.cfg
~/.seiscomp/fdsnxml2inv.cfg

fdsnxml2inv inherits global options.

Command-line

fdsnxml2inv [OPTIONS] input [output]

Generic

-h, --help

show help message.

-V, --version

show version information

--config-file arg

Use alternative configuration file. When this option is used the loading of all stages is disabled. Only the given configuration file is parsed and used. To use another name for the configuration create a symbolic link of the application or copy it, eg scautopick -> scautopick2.

--plugins arg

Load given plugins.

-D, --daemon

Run as daemon. This means the application will fork itself and doesn’t need to be started with &.

Verbosity

--verbosity arg

Verbosity level [0..4]. 0:quiet, 1:error, 2:warning, 3:info, 4:debug

-v, --v

Increase verbosity level (may be repeated, eg. -vv)

-q, --quiet

Quiet mode: no logging output

--component arg

Limits the logging to a certain component. This option can be given more than once.

-s, --syslog

Use syslog logging back end. The output usually goes to /var/lib/messages.

-l, --lockfile arg

Path to lock file.

--console arg

Send log output to stdout.

--debug

Debug mode: --verbosity=4 --console=1

--log-file arg

Use alternative log file.

Convert

-f, --formatted

Generate formatted SCML. Otherwise, output XML to a single line.

--to-staxml

Converts from SCML to StationXML and expects SCML as input. If not given, input is SCML and output is StationXML.

--relaxed-ns-check

Enables relaxed XML namespace checks. This will also accept tags within a different namespace than defined in the supported schema.

--log-stages

Adds more output to stderr for all channel response stages when converting from StationXML.