SeisComP3

Table Of Contents

Previous topic

sync_arc

Next topic

Graphical user interfaces

This Page

wsiris

Provide IRIS webservices.

Description

wsiris is a server that provides IRIS Web services from a SeisComP3 database and an SDS waveform archive. The following services are implemented:

Service Retrieves this... In this format
ws-event contributed earthquake origin and magnitude estimates QuakeML, SC3ML
ws-station network, station, channel, response metadata StationXML, SC3ML
ws-availability information about what time series data is available from the DMC XML, Query parameters for ws-bulkdataselect, ws-dataselect, or ws-timeseries
ws-dataselect single channel of time series data in miniSEED format. Use this to pass data to other workflow services miniSEED
ws-bulkdataselect multiple channels of time series data miniSEED

If wsiris is started, it accepts connections by default on port 8080 which can be changed in the configuration.

Event

  • contributed earthquake origin and magnitude estimates
  • request type: HTTP-GET
  • events may be filtered e.g. by hypocenter, time and magnitude, see http://www.iris.edu/ws/event/

Feature Notes

  • SeisComP does not distinguish between catalogs and contributors, but supports agencyIDs. Hence, if specified, the value of the catalog or contributor parameter is mapped to the agencyID. If both parameters are supplied, the value of the contributor is used.
  • origin and magnitude filter parameters are always applied to preferred origin resp. preferred magnitude
  • additional request parameters:
    • output: [qml, qml-rt, sc3ml], default: qml
    • includecomments: boolean, default: true
    • formatted: boolean, default: false

Station

  • network, station, channel, response metadata
  • request type: HTTP-GET
  • stations may be filtered e.g. by geographic region and time, also the information depth level is selectable, see http://www.iris.edu/ws/station/

Feature Notes

  • updatedafter request parameter not implemented: The last modification time in SeisComP is tracked on the object level. If a child of an object is updated the update time is not propagated to all parents. In order to check if a station was updated all children must be evaluated recursively. This operation would be much to expensive.
  • additional request parameters:
    • output: [stationxml, sc3ml], default: stationxml
    • formatted: boolean, default: false

Availability

  • information about what time series data is available from the DMC
  • request type: HTTP-GET
  • data may be filtered e.g. by geographic, time and channel information, see http://www.iris.edu/ws/availability/
  • supports different output formats:
    • xml – StationXML like
    • query – HTTP-GET parameter list, used as input for ref:sec-dataselect
    • bulkdataselect – Lines of stream parameters, used for ref:sec-bulkdataselect

Feature Notes

  • data availability is only based on SDS file names (not miniSEED content), hence date precision is limited to days

Data select

  • single channel of time series data in miniSEED format
  • request type: HTTP-GET

Feature Notes

  • quality parameter not implemented (information not available in SeisComP )
  • ref parameter is limited to direct, no ICAB (IRIS Caching Artifact Builder) support

Bulk data select

  • multiple channels of time series data
  • request type: HTTP-POST

Example

In the following example the command line tool curl is used to first retrieve a stream request list from the ref:sec-availablity service and then to post the list to the ref:sec-bulkdataselect service.

sysop@host:~$ curl -o request.txt "http://localhost:8080/availability?start=2011&output=bulkdataselect&net=ge&sta=M*&cha=BHE"
sysop@host:~$ curl -o data.mseed --data-urlencode selection@request.txt "http://localhost:8080/bulkdataselect"

Feature Notes

  • quality parameter not implemented (information not available in SeisComP )
  • minimumlength parameter is not implemented
  • longestonly parameter is not implemented

Configuration

etc/defaults/global.cfg
etc/defaults/wsiris.cfg
etc/global.cfg
etc/wsiris.cfg
~/.seiscomp3/global.cfg
~/.seiscomp3/wsiris.cfg

wsiris inherits global options.

listenAddress

Type: IP

Defines the bind address of the server. "0.0.0.0" allows any interface to connect to this server whereas "127.0.0.0" only allows connections from localhost. Default is 0.0.0.0.

port

Type: int

Server port to listen for incoming requests. Default is 8080.

sdsPath

Type: string

Defines the path to the waveform archive for waveform requests. Default is @ROOTDIR@/var/lib/archive.

queryObjects

Type: int

Maximum number of objects per query, used in ws-station and ws-event services to limit main memory consumption. Default is 10000.

connections

Type: int

Number of maximum simultaneous requests. Default is 5.

Command-line

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 &.

--auto-shutdown arg

Enable/disable self-shutdown because a master module shutdown. This only works when messaging is enabled and the master module sends a shutdown message (enabled with --start-stop-msg for the master module).

--shutdown-master-module arg

Sets the name of the master-module used for auto-shutdown. This is the application name of the module actually started. If symlinks are used then it is the name of the symlinked application.

--shutdown-master-username arg

Sets the name of the master-username of the messaging used for auto-shutdown. If "shutdown-master-module" is given as well this parameter is ignored.

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.

Database

--db-driver-list

List all supported database drivers.

-d, --database arg

The database connection string, format: service://user:pwd@host/database. "service" is the name of the database driver which can be queried with "--db-driver-list".

--config-module arg

The configmodule to use.

--inventory-db arg

Load the inventory database from a given XML file.

--db-disable

Do not use the database at all