024
025 Reading
026 -------
027
028 There are three types of ALSEP tape: PSE, WTN, and WTH. They are handled by
029 using ObsPy's standard:func:`~obspy.core.stream.read` function. The format is
030 detected automatically.
031
032 >>> from obspy import read
033 >>> st = read("http://darts.isas.jaxa.jp/pub/apollo/pse/p15s/pse.a15.1.2")
UNEXPECTED EXCEPTION: ConnectionError(MaxRetryError("HTTPConnectionPool(host='darts.isas.jaxa.jp', port=80): Max retries exceeded with url: /pub/apollo/pse/p15s/pse.a15.1.2 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x00000278AD053C88>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))"))
Traceback (most recent call last):
File "C:\Miniconda3\envs\test\lib\site-packages\urllib3\connection.py", line 175, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "C:\Miniconda3\envs\test\lib\site-packages\urllib3\util\connection.py", line 95, in create_connection
raise err
File "C:\Miniconda3\envs\test\lib\site-packages\urllib3\util\connection.py", line 85, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Miniconda3\envs\test\lib\site-packages\urllib3\connectionpool.py", line 710, in urlopen
chunked=chunked,
File "C:\Miniconda3\envs\test\lib\site-packages\urllib3\connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "C:\Miniconda3\envs\test\lib\site-packages\urllib3\connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "C:\Miniconda3\envs\test\lib\http\client.py", line 1281, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Miniconda3\envs\test\lib\http\client.py", line 1327, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Miniconda3\envs\test\lib\http\client.py", line 1276, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Miniconda3\envs\test\lib\http\client.py", line 1036, in _send_output
self.send(msg)
File "C:\Miniconda3\envs\test\lib\http\client.py", line 976, in send
self.connect()
File "C:\Miniconda3\envs\test\lib\site-packages\urllib3\connection.py", line 205, in connect
conn = self._new_conn()
File "C:\Miniconda3\envs\test\lib\site-packages\urllib3\connection.py", line 187, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x00000278AD053C88>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Miniconda3\envs\test\lib\site-packages\requests\adapters.py", line 499, in send
timeout=timeout,
File "C:\Miniconda3\envs\test\lib\site-packages\urllib3\connectionpool.py", line 788, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "C:\Miniconda3\envs\test\lib\site-packages\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='darts.isas.jaxa.jp', port=80): Max retries exceeded with url: /pub/apollo/pse/p15s/pse.a15.1.2 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x00000278AD053C88>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Miniconda3\envs\test\lib\doctest.py", line 1337, in __run
compileflags, 1), test.globs)
File "<doctest obspy.io.alsep[1]>", line 1, in <module>
File "C:\Miniconda3\envs\test\lib\site-packages\decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "d:\a\obspy\obspy\obspy\core\util\decorator.py", line 291, in _map_example_filename
return func(*args, **kwargs)
File "d:\a\obspy\obspy\obspy\core\stream.py", line 208, in read
st = _generic_reader(pathname_or_url, _read, **kwargs)
File "d:\a\obspy\obspy\obspy\core\util\base.py", line 644, in _generic_reader
download_to_file(url=pathname_or_url, filename_or_buffer=fh)
File "d:\a\obspy\obspy\obspy\core\util\base.py", line 593, in download_to_file
r = requests.get(url, stream=True)
File "C:\Miniconda3\envs\test\lib\site-packages\requests\api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "C:\Miniconda3\envs\test\lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Miniconda3\envs\test\lib\site-packages\requests\sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "C:\Miniconda3\envs\test\lib\site-packages\requests\sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "C:\Miniconda3\envs\test\lib\site-packages\requests\adapters.py", line 565, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='darts.isas.jaxa.jp', port=80): Max retries exceeded with url: /pub/apollo/pse/p15s/pse.a15.1.2 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x00000278AD053C88>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))
d:\a\obspy\obspy\obspy\io\alsep\__init__.py:33: UnexpectedException