Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

[python-users] Siphon w/ AWS issues

Hello,

Hello,

I ran through the tutorials on the siphon page and was able to run each
example.

However, when I tried to run the code found here:

https://gist.github.com/dopplershift/356f2e14832e9b676207

I get the following error (in both python 2.7.10 and 3.4.3) which was noted
by user tjlang in github:

Traceback (most recent call last):

  File "<ipython-input-3-25439247f8e3>", line 1, in <module>
    runfile('C:/Users/Alex/amazon_level2.py', wdir='C:/Users/Alex')

  File
"C:\Users\Alex\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py",
line 685, in runfile
    execfile(filename, namespace)

  File
"C:\Users\Alex\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py",
line 85, in execfile
    exec(compile(open(filename, 'rb').read(), filename, 'exec'), namespace)

  File "C:/Users/Alex/amazon_level2.py", line 13, in <module>

rs = RadarServer('
http://thredds-aws.unidata.ucar.edu/thredds/radarServer/nexrad/level2/S3/')

  File
"C:\Users\Alex\Anaconda3\lib\site-packages\siphon-0+unknown-py3.4.egg\siphon\radarserver.py",
line 68, in __init__
    super(RadarServer, self).__init__(url)

  File
"C:\Users\Alex\Anaconda3\lib\site-packages\siphon-0+unknown-py3.4.egg\siphon\http_util.py",
line 347, in __init__
    self._get_metadata()

  File
"C:\Users\Alex\Anaconda3\lib\site-packages\siphon-0+unknown-py3.4.egg\siphon\radarserver.py",
line 71, in _get_metadata
    ds_cat = TDSCatalog(self.url_path('dataset.xml'))

  File
"C:\Users\Alex\Anaconda3\lib\site-packages\siphon-0+unknown-py3.4.egg\siphon\catalog.py",
line 57, in __init__
    if 'html' in resp.headers['content-type']:

  File "C:\Users\Alex\Anaconda3\lib\site-packages\requests\structures.py",
line 54, in __getitem__
    return self._store[key.lower()][1]

KeyError: 'content-type'

Thanks,

Alex Haberlie
  • 2015 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the python-users archives: