Skip to content

How it Works

Luca De Siena edited this page Jun 18, 2023 · 6 revisions

Contents

  1. Flow Chart
  2. Download
  3. Prepare Data
  4. Testing
  5. Results

Flow Chart

The following diagram shows a possible workflow to obtain attenuation maps with MuRAT:

The following sections will explain this flow in greater detail:

  1. Download MuRAT and read the readme.txt
  2. Prepare data
  3. Look at testing results
  4. Look at the results

1. Download MuRAT and read the readme.txt

The first step is to download MuRAT from GitHub at https://github.com/LucaDeSiena/MuRAT. If you are forking the code using GitHub Desktop, remember not to work in the GitHub folder: this must always give you the original code. MuRAT is constantly updated and you likely want to fetch solved bugs and new features upsteam. Create a test folder and start looking at the readme.txte file. The file details all the steps necessary to build the input file. However, this wiki contains a Create Input Page dedicated to building your own input file for a given dataset.

2. Prepare Data

The second step is to prepare your data. MuRAT works with SAC files that must be stored into a single folder and corrected for the instrument function:

The files must have populated headers. Your SAC headers get tested anyway and the result is shown in an excel file named Header.xls.

However, the folder Utilities_Matlab contains the function Murat_testAll. Use it with the path of the data folder to obtain Header.xls and check that the following fields are correct: 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.

You can use the utility Murat_changeHdr.m, located in the Utilities_Matlab, to change the header of single files.

3. Look at testing results

After you run the code, look at the folder Results/Tests. Inside, you will find several figures that allow you to test how good your data and inversion are. Go to the page Testing to undertsand how to read these figures.

4. Look at results

After you run the code, look at the oher folder created by the Testing.Go to the page Results to undertsand how to read these figures and files.