[obspy-users] Creating an event catalogue

Maccarthy, Jonathan K jkmacc at lanl.gov
Sat Feb 25 17:40:08 CET 2017


Thanks, Peter.  This is helpful.  QuakeML looks like a hierarchical database to me, so any help understanding it is great.

The metadata-to-dataless also sounds interesting:-)  Are developing this in the open?

Best,
Jon

________________________________
From: obspy-users-bounces at lists.swapbytes.de <obspy-users-bounces at lists.swapbytes.de> on behalf of Peter Schmidt <peter.schmidt at geo.uu.se>
Sent: Saturday, February 25, 2017 9:31:38 AM
To: users at obspy.org; Tobias Megies
Subject: Re: [obspy-users] Creating an event catalogue

Thanks, hopefully it can be usefull as a quick overwiew although I'm not entirelly sure its correct/complete in all details. Have a similar graph for the Inventory object set up when I was developing some tools for stationXML and are currently trying to create one for Parser object as I need to convert some metadata to dataless. Mentioning this in case the graphs may be of use to others, just let me know and I'll be glad to share

---- Tobias Megies skrev ----

Nice graphs, Peter!

Steve, in addition, you can also have a look at the QuakeML manual,
we've modeled our class structure pretty closely:

https://quake.ethz.ch/quakeml/docs/REC?action=AttachFile&do=view&target=QuakeML-BED-20130214a.pdf

cheers,
T

On 02/24/2017 11:38 PM, Peter Schmidt wrote:
> Hi Steve
>
> I did something similar a while ago. The notebook by Tobias is a good
> starter but what really pulled me through was mapping out the
> obspy.core.event.Catalogue<http://obspy.core.event.Catalogue> class graphically to get some kind of
> overview of this relatively complex object. Attached to this mail is
> what I ended up with, hopefully you can get some help from this (not
> assuring that its gives the full picture though).
>
>
> regP
>
>
> On 2017-02-24 21:58, Tobias Megies wrote:
>> Steve,
>>
>> take a look at this notebook we assembled at some point for workshop
>> teaching:
>> https://github.com/obspy/docs/blob/master/workshops/2016-03-07_ipgp/06_Event_metadata-with_solutions.ipynb
>>
>>
>> There's an example to put together a QuakeML file from scratch in the
>> last example code cell.
>>
>> In your case you just want to do something like..
>>
>> ```
>> from obspy.core.event<http://obspy.core.event> import Pick, Event, Catalog
>> event = Event()
>> catalog = Catalog(events=[event])
>> for ....:
>>      pick = Pick(...)
>>      event.picks.append<http://event.picks.append>(pick)
>> catalog.write<http://catalog.write>(...)
>> ```
>>
>>
>> T
>>
>>
>>
>> On 02/24/2017 05:01 PM, Hicks S.P. wrote:
>>> Hi all
>>>
>>> I'm running an automatic picker on some continuous data (day files).
>>>
>>> I want to analyse these picks using obspyck. To do this, I need to
>>> create a QuakeML file of an 'event' containing all the picks for a
>>> particular set of day file traces.
>>>
>>> I'm familiar with obtaining event catalogues from repositories, but
>>> how do I go about create an event catalogue from scratch myself in
>>> Obspy? I'm looking to create a catalogue for a single event with many
>>> picks.
>>>
>>> Thanks in advance for your help.
>>>
>>> Steve
>>>
>>>
>>> Dr. Stephen Hicks
>>> Postdoctoral Research Fellow in Passive Source Seismology
>>> University of Southampton
>>>
>>> T +44 (0)23 8059 9082<tel:+44%20(0)23%208059%209082> (ext: 29239<tel:29239>)  M +44 7718 286506<tel:+44%207718%20286506> / +44 7775 694766<tel:+44%207775%20694766>
>>> E s.hicks at soton.ac.uk<mailto:s.hicks at soton.ac.uk><mailto:s.hicks at soton.ac.uk<mailto:s.hicks at soton.ac.uk>>   Twitter
>>> @seismo_steve<http://www.twitter.com/seismo_steve>;
>>> W UoS
>>> profile<http://www.southampton.ac.uk/oes/about/staff/sphr1r17.page>;
>>>
>>> Room 786/14
>>> Ocean and Earth Science, National Oceanography Centre Southampton
>>>
>>> _______________________________________________
>>> obspy-users mailing list
>>> obspy-users at lists.swapbytes.de<mailto:obspy-users at lists.swapbytes.de>
>>> http://lists.swapbytes.de/mailman/listinfo/obspy-users
>>>
>
>
>
>
> _______________________________________________
> obspy-users mailing list
> obspy-users at lists.swapbytes.de<mailto:obspy-users at lists.swapbytes.de>
> http://lists.swapbytes.de/mailman/listinfo/obspy-users
>

--
Dipl.-Geophys. Tobias Megies

EMail: tobias.megies at lmu.de<mailto:tobias.megies at lmu.de>
WWW: https://www.geophysik.uni-muenchen.de

Geophysikalisches Observatorium
Ludwigsh?he 8
82256<tel:82256> F?rstenfeldbruck

Tel: +49 (0) 89 2180-73981<tel:+49%20(0)%2089%202180-73981>
Fax: +49 (0) 89 2180-73970<tel:+49%20(0)%2089%202180-73970>

Ludwig-Maximilians-Universit?t
Department f?r Geo- und Umweltwissenschaften
Sektion Geophysik
Theresienstrasse 41/IV
80333<tel:80333> M?nchen

Tel: +49 (0) 89 2180-4326<tel:+49%20(0)%2089%202180-4326>
Fax: +49 (0) 89 2180-4205<tel:+49%20(0)%2089%202180-4205>
_______________________________________________
obspy-users mailing list
obspy-users at lists.swapbytes.de<mailto:obspy-users at lists.swapbytes.de>
http://lists.swapbytes.de/mailman/listinfo/obspy-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.swapbytes.de/pipermail/obspy-users/attachments/20170225/8b66104a/attachment-0001.html>


More information about the obspy-users mailing list