Git Product home page Git Product logo

bpptkg-richter's Introduction

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

This package provides some utilities for computing Richter local magnitude scales on BPPTKG seismic network (VG). Currently supported stations are MEDEL (Deles), MELAB (Labuhan), MEPAS (Pasarbubar), and MEPUS (Pusunglondon). For current version, it 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

# 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.

bpptkg-richter's People

Contributors

indrarudianto avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.