This github provides rtergpy
; a set of python codes for the calculation of the radiated seismic energy as determined at the approximated termination of earthquake rupture.
The code is modified signficantly from the original FORTRAN development for the Energy/Moment Ratio parameter (Theta parameter) as described in Newman and Okal (1998).
The code now calculates the per-second energy change as determined per station (Convers and Newman, (2011)), and the total energy
radiated at the maximum in the Time-Averaged Cumulative Energy Rate (TACER) as decribed in Convers and Newman (2013).
A paper describing this new code is forthcoming.
# create with a bunch of packages
conda create --name rtergpy python ipython ipykernel
conda activate rtergpy
conda install gmt
pip install pygmt compress_pickle matplotlib tqdm obspy pandas
Install the rtergpy
pagkage by going into this directory rtergpy
(directory with setup.py
) and using pip:
pip install .
# alternatively, install from another directory, but point to that directory
pip install '/path/to/setup/.py/file'
If there are any additonal dependencies needed, you may need to install these first.
To update your install, after downloading (e.g. through git pull)
# remember to be in the `setup.py` directory
pip install update .
Alternatively, if you are planning on modifying the code for your own development, it would likely be better to run the below, to allow updates to code to be automatically loaded
Run in 'Edit' Mode
# Allowing edits to programs to automatically become loaded
pip install -e .
Before running any code, copy rtergpy.conf
into your base directory and make any changes to that version for
code and event directory locations, as well as any other parameters that you want to change for your default runs.
cp rtergpy.conf ~/
Note that program will check
/etc/
, then~/
, finally the local run directory (.
) for config files, overriding configuration details along the way. Thus, directory specific configurations will always supercede prior configs.
Look in the Examples
and notebooks
for how to process.