ioos / pyoos

A Python library for collecting Met/Ocean observations
GNU Lesser General Public License v3.0
34 stars 33 forks source link

How to use Pyoos with ncSOS? #15

Closed rsignell-usgs closed 10 years ago

rsignell-usgs commented 10 years ago

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 commented 10 years ago

Try this (It requires this OWSLib PR that still needs to be merged: https://github.com/geopython/OWSLib/pull/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 commented 10 years ago

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

daf commented 10 years ago

@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 commented 10 years ago

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.