Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Time Domain Moment Tensor Inversion in Python

License

NotificationsYou must be signed in to change notification settings

LLNL/mttime

Repository files navigation

MTtime (Time Domain Moment Tensor Inversion in Python) is a python package developed for time domain inversion of complete seismic waveform datato 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 and its dependencies
  • pandas
  • cartopy (for plotting maps)

Installation

I recommend installing Python viaMinicondaorAnaconda. Choose Miniconda for a lower footprint.Then follow the instructions on their sites to installObsPyandpandasfor your given platform.

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

# Activate environmentconda activate your_environment# Build and install mttimegit clone https://github.com/LLNL/mttimecd mttimepip install.

Finally, if you want to run the tutorials you will need to installJupyter 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:

importmttimeconfig=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


[8]ページ先頭

©2009-2025 Movatter.jp