obspy.arclink.client.Client.saveResponse¶
- Client.saveResponse(filename, network, station, location, channel, starttime, endtime, format=u'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.arclink import Client >>> from obspy import UTCDateTime >>> client = Client("webdc.eu", 18001, user='test@obspy.org') >>> t = UTCDateTime(2009, 1, 1) >>> client.saveResponse('BW.MANZ..EHZ.dataless', 'BW', 'MANZ', '', '*', ... t, t + 1, format="SEED")