Skip to main content

Python library for computing Richter local magnitude scales on BPPTKG seismic network

Project description

bpptkg-richter

Python library for computing Richter local magnitude scales on BPPTKG seismic network.

Requirements

  • Python 3.5+
  • numpy

Installation

bpptkg-richter is available on PyPI, you can install it by typing this command:

pip install -U bpptkg-richter

Richter Magnitude Scales

This package also provides a method for computing Richter local magnitude scales on BPPTKG seismic network (VG). Currently supported stations are MEDEL, MELAB, MEPAS, MEPUS and only support Z component.

You may want to install ObsPy package, because this package only work on ObsPy stream type. Default network is VG and default component is Z:

from obspy import read
import richter

stream = read('/path/to/stream.mseed')

# Compute Richter local magnitude for station MEPAS
ml = richter.compute_ml(stream, 'MEPAS', network='VG', component='Z')

# Compute Wood-Anderson zero-to-peak amplitude in meter for station MEPAS
wa_ampl = richter.compute_wa(stream, 'MEPAS', network='VG', component='Z')

# Compute count amplitude peak-to-peak for station MEPAS
app = richter.compute_app(stream, 'MEPAS', network='VG', component='Z')

or for short version:

from obspy import read
import richter

stream = read('/path/to/stream.mseed')

ml = richter.compute_ml(stream, 'MEPAS')
wa_ampl = richter.compute_wa(stream, 'MEPAS')
app = richter.compute_app(stream, 'MEPAS')

For current version, on computing local magnitude (compute_ml) and Wood-Anderson amplitude(compute_wa), supported component is only Z component.

Method compute_app support other components, for example:

app = richter.compute_app(stream, 'MELAB', component='E') 

Documentation

Full documentation and guides are available at docs/ directory. You can build the documentation by running these commands:

cd /path/to/bpptkg-richter/
pip install -r requirements.txt
sphinx-build -b html docs/ /path/to/build/

Support

This project is maintained by Indra Rudianto. If you have any question about this project, you can contact him at indrarudianto.official@gmail.com.

License

By contributing to the project, you agree that your contributions will be licensed under its MIT license. See LICENSE for details.

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

bpptkg-richter-0.1.0.tar.gz (9.7 kB view details)

Uploaded Source

File details

Details for the file bpptkg-richter-0.1.0.tar.gz.

File metadata

  • Download URL: bpptkg-richter-0.1.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8

File hashes

Hashes for bpptkg-richter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 afe6d6be395fcc0c148734a167019fde17ede87aec8936bc287eb46f6de3a8d1
MD5 b5a86b4f77a131222365242bb16c3bcf
BLAKE2b-256 4ef248dd5d707445e6a30605146408e673716b1b3836b7142cf5f9ee937de2da

See more details on using hashes here.

Supported by

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