Skip to main content

Package for the calculation of ellipticity corrections for teleseismic waves

Project description

EllipticiPy

A python package for the calculation of ellipticity corrections for seismic phases in elliptical planetary models.

Authors:

  • Stuart Russell
  • John F. Rudge
  • Jessica C. E. Irving
  • Sanne Cottaar

The workings of this package are described in the main paper:

Russell, S., Rudge, J., Irving, J. and Cottaar, S., 2022. A re-examination of ellipticity corrections for seismic phases. Geophysical Journal International, 231(3), pp.2095-2101. https://doi.org/10.1093/gji/ggac315

Please cite this publication when publishing work that has made use of this package.

Installation

The package can be installed using pip, the same as many python packages:

pip install ellipticipy

This package depends on ObsPy. For information regarding ObsPy please see the relevant documentation: https://docs.obspy.org/

Usage

This package is intended to be used in Python:

>>> from obspy.taup import TauPyModel
>>> from ellipticipy import ellipticity_correction
>>> model = TauPyModel('prem')
>>> arrivals = model.get_ray_paths(source_depth_in_km = 124,
    distance_in_degree = 65, phase_list = ['pPKiKP'])
>>> ellipticity_correction(arrivals, azimuth = 39, source_latitude = 45)
[-0.7731978967098823]

For users that do not wish to directly interact with Python, there is a command line wrapper for calculating ellipticity corrections in src/ellip. The Python package must be installed before the wrapper can be used.

> ./ellip -d 134 -deg 64 -az 15 -sl 23 -ph P,PcP,PKiKP -mod ak135
    
Model: ak135
Distance   Depth   Phase        Ray Param   Spherical   Ellipticity   Elliptical
  (deg)     (km)   Name         p (s/deg)   Travel      Correction    Travel    
                                            Time (s)        (s)       Time (s)  
--------------------------------------------------------------------------------
   64.00   134.0   P                6.536     619.05        -0.45       618.60
   64.00   134.0   PcP              4.110     653.31        -0.48       652.83
   64.00   134.0   PKiKP            1.307    1020.55        -0.75      1019.80    

Examples

Further examples of code usage in Jupyter Notebook format can be found in src/. The first of these demonstrates the main usage case.

License

This package is licenced under the GNU Lesser General Public License v3.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ellipticipy-1.0.1.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ellipticipy-1.0.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file ellipticipy-1.0.1.tar.gz.

File metadata

  • Download URL: ellipticipy-1.0.1.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for ellipticipy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 355c427afd61da3e5becd7a0c1f15d03652c8fb546a2cccd6c0a8fd3c643e02c
MD5 48e79f241dd76617752c6d26f01a82f2
BLAKE2b-256 95f338501323d1e1604de3bcbc503da4e2004baccc5155dc804daf7750f53ca4

See more details on using hashes here.

File details

Details for the file ellipticipy-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ellipticipy-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for ellipticipy-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b05179f10565b51bf2da04a78894d5afc12a2084d819d86e140d1608b0643488
MD5 5684459a8f99a38298f34e353b3d2ab2
BLAKE2b-256 2b7ccf204356207e1a0e3191c77ab4065b26d1a7d2a73e5174b3a0c194bc0f6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page