Library reference¶
Warning
MTUQ is still in under development. Some documentation may be incomplete or describe planned rather than current functionality.
Seismic data structures¶
Container for observed or synthetic seismic data |
|
Green’s tensor object |
|
Container for Green’s tensor objects |
Data I/O¶
Downloads Green’s tensors from syngine |
|
Opens Green’s tensor database from disk |
|
Opens grid search results from disk |
|
Reads seismic data from disk |
Data processing and inversion¶
Data processing function constructor |
|
Polarity misfit function constructor |
|
Waveform misfit function constructor |
|
Evaluates misfit over grids |
|
Data structure for storing misfit on regularly-spaced grids |
|
Data structure for storing misfit on irregularly-spaced grids |
Station and event structures¶
Station metdata object |
|
Origin metdata object |
|
Source wavelet or source-time function object |
|
Force source |
|
Moment tensor source |
Data visualization¶
Plots surface waves only |
|
Plots body and surface waves |
|
Plots body, Rayleigh, and Love waves |
|
Variation on plot_waveforms1 |
|
Variation on plot_waveforms2 |
|
Variation on plot_waveforms3 |
|
Plots first-motion beachball |
|
Plots first-motion data fit |
Moment tensor and force visualization¶
Plots maximum likelihoods on lune |
|
Plots marginal likelihoods on lune |
|
Plots misfit on lune |
|
Plots maximum likelihoods on v,w rectangle |
|
Plots marginal likelihoods on v,w rectangle |
|
Plots misfit on v,w rectangle |
|
Plots maximum likelihoods w.r.t force orientation |
|
Plots marginal likelihoods w.r.t. force orientation |
|
Plots misfit w.r.t force orientation |
Depth and hypocenter visualization¶
Plots maximum likelihoods versus depth |
|
Plots misfit versus depth |
|
Plots maximum likelihoods versus hypocenter |
|
Plots misfit versus hypocenter |
Station attributes visualization¶
Plots time shifts by location and component |
|
Plots amplitude ratios by location and component |
|
Plots normalized cross-correlation by location and component |
Moment tensor and force grids¶
Grid with randomly-drawn full moment tensors |
|
Grid with semiregularly-spaced full moment tensors |
|
Grid with randomly-drawn double couples |
|
Grid with regularly-spaced double couples |
|
Grid with randomly-drawn deviatoric moment tensors |
|
Grid with semiregularly-spaced deviatoric moment tensors |
|
Grid with randomly-drawn forces |
|
Grid with regularly-spaced forces |
Grid base classes¶
Note
These base classes can be used for specialized uses cases not covered by the above grids
Grid defined by values on axes |
|
Grid defined by lists of coordinates points |
Database and web service clients¶
Note
These classes provide low-level database and web service access. Normally it is easier to use high-level functions mtuq.download_greens_tensors
or mtuq.open_db
instead.
AxiSEM NetCDF database client based on instaseis |
|
FK database client |
|
CPS database client |
|
SPECFEM3D/3D_GLOBE database client based on seisgen |
|
Syngine web service client |
Low-level misfit modules¶
Note
Waveform misfit evaluation is the most computationally intensive task performed by this package. These classes provide low-level access to non-optimized and optimized versions of the misfit function (the former exists to check correctness of the latter). Normally users can avoid this complexity by simply calling mtuq.misfit.WaveformMisfit
.
Easy-to-read pure Python implementation |
|
Fast pure Python implementation |
|
Fastest Python/C implementation |