obspy.clients.arclink.client.Client.save_response¶
- Client.save_response(filename, network, station, location, channel, starttime, endtime, format='SEED')[source]¶
Writes response information into a file.
Parameters: - filename (str or file) Name of the output file or open file like object.
- network (str) Network code, e.g. 'BW'.
- station (str) Station code, e.g. 'MANZ'.
- location (str) Location code, e.g. '01'.
- channel (str) Channel code, e.g. 'EHE'.
- starttime (UTCDateTime) Start date and time.
- endtime (UTCDateTime) End date and time.
- format (str, optional) Output format. Currently only Dataless SEED ('SEED') is supported.
Returns: None
Example
>>> from obspy.clients.arclink import Client >>> from obspy import UTCDateTime >>> client = Client('test@obspy.org', 'webdc.eu', 18001) >>> t = UTCDateTime(2009, 1, 1) >>> client.save_response('BW.MANZ..EHZ.dataless', 'BW', 'MANZ', '', ... '*', t, t + 1, format="SEED")