-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
This kind of follows on from #129 - previously (yesterday morning) channel codes were handled so that multiple channel codes to be queried at the same time. Now this returns a 204 code.
Example Python/obspy code:
from obspy import UTCDateTime
from obspy.clients.fdsn import Client
stations = ['OGWZ', 'TUWZ', 'BSWZ', 'MSWZ', 'CAW', 'DUWZ', 'MRZ', 'KIW', 'CMWZ', 'WEL']
client = Client("GEONET")
t1 = UTCDateTime(2016, 11, 14)
t2 = t1 + 86400
bulk = []
for station in stations:
bulk.append(('NZ', station, '10', '[EH]H?', t1, t2))
data = client.get_waveforms_bulk(bulk=bulk)Yesterday morning this worked, but as of yesterday afternoon, not so much:
FDSNNoDataException Traceback (most recent call last)
<ipython-input-219-3630116c6e60> in <module>()
----> 1 data = client.get_waveforms_bulk(bulk=bulk)
~/my_programs/Building/obspy/obspy/clients/fdsn/client.py in get_waveforms_bulk(self, bulk, quality, minimumlength, longestonly, filename, attach_response, **kwargs)
1007
1008 data_stream = self._download(url,
-> 1009 data=bulk)
1010 data_stream.seek(0, 0)
1011 if filename:
~/my_programs/Building/obspy/obspy/clients/fdsn/client.py in _download(self, url, return_string, data, use_gzip)
1380 debug=self.debug, return_string=return_string, data=data,
1381 timeout=self.timeout, use_gzip=use_gzip)
-> 1382 raise_on_error(code, data)
1383 return data
1384
~/my_programs/Building/obspy/obspy/clients/fdsn/client.py in raise_on_error(code, data)
1704 if code == 204:
1705 raise FDSNNoDataException("No data available for request.",
-> 1706 server_info)
1707 elif code == 400:
1708 msg = ("Bad request. If you think your request was valid "
FDSNNoDataException: No data available for request.
Detailed response of server:Might I suggest that the FDSN system has a regression test for this behaviour?
Metadata
Metadata
Assignees
Labels
No labels