Copyright (C) by Almog Blaer
__ __ ____ _____ _____ __ __
| \/ |/ __ \| __ \ / ____| \/ |
| \ / | | | | |__) |____| (___ | \ / |
| |\/| | | | | _ /______\___ \| |\/| |
| | | | |__| | | \ \ ____) | | | |
|_| |_|\____/|_| \_\ |_____/|_| |_|
MOR-SM
:aquarius: Moment-rate ORriented Slip Model, enables control on earthquakes moment rate timing, as seen from inversions word-wide :part_alternation_mark:
What is MOR-SM?
MOR-SM is moment-rate oriented slip model (kinematic approach), for seismic wave propagation simulation software - SW4 1. The code contains a collection of a few command-line tools for manipulating slip function, time function and source time function, using source physical properties.
General code steps:
- Defining the segment's dimensions (width, length and slip) by Goda et al. (2016) 2 equations for the desired magnitude.
- Fitting location parameters for the slip and time functions based on the desired diractivity.
- Computing the sliding time (Tr) from stage I and stage II for velocity I and velocity II respectively.
- The features above are distributed by the time and slip function on each pixel on the segment.
- Generating Source Time Function (STF) for the earthquake you have just set.
- Compare your earthquake model to world-wide :earth_africa: inversions, SCARDEC database (Valle et al. 2011) 3.
- Save your file as SW4 input.
Installation
pip install MORSM
or
git clone https://github.com/ABlaer/MOR-SM.git
in the command line:
-
navigate to Vall2021 directory and extracte SCARDEC:
$ tar -xf sourcefunction_archive_all.tar -
move the database up one directory:
$ mv ALL_MOY_and_OPTI_2021_MAJ_till_31122020/* .
Dependencies
- argparse
- sys
- os
- numpy
- matplotlib
- glob
- logging
Usage
usage: MORSM.py [-h] [-v] [-l {CRITICAL,ERROR,WARNING,INFO,DEBUG}] [--logfile log file name] [-p parameter-file] [-o output-file]
[--slip | --no-slip] [--database | --no-database] [--stf | --no-stf]
Moment-rate ORriented Slip Model, enables control on
earthquakes moment rate timing, as seen from inversions word-wide
options:
-h, --help show this help message and exit
-v, --verbose verbose - print log messages to screen?
-l {CRITICAL,ERROR,WARNING,INFO,DEBUG}, --log_level {CRITICAL,ERROR,WARNING,INFO,DEBUG}
Log level (Default: DEBUG). see Python's Logging module for more details
--logfile log file name log to file
-p parameter-file, --paramfile parameter-file
-o output-file, --outfile output-file Output SW4 source commands file (see Chapter 11.2 in SW4 manual)
--slip, --no-slip shows nice slip model to have (default: False)
--database, --no-database depicts SCARDERC database and MORSM event on it (default: False)
--stf, --no-stf shows accumulated seismic moment and source time function (STF) (default: False)
Credits
MOR-SM relies on research with Ben-Gurion University of the Negev and Geological Survey of Israel. My thanks to Dr. Ran Nof and Professor Michael Tsesarsky for participating in this process.
License
Copyright (c) 2021 by Almog Blaer. MOR-SM is released under the GNU Lesser General Public License version 3 or any later version. See LICENSE.TXT for full details.
-
Petersson, N. A., and B. Sjögreen, 2017, SW4 v2.0. ↩
-
Goda, K., Y. Tomohiro, Nobuhito Mori, and Takuma Maruyama, 2016, New Scaling Relationships of Earthquake Source Parameters for Stochastic Tsunami Simulation, Coastal Engineering Journal, 58, no. 3, 1–40, doi: 10.1142/S0578563416500108. ↩
-
Vall´ee, M. & Douet, V., 2016. A new database of source time functions (STFs) extracted from the SCARDEC method, Phys. Earth planet. Inter., 257, 149–157. ↩
Metadata
Release files for MORSM 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| MORSM-2.0.0.tar.gz | 27.3 MB | Details |
Release files / MORSM-2.0.0.tar.gz
| Download URL | MORSM-2.0.0.tar.gz |
|---|---|
| Size | 27.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
110668e1a59388892a139e9cfbae08764707730a2c34dae1ddd9267dd56b1f20
|
|
BLAKE2b-256 checksum How to use checksums |
8c4032b033f885e48f853381f65100a92959d6d2e0e6c005054a5937a10e4378
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|