Skip to content

Commit

Permalink
Merge pull request #1192 from MMesch/radpattern
Browse files Browse the repository at this point in the history
Plot Event far-field radiation pattern / refactor core/event.py into folder structure
  • Loading branch information
megies committed Feb 16, 2016
2 parents 4d64bf7 + b6f5b55 commit 70ccbb1
Show file tree
Hide file tree
Showing 23 changed files with 4,616 additions and 3,502 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ master:
* New method Stream/Trace.remove_sensitivity() to remove instrument
sensitivity
* Fix incorrect parsing of some non-ISO8601 date/time strings. (see #1215)
* Added plotting method to Event (customizable subplots from a selection
of map, beachball and farfield radiation plots, see #1192)
- obspy.clients.fdsn:
* Replace FDSN webservice shortcut `NERIES` with `EMSC` and deprecate the
`NERIES` shortcut, will be removed in a future release (see #1146).
Expand All @@ -58,6 +60,7 @@ master:
argument to functions that plot maps to select between Basemap or Cartopy.
* New default colormap for all plots. A backport of the new viridis colormap
from matplotlib is available for those using older matplotlib releases.
* Added plotting routines for farfield radiation patterns of moment tensors
- obspy.io.kml:
* New module for Google KML output of Inventory and Catalog objects
(e.g. for use in Google Earth)
Expand Down
5 changes: 5 additions & 0 deletions misc/docs/source/bibliography/Aki1980.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@book{Aki1980,
title={Quantitative Seismology},
author={Aki, Keiiti and Richards, Paul G},
year={1980},
}
18 changes: 17 additions & 1 deletion misc/docs/source/gallery.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Gallery
net.plot(projection="ortho")

.. gallery-plot::
:target: packages/autogen/obspy.core.event.Catalog.plot.html
:target: packages/autogen/obspy.core.event.catalog.Catalog.plot.html
:alt: Basemap preview plot of Catalog class

from obspy import read_events
Expand Down Expand Up @@ -223,6 +223,22 @@ Gallery

polynomial(tr.data, order=3, plot=True)

.. gallery-plot::
:target: packages/autogen/obspy.core.event.event.Event.plot.html
:alt: Event plot

from obspy import read_events
cat = read_events("/path/to/CMTSOLUTION")
cat.plot()

.. gallery-plot::
:target: packages/autogen/obspy.core.event.event.Event.plot.html
:alt: Event plot

from obspy import read_events
cat = read_events("/path/to/CMTSOLUTION")
cat.plot(kind=[['global'], ['p_sphere', 'p_quiver']])

.. image:: /_static/sds_report.png
:target: packages/autogen/obspy.scripts.sds_html_report.html
:alt: SDS html report
Expand Down
37 changes: 37 additions & 0 deletions misc/docs/source/packages/obspy.core.event.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
.. currentmodule:: obspy.core.inventory
.. automodule:: obspy.core.inventory

.. comment to end block
Classes & Functions
-------------------
.. autosummary::
:toctree: autogen
:nosignatures:

catalog.Catalog
event.Event
origin.Origin
magnitude.Magnitude
origin.Pick
magnitude.Amplitude
source.FocalMechanism
source.MomentTensor

.. comment to end block
Modules
-------
.. autosummary::
:toctree: autogen
:nosignatures:

base
catalog
event
header
magnitude
origin
source

.. comment to end block
1 change: 1 addition & 0 deletions misc/docs/source/packages/obspy.imaging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
waveform
mopad_wrapper
maps
source

.. comment to end block
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ a dictionary as ``'attrib'``.
If desired for better (human-)readability, namespace abbreviations in the
output xml can be specified during output as QuakeML by providing a dictionary
of namespace abbreviation mappings as `nsmap` parameter to
:meth:`Catalog.write() <obspy.core.event.Catalog.write>`.
:meth:`Catalog.write() <obspy.core.event.catalog.Catalog.write>`.
The xml output of the above example looks like:

.. code-block:: xml
Expand Down
1 change: 1 addition & 0 deletions obspy/CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Jonathan MacCarthy
Alessia Maggi
Henri Martin
Tobias Megies
Matthias Meschede
Alberto Michelini
Bernhard Morgenstern
Nathaniel C. Miller
Expand Down

0 comments on commit 70ccbb1

Please sign in to comment.