Provide IRIS webservices.
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.
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"
wsiris inherits global options.
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.
Type: int
Server port to listen for incoming requests. Default is 8080.
Type: string
Defines the path to the waveform archive for waveform requests. Default is @ROOTDIR@/var/lib/archive.
Type: int
Maximum number of objects per query, used in ws-station and ws-event services to limit main memory consumption. Default is 10000.
Type: int
Number of maximum simultaneous requests. Default is 5.
show help message.
show version information
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.
Load given plugins.
Run as daemon. This means the application will fork itself and doesn't need to be started with &.
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).
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.
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 level [0..4]. 0:quiet, 1:error, 2:warning, 3:info, 4:debug
Increase verbosity level (may be repeated, eg. -vv)
Quiet mode: no logging output
Limits the logging to a certain component. This option can be given more than once.
Use syslog logging back end. The output usually goes to /var/lib/messages.
Path to lock file.
Send log output to stdout.
Debug mode: --verbosity=4 --console
Use alternative log file.
List all supported database drivers.
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".
The configmodule to use.
Load the inventory database from a given XML file.
Do not use the database at all