Skip to main content

Approximated rupture distances from point source

Project description

ps2ff

Produce approximated finite fault distances and variance corrections given point source information, for example Repi (epcentral distance) to Rjb (Joyner-Boore distance) or Rrup (closest distance to rupture).



Using the results (the API)

The command line programs (described below) can be used to generate new distance adjustments. This package also includes a set of correction factors for some common conditions (e.g., typical active crustal regions). These can most easily be used with the interpolate module that contains the PS2FF class, which enables the use of the tables for arbitrary magnitudes and epicentral distance values. See the ps2ff.interpolate section of this package.

Installation

In the base of this repository, run

conda create --name ps2ff pip
conda activate ps2ff
pip install -r requirements.txt .

You can omit the conda commands if you do not wish to use a conda virtual environment.

To run the tests

pip install pytest
pytest .

Background

This code implements the methods descibed by:

  • Thompson, E. M., and C. B. Worden (2017). Estimating rupture distances without a rupture, Bulletin of the Seismological Society of America. DOI: https://doi.org/10.1785/0120170174.

Running the Programs

The primary program is run_ps2ff, which must be given a configuraiton file

ps2ff -w Rjb config_file.ini

where '-w Rjb' is the 'what' command line argument for run_ps2ff. There are example configuration files in the ps2ff/config directory.

Output Tables

The ps2ff/tables directory contains example results for some generic seismological assumptions. The output file name convension is easiest to describe with an example:

Rjb_S14_mechA_ar1p0_seis0_15_Ratios.csv

where:

  • "Rjb" is the the what command line argument.
  • "S14" is the selected rup_dim_model.
  • "mechA" specifies the rupture mechanism parameter mech, where "A" can be one of "A", "SS", "N", or "R".
  • "ar1p0" is the aspect ratio specified with the AR parameter, where the decimal point is replaced with the letter 'p'.
  • "seis0_15" is the range min/max seismogenic depths (in this case 0 to 15 km).
  • "Ratios" is either "Ratios" or "Var" specifying whether the file contains Rjb- or Rrup-to-Repi ratios, or variances.

Each output table starts with six header lines (each beginning with #) specifying the processing parameters. This is followed by a line (comma-separated) providing the column headers. The first column, "Repi_km", is the epicentral distance. The following columns "R(magnitude)" ("R" for "ratio") or "V(magnitude)" ("V" for "variance) provide the values for a given Repi and magnitude. The table is intended for bi-variate interpolation, linear in magnitude and logarithmic in distance. The ratios are Rjb (or Rrup) to Repi.

Program Details

run_ps2ff produces tables of Rjb-to-Repi or Rrup-to-Repi ratios and variances. Example configuration files may be found in ps2ff/config.

run_ps2ff_single_event produces tables of Rrup-to-Repi and Rjb-to-Repi ratios and variances for a single event. This means that the magnitdue and hypocentral depth are available, simplifying the integration. It optionally tabulates the adjustment factors as a function of backazimuth. An example configuration file for this program is given in tests/config/test_single.ini.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ps2ff-1.5.6.tar.gz (138.7 kB view details)

Uploaded Source

Built Distribution

ps2ff-1.5.6-py3-none-any.whl (165.4 kB view details)

Uploaded Python 3

File details

Details for the file ps2ff-1.5.6.tar.gz.

File metadata

  • Download URL: ps2ff-1.5.6.tar.gz
  • Upload date:
  • Size: 138.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.7

File hashes

Hashes for ps2ff-1.5.6.tar.gz
Algorithm Hash digest
SHA256 84ba7b57f8d8077e21ac86a3018a8d65a0ddcbec1bbd25c1c53237e5907fb1e6
MD5 4b6e684631eed4e12f667a0409d2ae34
BLAKE2b-256 9321a8bbc2120c22ba723418938de486999053573be2d29475c5bd58c5017739

See more details on using hashes here.

File details

Details for the file ps2ff-1.5.6-py3-none-any.whl.

File metadata

  • Download URL: ps2ff-1.5.6-py3-none-any.whl
  • Upload date:
  • Size: 165.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.7

File hashes

Hashes for ps2ff-1.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d8ddf460f5ba1501e16d14fb9bfeffde3c4a2563b7827ab6c4150422509cf239
MD5 43a001303d17be7c258e738b0b2335f1
BLAKE2b-256 71aa23de1e3046fdc3e702d2346b1b82756443c1c402f5db662dbac9feb72889

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page