fdsnxml2inv¶
Convert station inventory between FDSN StationXML format and SeisComP XML.
Description¶
fdsnws2inv is an inventory converter. It converts station meta data from FDSN StationXML format to SeisComP XML (SCML) and back writing the output to a file, if given, or the command line (stdout).
Examples¶
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
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
Module Configuration¶
etc/defaults/global.cfgetc/defaults/fdsnxml2inv.cfgetc/global.cfgetc/fdsnxml2inv.cfg~/.seiscomp/global.cfg~/.seiscomp/fdsnxml2inv.cfgfdsnxml2inv inherits global options.
Command-Line Options¶
fdsnxml2inv [OPTIONS] input [output]
Generic¶
- -h, --help¶
Show help message.
- -V, --version¶
Show version information.
- --config-file file¶
The alternative module configuration file. When this option is used, the module configuration is only read from the given file and no other configuration stage is considered. Therefore, all configuration including the definition of plugins must be contained in that file or given along with other command-line options such as --plugins.
- --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, e.g., -vv).
- -q, --quiet¶
Quiet mode: no logging output.
- --component arg¶
Limit the logging to a certain component. This option can be given more than once.
- -s, --syslog¶
Use syslog logging backend. The output usually goes to /var/lib/messages.
- -l, --lockfile arg¶
Path to lock file.
- --console arg¶
Send log output to stdout.
- --debug¶
Execute in debug mode. Equivalent to --verbosity=4 --console=1 .
- --log-file arg¶
Use alternative log file.
- --print-component arg¶
For each log entry print the component right after the log level. By default the component output is enabled for file output but disabled for console output.
- --trace¶
Execute in trace mode. Equivalent to --verbosity=4 --console=1 --print-component=1 --print-context=1 .
Convert¶
- -f, --formatted¶
Generate formatted SCML. Otherwise, output XML to a single line.
- --to-staxml¶
Convert from SCML to StationXML and expects SCML as input. If not given, input is SCML and output is StationXML.
- --relaxed-ns-check¶
Enable relaxed XML namespace checks. This will also accept tags within a different namespace than defined in the supported schema.
- --log-stages¶
Add more output to stderr for all channel response stages when converting from StationXML.