RESP Web Service
Home »
NCEDC Web Services » RESP
Description Usage URL Builder Help
Description The NCEDC 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 -o BK.CMB.00.BHZ.resp "https://service.ncedc.org/ncedcws/resp/1/query?net=BK&sta=CMB&loc=00&cha=BHZ" This will send the request to the server and save the results in a file name BK.CMB.00.BHZ.resp
wget $ wget -O BK.CMB.00.BHZ.resp "https://service.ncedc.org/ncedcws/resp/1/query?net=BK&sta=CMB&loc=00&cha=BHZ" This will send the request to the server and save the results in a file name BK.CMB.00.BHZ.resp 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 "https://service.ncedc.org/ncedcws/resp/1/query?net=BK&sta=CMB&loc=00&cha=BHZ" $ ls ncedcws-resp_2013-06-27T23:06:41.txt ncedcws-resp_2013-06-27T23:06:41.txt