Code Monkey home page Code Monkey logo

mttime's Introduction

MTtime

MTtime (Time Domain Moment Tensor Inversion in Python) is a python package developed for time domain inversion of complete seismic waveform data to obtain the seismic moment tensor. It supports deviatoric and full moment tensor inversions, and 1-D and 3-D basis Green's functions.

Requirements

The package was developed on python 3.7 and 3.8, and is running and tested on Mac OSX.

  • ObsPy 1.0.* and its dependencies
  • pandas 1.0.*
  • cartopy (for plotting maps)

Installation

  • Create a Python environment
  • Install ObsPy and pandas
  • Make sure you have cloned the repository
  • Install mttime

I recommend installing Python via Miniconda or Anaconda. Choose Miniconda for a lower footprint. Then follow the instructions on their sites to install ObsPy and pandas for your given platform.

Download mttime and install it from source. If you installed Python via conda make sure you activate the environment where ObsPy and pandas are installed.

# Activate environment
conda activate your_environment

# Build and install mttime
git clone https://github.com/LLNL/mttime
cd mttime
python setup.py install

Finally, if you want to run the tutorials you will need to install Jupyter Notebook.

Usage

Executing the package from command line will launch the inversion, save and plot the result to file:

mttime-run mtinv.in

The equivalent in the Python console:

import mttime
config = mttime.Configure(path_to_file="mtinv.in")
mt = mttime.Inversion(config=config)
mt.invert()
mt.write()

Resources

License

mttime is distributed under the terms of LGPL-3.0 license. All new contributions must be made under the LGPL-3.0 license.

SPDX-License-Identifier: LGPL-3.0

LLNL-CODE-814839

mttime's People

Contributors

ahchiang avatar

Stargazers

TecnocasteR avatar

Watchers

James Cloos avatar TecnocasteR 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.