The 1st issue is that I can't even open the AWS endpoint, even using a .edu domain. Are there some kind of credentials required?
and nothing crashed, but no response either, so after 25 minutes I interrupted the kernel, which then reported:
KeyboardInterruptTraceback (most recent call last)
<ipython-input-1-05811291f6a7> in <module>()
2 #url = 'http://thredds.ucar.edu/thredds/radarServer/nexrad/level2/IDD/'
3 url = 'http://thredds-aws.unidata.ucar.edu/thredds/radarServer/nexrad/level2/S3/'
----> 4 rs = RadarServer(url)
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/siphon/radarserver.pyc in __init__(self, url)
74 if url.endswith(xmlfile):
75 url = url[:-len(xmlfile)]
---> 76 super(RadarServer, self).__init__(url)
77
78 def _get_metadata(self):
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/siphon/http_util.pyc in __init__(self, url)
351 self._base = url
352 self._session = create_http_session()
--> 353 self._get_metadata()
354
355 def get_query(self, query):
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/siphon/radarserver.pyc in _get_metadata(self)
77
78 def _get_metadata(self):
---> 79 ds_cat = TDSCatalog(self.url_path('dataset.xml'))
80 self.metadata = ds_cat.metadata
81 self.variables = set(k.split('/')[0] for k in self.metadata['variables'].keys())
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/siphon/catalog.pyc in __init__(self, catalog_url)
62
63 # get catalog.xml file
---> 64 resp = session.get(self.catalog_url)
65 resp.raise_for_status()
66
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/requests/sessions.pyc in get(self, url, **kwargs)
485
486 kwargs.setdefault('allow_redirects', True)
--> 487 return self.request('GET', url, **kwargs)
488
489 def options(self, url, **kwargs):
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/requests/sessions.pyc in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
473 }
474 send_kwargs.update(settings)
--> 475 resp = self.send(prep, **send_kwargs)
476
477 return resp
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/requests/sessions.pyc in send(self, request, **kwargs)
583
584 # Send the request
--> 585 r = adapter.send(request, **kwargs)
586
587 # Total elapsed time of the request (approximately)
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/requests/adapters.pyc in send(self, request, stream, timeout, verify, cert, proxies)
401 decode_content=False,
402 retries=self.max_retries,
--> 403 timeout=timeout
404 )
405
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.pyc in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, **response_kw)
576 timeout=timeout_obj,
577 body=body, headers=headers,
--> 578 chunked=chunked)
579
580 # If we're going to release the connection in ``finally:``, then
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.pyc in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
383 try:
384 try: # Python 2.7, use buffering of HTTP responses
--> 385 httplib_response = conn.getresponse(buffering=True)
386 except TypeError: # Python 2.6 and older
387 httplib_response = conn.getresponse()
/home/usgs/miniconda/envs/ioos/lib/python2.7/httplib.pyc in getresponse(self, buffering)
1134
1135 try:
-> 1136 response.begin()
1137 assert response.will_close != _UNKNOWN
1138 self.__state = _CS_IDLE
/home/usgs/miniconda/envs/ioos/lib/python2.7/httplib.pyc in begin(self)
451 # read until we get a non-100 response
452 while True:
--> 453 version, status, reason = self._read_status()
454 if status != CONTINUE:
455 break
/home/usgs/miniconda/envs/ioos/lib/python2.7/httplib.pyc in _read_status(self)
407 def _read_status(self):
408 # Initialize with Simple-Response defaults
--> 409 line = self.fp.readline(_MAXLINE + 1)
410 if len(line) > _MAXLINE:
411 raise LineTooLong("header line")
/home/usgs/miniconda/envs/ioos/lib/python2.7/socket.pyc in readline(self, size)
478 while True:
479 try:
--> 480 data = self._sock.recv(self._rbufsize)
481 except error, e:
482 if e.args[0] == EINTR:
The 2nd issue is that when I switched the endpoint to thredds.unidata instead of AWS, the data loaded fine (notebook here), but the animation didn't work, producing this output:
IOErrorTraceback (most recent call last)
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/IPython/core/formatters.pyc in __call__(self, obj)
341 method = _safe_get_formatter_method(obj, self.print_method)
342 if method is not None:
--> 343 return method()
344 return None
345 else:
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/matplotlib/animation.pyc in _repr_html_(self)
979 fmt = rcParams['animation.html']
980 if fmt == 'html5':
--> 981 return self.to_html5_video()
982
983
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/matplotlib/animation.pyc in to_html5_video(self)
953 bitrate=rcParams['animation.bitrate'],
954 fps=1000. / self._interval)
--> 955 self.save(f.name, writer=writer)
956
957 # Now open and base64 encode
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/matplotlib/animation.pyc in save(self, filename, writer, fps, dpi, codec, bitrate, extra_args, metadata, extra_anim, savefig_kwargs)
808 # TODO: Need to see if turning off blit is really necessary
809 anim._draw_next_frame(d, blit=False)
--> 810 writer.grab_frame(**savefig_kwargs)
811
812 # Reconnect signal for first draw if necessary
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/matplotlib/animation.pyc in grab_frame(self, **savefig_kwargs)
228 # frame format and dpi.
229 self.fig.savefig(self._frame_sink(), format=self.frame_format,
--> 230 dpi=self.dpi, **savefig_kwargs)
231 except RuntimeError:
232 out, err = self._proc.communicate()
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/matplotlib/figure.pyc in savefig(self, *args, **kwargs)
1563 self.set_frameon(frameon)
1564
-> 1565 self.canvas.print_figure(*args, **kwargs)
1566
1567 if frameon:
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/matplotlib/backend_bases.pyc in print_figure(self, filename, dpi, facecolor, edgecolor, orientation, format, **kwargs)
2230 orientation=orientation,
2231 bbox_inches_restore=_bbox_inches_restore,
-> 2232 **kwargs)
2233 finally:
2234 if bbox_inches and restore_bbox:
/home/usgs/miniconda/envs/ioos/lib/python2.7/site-packages/matplotlib/backends/backend_agg.pyc in print_raw(self, filename_or_obj, *args, **kwargs)
517 close = False
518 try:
--> 519 fileobj.write(renderer._renderer.buffer_rgba())
520 finally:
521 if close:
IOError: [Errno 32] Broken pipe