Help: resp v.1

Description

The RESP webservice gives access to instrument response information. The response information is returned in the RESP format. The service can return responses for a channel, one or more channels under a location, or one or more channels under a station.

The service can be easily invoked by using the unix curl and wget commands.

curl

 $ curl -L -o AK.RIDG.--.LHZ.resp "http://service.iris.edu/irisws/resp/1/query?net=AK&sta=RIDG&loc=--&cha=LHZ"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 25430  100 25430    0     0  2043k      0 --:--:-- --:--:-- --:--:-- 2069k

We recommend always using the -L option to allow curl to follow HTTP redirections specified by our systems. The DMC uses HTTP redirection during maintenance to keep servicing requests.

wget

$ wget -O AK.RIDG.--.LHZ.resp "http://service.iris.edu/irisws/resp/1/query?net=AK&sta=RIDG&loc=--&cha=LHZ"
--2021-04-16 16:44:34--  http://service.iris.edu/irisws/resp/1/query?net=AK&sta=RIDG&loc=--&cha=LHZ
Resolving service.iris.edu (service.iris.edu)... 128.95.166.47
Connecting to service.iris.edu (service.iris.edu)|128.95.166.47|:80... connected.
HTTP request sent, awaiting response... 200 
Length: 25430 (25K) [text/plain]
Saving to: ‘AK.RIDG.--.LHZ.resp’
100%[==========================================================================>] 25,430      --.-K/s   in 0s      
2021-04-16 16:44:34 (328 MB/s) - ‘AK.RIDG.--.LHZ.resp’ saved [25430/25430]

Make sure to surround the url with quotes or your unix shell will interpret the & characters as background control characters.

With recent versions of wget you can use the content-disposition flag to have the file saved to an automatic name.

$ wget --content-disposition "http://service.iris.edu/irisws/resp/1/query?net=AK&sta=RIDG&loc=--&cha=LHZ&time=2018-01-01T00:00:00"
--2021-04-16 16:53:55--  http://service.iris.edu/irisws/resp/1/query?net=AK&sta=RIDG&loc=--&cha=LHZ&time=2018-01-01T00:00:00
Resolving service.iris.edu (service.iris.edu)... 128.95.166.47
Connecting to service.iris.edu (service.iris.edu)|128.95.166.47|:80... connected.
HTTP request sent, awaiting response... 200 
Length: 8352 (8.2K) [text/plain]
Saving to: ‘RESP.RIDG.AK..LHZ’
100%[=========================================================================>] 8,352       --.-K/s   in 0s
2021-04-16 16:53:55 (222 MB/s) - ‘RESP.RIDG.AK..LHZ’ saved [8352/8352]
$ ls RESP.RIDG.AK..LHZ 
RESP.RIDG.AK..LHZ

Problems with this service?

Please send an email report of which service you were using, your URL query, and any error feedback to:
ws-issues AT iris.washington.edu
We will address your issue as soon as possible.