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:

insertpaperhere

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-0.9.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

ellipticipy-0.9.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ellipticipy-0.9.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.9

File hashes

Hashes for ellipticipy-0.9.0.tar.gz
Algorithm Hash digest
SHA256 ceb985517fe51d2d79fb658dd8075a5c194779da124e6ac0b0ff2a41c9ad0042
MD5 48211c68596798b21c225c1a9c192d0c
BLAKE2b-256 3d07246227e1bd7f35123c9c275a08abf623842a2d97cfc9ca6bff8c5c725d62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ellipticipy-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.9

File hashes

Hashes for ellipticipy-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 00b38522ae3274281efff8bcf0429c192ca23ade14e81b808cf096cd457437a7
MD5 ddf1818453f08e393651375b390a758d
BLAKE2b-256 ee74a7bdedb8fc8c86cc0a15821de58576467fc8153193af7314cd1001fdcbee

See more details on using hashes here.

Supported by

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