Skip to main content

A Python library for computing Coulomb Failure Stress Change.

Project description

Introduction

This Python package serves as the frontend for calculating and building a Green's function library for synthetic seismograms. The backend consists of Wang Rongjiang's program for calculating synthetic seismograms, including EDGRN/EDCMP, QSEIS_STRESS, SPGRN, and QSSP (Wang, 1999; Wang 2003; Wang and Wang 2007; Wang et al., 2017). The code includes two parallel modes: one using the multiprocessing library (single-node multi-process) and the other using MPI (multi-node). Traveling time is calculated using TAUP. Some geographic coordinate transformations use code from obspy.

Wang, R. (1999). A simple orthonormalization method for stable and efficient computation of Green’s functions. Bulletin of the Seismological Society of America , 89 (3), 733–741. https://doi.org/10.1785/BSSA0890030733

Wang, R. (2003). Computation of deformation induced by earthquakes in a multi-layered elastic crust—FORTRAN programs EDGRN/EDCMP. Computers & Geosciences, 29(2), 195–207. https://doi.org/10.1016/S0098-3004(02)00111-5

Wang, R., & Wang, H. (2007). A fast converging and anti-aliasing algorithm for green’s functions in terms of spherical or cylindrical harmonics. Geophysical Journal International, 170(1), 239–248. https://doi.org/10.1111/j.1365-246X.2007.03385.x

Wang, R., Heimann, S., Zhang, Y., Wang, H., & Dahm, T. (2017). Complete synthetic seismograms based on a spherical self-gravitating earth model with an atmosphere–ocean–mantle–core structure. Geophysical Journal International, 210(3), 1739–1764. https://doi.org/10.1093/gji/ggx259

Crotwell, H. P., Owens, T., & Ritsema, J. (1999). The TauP Toolkit: Flexible seismic travel-time and ray-path utilities. Seismological Research Letters, 70, 154–160

Installation

  1. Install the requirments.
conda create -n pygrnwang python=3.11
conda install openjdk jpype1 gfortran numpy scipy pandas tqdm mpi4py -c conda-forge
  1. Install by pip.
git clone https://github.com/Zhou-Jiangcheng/pygrnwang.git
cd pygrnwang
pip install . --no-build-isolation

or for develop mode

pip install -e . --no-build-isolation

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

pygrnwang-1.0.4.tar.gz (279.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygrnwang-1.0.4-cp312-cp312-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.12Windows x86-64

File details

Details for the file pygrnwang-1.0.4.tar.gz.

File metadata

  • Download URL: pygrnwang-1.0.4.tar.gz
  • Upload date:
  • Size: 279.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for pygrnwang-1.0.4.tar.gz
Algorithm Hash digest
SHA256 e7bab26ccdb9b96fbbcd44be09b227fef9e7d2bfd732c2dd0c7b58eaa040beab
MD5 97fdabfde327ed1d1f6609f517204e7d
BLAKE2b-256 b51c474b225792f9d2a0dfb79fc61c0a063669a46f1691e5471fc9d89814ef1f

See more details on using hashes here.

File details

Details for the file pygrnwang-1.0.4-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pygrnwang-1.0.4-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for pygrnwang-1.0.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 57548612cf25269f1d0508412c6695905a22f381d09aec7319b23b441983e232
MD5 2335bab4ab8fa7ef9a4792a133e1e10e
BLAKE2b-256 b1fa32cefd70fb1266908c536f3d4476d7c0bd0d398087c7a48bb1124bf28c05

See more details on using hashes here.

Supported by

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