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

Support for obspy Catalog and Inventory objects #18

Open
d-chambers opened this issue Jun 18, 2016 · 8 comments
Open

Support for obspy Catalog and Inventory objects #18

d-chambers opened this issue Jun 18, 2016 · 8 comments

Comments

@d-chambers
Copy link

Hello,

Thank you for sharing this package, it looks awesome.

Does pisces support obspy Catalog objects (for event data) and obspy Inventory objects (for station data)? I am imagining an API similar to the obspy fdsn client class. For example, the event functionality might look like the following:

import pisces
catalog = pisces.get_events(minmagnitude=4)  # pull events out of the db
for event in catalog:
    make_some_changes(event)  # process the events in some way
pisces.put_events(catalog)  # update all of the modified events in the database

Thanks again.

@jkmacc-LANL
Copy link
Member

Thanks, @d-chambers ! The current answer is "no", but I definitely want to implement an Obspy-like Client , where c.get_events returns a Catalog, c.get_stations returns an Inventory, and c.get_waveforms returns a Stream. I'm mostly sure that ObsPy Clients have an API that looks like the FDSN-WS spec, but I don't currently have the know-how to implement a Client that fully follows that spec. Assembling Catalog and Inventory objects from database queries is something that needs to happen, though. PRs are encouraged! 😄

@jkmacc-LANL
Copy link
Member

@klaaur Do you have any progress on this?😋

@klaaur
Copy link

klaaur commented Apr 6, 2018 via email

@jkmacc-LANL
Copy link
Member

Thanks for looking into it. Re: obspy.taup, I just pushed a Python 3 version that includes the taup fix. Downside (upside): the new version is Python 3 only.

@zvikfir
Copy link

zvikfir commented Sep 24, 2020

This feature will be helpful for me as well. Is there any chance that there's been a progress on this one? I couldn't find it in the docs.

I might be able to help if needed.

@jkmacc-LANL
Copy link
Member

@rigotibi I know you were interested in this topic. I just want to tag you on it here for visibility.

@jkmacc-LANL
Copy link
Member

@zvikfir I'm sorry for the delay in responding. There isn't anything new on this topic, except that there are a number of interested parties. Thank you for your offer to contribute. Are you interested in the Catalog or Inventory objects, or both?

@jkmacc-LANL
Copy link
Member

Work continues on this in #65

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

No branches or pull requests

4 participants