Skip to content

miriamzg/tempseis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tempseis

Perform higher-order moment tensor inversions

Requirements

The Neighbourhood Algorithm must be obtained from the original authors.

Python 3 is used for preprocessing and plotting.

Inversion

This directory contains the problem-specific source code for higher-order moment tensor inversions.

Building

In Inversion/src there is the main routine homti_na.f, some subroutines and a Makefile. To build the code, run

cd Inversion/src
make NA_DIR=</path/to/NA/package> all

The all target will build the necessary parts of the NA and link with the routines here. The default value of NA_DIR is ../NA.

pytempseis

This python package contains helpful scripts for data processing and plotting. Install in a python3 environment using pip

cd tempseis
python3 -m venv .venv
source .venv/bin/activate
pip install .

This will make sure all the correct packages and functions are available to the various scripts. Feel free to use a different environment name.

Data processing

In pytempseis/dataprocessing, edit the parameters.yml as required then run

python process_data.py

to run through all the processing steps. Alternatively you can run the individual .py scripts if you wish to process step-by-step.

Plotting

In pytempseis/plot you'll find helpful plotting scripts, most of which will take a result direction as input. TODO: use argparse

Run Everything

Once the data has been preprocessed, the easiest thing to do is

./total_proc_script

from the top level directory. This will copy data to the right place so that it can be found by the NA code, run the inversion, and plot the results. Everything should then be in the Results directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published