MuRAT is an open-source MATLAB package for 3D seismic attenuation, scattering and absorption tomography using body and coda waves at multiple frequencies.
This project is maintained by LucaDeSiena

MuRAT4.0 is a Matlab Package for seismic Attenuation, Scattering and Absorption Tomography using Body and Coda Waves at multiple frequencies.
MuRAT measures seismic attenuation, scattering, and absorption from passive and active data and models 3D variations of these parameters in space.
The group of active users (providing questions, feedback, and snippets of code) is the Volcano Earth Imaging group.
If you are looking for MuRAT3.0, the last stable release can be found at:
Luca De Siena et al. (2026). LucaDeSiena/MuRAT: Legacy MuRAT3.0 Code (v3.26.01.20). Zenodo. https://doi.org/10.5281/zenodo.18314469
The file Documentation_MuRAT.pdf in this folder serves as complete documentation for MuRAT4.0. This README file and the Murat_input_.m files in this folder act as additional documentation.
We recorded a Video Tutorial! Just go to the Volcano Earth Imaging group page, scroll down click on the video under the Murat Suite link.
The program works on Mac, Linux and Windows systems with MATLAB R2021b or higher (from Github Action testing).
Necessary Toolboxes: Signal Processing, Curve Fitting, Mapping, Optimization and Global Optimization. The Parallel Computing Toolbox is recommended for speed.
Custom toolboxes not included in standard Matlab installations are also provided with the package. These are:
fget_sac.m) written from scratch by the MuRAT authors (MIT licence), producing an identical header struct to the routines originally published by Zhigang Peng at his SAC tutorial page. The tests read waveforms from the sample datasets included in this repository.Three sample datasets (Mount St. Helens, Romania, and Toba) are included and allow the user to obtain sample models. The datasets work with the three corresponding Murat_input_.m files that show examples of what the user can get with the code.
The current version works following these steps:
Download or clone the package at https://github.com/LucaDeSiena/MuRAT.
Work in the downloaded folder after moving it to an appropriate location on your system.
Open one of the three input .m files, providing a step-by-step explanation of all inputs (Murat_inputMSH.m, Murat_inputRomania.m, or Murat_inputToba.m) and create your own.
Use a velocity model, storing it in the corresponding folder. A 3D model has columns [Latitude, Longitude, Altitude (meters), velocity], as in modvMSH.txt; a 1D model has columns [depth (km), radius (km), Vp, Vs], as in iasp91.txt. If you haven’t one, you can use either iasp91 or LITHO1.0, included in the package.
MuRAT works with SAC files that must be stored in a single folder and corrected for the instrument function. The files must have populated headers. Your SAC headers get tested anyway; the result is shown in an Excel file. The code takes from the header the following fields: a) The P-wave picking in the reference time of the waveform (in seconds); b) The coordinates of the event in degrees - beware, the earthquake depth must be in kilometers; c) The coordinates of the station - beware, the station elevation must be in meters; d) The origin time of the event (optional) in seconds.
Run MuRAT and select the name of Murat_input_ file desired.
For headless/batch operation, pre-define the input file path and run MuRAT without the interactive file dialog:
inputFile = '/path/to/Murat_inputToba.m'; MuRAT
or from the system command line:
matlab -r "inputFile = '/path/to/Murat_inputToba.m'; MuRAT; exit"
A. Start from the Murat_input..m files
The input files are self-explanatory and provide detailed descriptions of every input and references to papers you can use to set them. If you have a 3D velocity model, use Murat_inputMSH.m otherwise start from either Murat_inputRomania.m or Murat_inputToba.m, the examples for 3-component data.
B. Read the Documentation
The Documentation includes a summary of the theory underlying attenuation imaging: read it to understand the approximations used to process data, forward model kernels, and invert observations.
C. Understand the output text files
All the output files (.mat, .txt and .xlsx) and figures are stored in the TXT sub-directories in the Label folder, created in the working directory. A list of the output files and what they contain is provided in the following. Ascii files contain the models in degrees (longitude, latitude) and metres (altitude). We strongly suggest imaging the TXT files using the GeophysicalModelGenerator.
D. Set damping, smoothing and damping sweeps
The Qc and Q inversions are regularised with one damping and one smoothing value per frequency (Murat.input.dampingValueQc, dampingValueQ, smoothingValueQc, smoothingValueQ). Since MuRAT 4.1, damping is relative to the inversion matrix: the penalty is (damping × ‖A‖)² × ‖m‖², where ‖A‖ is the largest singular value of the (weighted) matrix. A value of 1 weighs model norm and data misfit equally, and the same value acts alike for Qc and Q and across datasets. Values between 0.01 and 1 are a sensible range; left empty, damping is 0.1. Damping values from earlier input files are not interchangeable.
With Murat.input.inversionMethod = ‘Tikhonov’, the smoothing value is the weight of a first-difference (gradient) regulariser on the model grid, also relative to ‖A‖; leave it empty or 0 for damping only. For ‘Particle’, ‘Annealing’ and ‘Global’, it is the correlation length of the model covariance.
To compare damping values, set Murat.input.dampingSweepValues (e.g. [0.03 0.1 0.3]). Data processing and forward modelling run once; each value is then applied to Qc and Q at all frequencies and inverted separately, with results saved in its own folder (Label_damp_0p1, …) together with a Murat_damp_0p1.mat file. Existing folders with the same names are archived as _old, _old_2, etc. Leave it empty ([]) for a normal single run.
Small damping values (below about 0.1) may need more than Murat.input.MaximumIterations to converge; MuRAT then prints a warning, and you should increase the iterations or the damping.
E. Understand the output figure files
Beware, .fig figures are created with the invisible option in Matlab. There are two ways to open them:
(1) Use the function openfig(..,’visible’) to open them from the command window.
(2) Click twice on the figure file and type shg in the command window.
All the figures are stored in subdirectories in the Label folder, created in the working directory:
In all file names, F is the central frequency, with _ for the decimal point (e.g. 1_5 for 1.5 Hz). Map figures are saved as a 3D .fig and three .png sections (_H, _SN, _WE).
peakdelay_F_Hz.txt, Qc_F_Hz.txt and Q_F_Hz.txt: The 3D models of the parameters at different frequencies. The first three columns of all text files correspond to Longitude, Latitude, and altitude in metres (negative below sea level; the header calls it Depth). The fourth column is the mapped parameter: the logarithm of the peak delay relative to its travel-time trend, inverse Qc, or inverse Q. They contain a minimum of five columns (for Peak Delay) that can be imported to show the locations of the anomalies in a simple (x,y,z) reference system. The fifth column shows blocks hit by at least one ray. Qc and Q are solved with an inversion and thus have (1) the sixth and seventh columns that correspond to the input and output of the checkerboard test; (2) the eighth and ninth columns that correspond to the input and output of the spike test.
Murat.mat: A Matlab structure containing all inputs and data the code produces.
DataHeaders.xlsx: A file containing all header variables of the SAC files used for the mapping, useful for data selection.
Qc subdirectory
Qc-Checkerboard_F_Hz.fig and Qc-Checkerboard_F_Hz_H/SN/WE.png: These figures show the input and output of the Qc checkerboard test in the 3D space (.fig) and through cross-sections (.png).
Q subdirectory
Q-Checkerboard_F_Hz.fig and Q-Checkerboard_F_Hz_H/SN/WE.png: These figures show the input and output of the Q checkerboard test in the 3D space (.fig) and through cross-sections (.png).
PD subdirectory
PD-HitMap_F_Hz_H/SN/WE.png: Ray hit maps for the peak-delay regionalisation, which has no checkerboard test.
Rays_PeakDelay_F_Hz.png and Rays_Q_F_Hz.png: These figures show how rays develop in 3D for the Peak Delay and Q measurements. It plots them on three slices (WE, SN, Z). The fourth panel shows the location of the area on the Earth.
Kernel_F_Hz figures: Each .fig figure has two panels showing the sensitivity kernels in the entire 3D space (left) and the normalised kernels in the chosen inversion grid (right). This reduction implies several hypotheses: the most important is that most energy is still in the grid (the difference is generally < 1% if all sources and stations are in the inversion grid). The .png figures are sections in the WE, SN, and Z directions. Figures are produced for all frequencies.
PeakDelay subdirectory
Peak-Delay-3D_F_Hz_.fig and Peak-Delay-3D_F_Hz__H/SN/WE.png: Peak delay maps in 3D (.fig) and across sections (.png).
Q subdirectory
Q-3D_F_Hz.fig and Q-3D_F_Hz_H/SN/WE.png: Total attenuation maps in 3D (.fig) and across sections (.png).
Qc subdirectory
Qc-3D_F_Hz.fig and Qc-3D_F_Hz_H/SN/WE.png: Coda attenuation maps in 3D (.fig) and across sections (.png).
Qc_vs_frequency.png: Relationship between average coda attenuation and frequency across the dataset.
Qc subdirectory
Qc-Spike_F_Hz.fig and Qc-Spike_F_Hz_H/SN/WE.png: These figures show the input and output of the Qc spike test in the 3D space (.fig) and through cross sections (.png).
Q subdirectory
Q-Spike_F_Hz.fig and Q-Spike_F_Hz_H/SN/WE.png: These figures show the input and output of the Q spike test in the 3D space (.fig) and through cross sections (.png).
Clustering/ClusteringQc_F_Hz.png and ClusteringQ_F_Hz.png: These figures show all rays used on the map (black, discarded) against those after declustering (red).
Qc/Qc_analysis_F_Hz.png and .fig: Analysis figure showing coda attenuation quality and residuals per frequency.
PeakDelay/PD_analysis_F_Hz.png and .fig: Peak-delay vs travel-time figure for assessing data quality.
Q/CN_analysis_F_Hz.png and .fig: Coda-normalisation figure comparing data to the analytical forward model.
LCurve/L-curve_Qc_F_Hz and L-curve_Q_F_Hz (.fig and .png): L-curves for the Qc and Q inversions, to help choose the damping parameters (see Set damping, smoothing and damping sweeps above). They only appear when using a Tikhonov inversion, and show the effect of damping only, not of smoothing. Separate files (_Checkerboard_, _Spike_) are written for the synthetic tests.
VTest.fig: With a 3D velocity model, the model is also available as a figure in Matlab format. It can be loaded in Matlab and show the vertical and horizontal slices defined in Figures Sections.
To cite MuRAT, please use the Zenodo DOI:
Luca De Siena et al. (2026). MuRAT: a multi-resolution seismic attenuation tomography code (v4.1.0). Zenodo. https://doi.org/10.5281/zenodo.13996751
A machine-readable citation is available in CITATION.cff. On GitHub, the Cite this repository button (top-right of the repository page, under About) generates formatted citations automatically from that file.
If you use MuRAT for your research and publications, please also cite the following method papers, depending on the techniques you use:
Q (Total attenuation):
De Siena, L., C. Thomas, and R. Aster. “Multi-scale reasonable attenuation tomography analysis (MuRAT): An imaging algorithm designed for volcanic regions.” Journal of Volcanology and Geothermal Research 277 (2014): 22-35. - Older release that discusses the code for coda-normalisation, also used in the early works of Prudencio et al. 2015, a,b, GJI
De Siena, L., G. Chiodini, G. Vilardo, E. Del Pezzo, M. Castellano, S. Colombelli, N. Tisato, and G. Ventura, 2017. Source and dynamics of a volcanic caldera unrest: Campi Flegrei, 1983–84. Scientific reports: Nature Journals 7, 8099. - Recent implementation of the Coda Normalization method with correction for coda attenuation variations
Feng, Y., Ai, Y., De Siena, L., He, Y., Jiang, M., Mon, C. T., et al. (2026). Seismic attenuation tomography in Central Myanmar and its implications on continental subduction and arc magmatism. Journal of Geophysical Research: Solid Earth, 131, e2025JB032147. - Most recent application of Q imaging to lithospheric scale
Qc and Peak Delay (Absorption and scattering):
De Siena L., Calvet, M., Watson, K.J., Jonkers, A.R.T. and Thomas, C., 2016. Seismic scattering and absorption mapping of debris flows, feeding paths, and tectonic units at Mount St. Helens volcano. Earth and Planetary Science Letters, 442, pp.21-31. - Implementation of the older peak delay and Qc technique, both with regionalisation
De Siena L., A. Amoruso, E. Del Pezzo, Z. Wakeford, M. Castellano, L. Crescentini, 2017. Space-weighted seismic attenuation mapping of the aseismic source of Campi Flegrei 1983–84 unrest. Geophysical Research Letters, 44.4 pp. 1740-1748. - First implementation with kernels for Qc
Del Pezzo, E., De La Torre, A., Bianco, F., Ibanez, J., Gabrielli, S., and De Siena, L. (2018). Numerically Calculated 3D Space-Weighting Functions to Image Crustal Volcanic Structures Using Diffuse Coda Waves. - Numerical implementation of kernel functions
Sketsiou P., F. Napolitano, A. Zenonos, L. De Siena, (2020). New insights into seismic absorption imaging. Physics of the Earth and Planetary Interiors, 298, 106337. - Comprehensive review of the method and future outlooks
Napolitano, F., De Siena, L., Amoroso, O., Ágústsdóttir, T., Benediktsdóttir, Á., Palo, M., et al. (2025). Scattering and absorption imaging of the Hengill high-temperature geothermal area, southwest Iceland. Journal of Geophysical Research: Solid Earth, 130, e2024JB030731. - Most recent application
Contributions are welcome: bug reports, fixes, documentation, examples and new features. Please read CONTRIBUTING.md for the full guidelines. In short:
master, add or update tests in the Tests folder, and open a pull request. results = runtests('Tests');
assertSuccess(results);
The same tests run automatically on GitHub Actions (see the test badge above).
The people who have contributed substantially to MuRAT are listed in AUTHORS.md.
Although we have cross-checked the whole code, we cannot warranty it is exempt from bugs. The package is provided as-is; we will neither be held responsible for any use you make of it nor for the results and conclusions you may derive using MuRAT.
Some developments of this software package were funded by the Deutsche Forschungsgemeinschaft under grant number 449466527.