ps2ff
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
This repository can be installed from pypi with
pip install ps2ff
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
run_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 src/ps2ff/config directory.
Output Tables
The src/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
whatcommand 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
ARparameter, 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.
Metadata
Release files for ps2ff 1.5.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ps2ff-1.5.9.tar.gz | 215.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ps2ff-1.5.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 377.8 kB
Release files / ps2ff-1.5.9.tar.gz
| Download URL | ps2ff-1.5.9.tar.gz |
|---|---|
| Size | 215.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ec9af186a4f69ec5bf46f9350dd323ef4bdba0d050b7270aecbc648971ab78a
|
|
BLAKE2b-256 checksum How to use checksums |
9a403a73f4a3857fd7835c5718b2cdf978e1a07c4f50bb0dfaa5f3a1c337c263
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / ps2ff-1.5.9-py3-none-any.whl
| Download URL | ps2ff-1.5.9-py3-none-any.whl |
|---|---|
| Size | 161.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4cdaae13b5d4d6b2132cf60760b60ef5784803d277b7bb69777a2a63a206f638
|
|
BLAKE2b-256 checksum How to use checksums |
646ce204e8ca528fe50863295420013cfdfdbbe0afa791c602ebc32fa3c71657
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|