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

How to use Pyoos with ncSOS? #15

Closed
rsignell-usgs opened this issue Oct 24, 2013 · 4 comments
Closed

How to use Pyoos with ncSOS? #15

rsignell-usgs opened this issue Oct 24, 2013 · 4 comments
Labels

Comments

@rsignell-usgs
Copy link
Member

I'm trying to use pyoos with ncsos, single sensor.

This is failing:

http://nbviewer.ipython.org/urls/raw.github.com/rsignell-usgs/ipython-notebooks/master/files/ncSOS_and_OWSlib_and_pyoos.ipynb

Am I doing something wrong or is it a bug?

@kwilcox
Copy link
Member

kwilcox commented Oct 25, 2013

Try this (It requires this OWSLib PR that still needs to be merged: geopython/OWSLib#99):

from pyoos.parsers.ioos.get_observation import IoosGetObservation
ob = IoosGetObservation(swe_payload_as_etree_element_or_string)
stations = ob.observations[0].feature
# 'stations' should be a Paegan 'StationCollection'

You are a cart a bit before the horse, if you can wait a few weeks this will be flushed out. The IOOS catalog is just starting to utilize all of the libraries that have been developed over the past few months.

If you do get something going, PLEASE update the documentation and send a PR! We need example Pyoos usage in the README.

@rsignell-usgs
Copy link
Member Author

No joy
10-25-2013 9-56-00 am

@daf
Copy link
Member

daf commented Feb 1, 2014

@rsignell-usgs do we want to leave this open now that we've progressed quite a ways? I'd prefer to have specific issues rather than a blanket one.

@rsignell-usgs
Copy link
Member Author

Dave Foster provided this Ipython Notebook example using pyoos to read and plot some data from ncSOS:
https://www.wakari.io/sharing/bundle/daf/ncSOS_and_OWSlib_and_pyoos
and it worked for me, so I'm closing this ticket.

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

No branches or pull requests

3 participants