Skip to main content

bpptkg-richter

bpptkg-richter is a Python library for computing Richter local magnitude scales on BPPTKG seismic network.

Installation

Install using pip:

pip install -U bpptkg-richter

Richter Magnitude Scales

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

# Read single station or multiple stations streams
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:

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), the only supported component is Z component.

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 and online at https://bpptkg-richter.readthedocs.io/en/latest/.

License

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

Metadata

Release files for bpptkg-richter 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bpptkg-richter 1.0.0
File Size Uploaded Provenance
bpptkg-richter-1.0.0.tar.gz 10.9 kB Without provenance Details

Release files / bpptkg-richter-1.0.0.tar.gz

Download URL bpptkg-richter-1.0.0.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5d52a72713c75098ee274067f0fe8b7a23ed753da672671255552489555354e7
BLAKE2b-256 checksum
How to use checksums
be6f484d84216668491823b63305803f02e845f27cedde049916d90053843cc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Security for bpptkg-richter 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page