Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Add examples for Siphon and MetPy #21

Merged
merged 1 commit into from
Jan 20, 2017

Conversation

dopplershift
Copy link
Collaborator

This covers surface data and station plots, as well as getting data from
the thredds radar server and plotting using pyart.

This covers surface data and station plots, as well as getting data from
the thredds radar server and plotting using pyart.
@scollis scollis merged commit 4b2870f into openradar:master Jan 20, 2017
@dopplershift dopplershift deleted the metpy branch January 20, 2017 04:19
@jjhelmus
Copy link
Collaborator

@dopplershift

I tested out these two notebooks on an EC2 instance and am getting the following error from the "Siphon Radar Server" notebook when executing the first cell:

from siphon.catalog import TDSCatalog
cat = TDSCatalog('http://thredds-aws.unidata.ucar.edu/thredds/radarServer/catalog.xml')
list(cat.catalog_refs)
---------------------------------------------------------------------------
HTTPError                                 Traceback (most recent call last)
<ipython-input-2-a108379447a5> in <module>()
      1 from siphon.catalog import TDSCatalog
----> 2 cat = TDSCatalog('http://thredds-aws.unidata.ucar.edu/thredds/radarServer/catalog.xml')
      3 list(cat.catalog_refs)

/home/ubuntu/miniconda3/envs/ams-workshop/lib/python3.5/site-packages/siphon/catalog.py in __init__(self, catalog_url)
     63         # get catalog.xml file
     64         resp = session.get(self.catalog_url)
---> 65         resp.raise_for_status()
     66 
     67         # If we were given an HTML link, warn about it and try to fix to xml

/home/ubuntu/miniconda3/envs/ams-workshop/lib/python3.5/site-packages/requests/models.py in raise_for_status(self)
    891 
    892         if http_error_msg:
--> 893             raise HTTPError(http_error_msg, response=self)
    894 
    895     def close(self):

HTTPError: 403 Client Error: Forbidden for url: http://thredds-aws.unidata.ucar.edu/thredds/radarServer/catalog.xml

Is access to the thredds-aws catalog locked to a set of IPs or domains?

@dopplershift
Copy link
Collaborator Author

It is currently--I'll turn it off for the workshop, or possibly stand up a new one just for the workshop.

@scollis
Copy link
Contributor

scollis commented Jan 20, 2017 via email

@dopplershift
Copy link
Collaborator Author

I wish it were as easy as a whitelist. sigh Stupid Tomcat.

I'll have something this morning or just after lunch. In the meanwhile, for small experiments, just point to http://thredds.ucar.edu/thredds/radarServer

@scollis
Copy link
Contributor

scollis commented Jan 20, 2017 via email

@dopplershift
Copy link
Collaborator Author

It's just the THREDDS instance we run in AWS, since we're on the hook for the bandwidth bill. The s3 bucket itself should be completely wide open.

@scollis
Copy link
Contributor

scollis commented Jan 20, 2017 via email

@dopplershift
Copy link
Collaborator Author

@scollis If you want to try, there's a new server up at:

http://52.90.147.218/thredds/catalog.html

At some point, I'll update the notebook to point to:

http://52.90.147.218/thredds/radarServer/catalog.xml

@scollis
Copy link
Contributor

scollis commented Jan 21, 2017 via email

@dopplershift
Copy link
Collaborator Author

@scollis
Copy link
Contributor

scollis commented Jan 21, 2017 via email

@dopplershift
Copy link
Collaborator Author

While the map is cool, it refers to the type of issue in the Agile methodology. 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants