SGSIM is a Python package that provides two main capabilities:
- Simulation of earthquake ground motions using a site-compatible stochastic method [1].
- Processing and analysis of ground motions, including filtering, trimming, and calculating various intensity measures (e.g., PGA, SA, FAS, etc.).
Table of Contents
Installation
Stable release (recommended): Install the latest stable version from PyPI:
pip install sgsim
Development version: To use the latest development version (may include experimental or untested changes), install directly from the GitHub repository:
pip install git+https://github.com/Sajad-Hussaini/sgsim.git
Documentation & License
📖 Explore the Full Documentation, Tutorials, and API Reference available at sgsim.readthedocs.io.
SGSIM is released under the MIT License. See the LICENSE file for the full text.
Contact & Support
For any questions, assistance, suggestions, or requests to implement additional Intensity Measures (IMs), please feel free to contact:
S. M. Sajad Hussaini
📧 hussaini.smsajad@gmail.com
Please include "SGSIM" in the subject line for a quicker response.
If you find this package useful, contributions to help maintain and improve it, are always appreciated.
References
Please cite the following references for any formal study:
[1] Primary Reference
Broadband Stochastic Simulation of Earthquake Ground Motions with Multiple Strong Phases with an Application to the 2023 Kahramanmaraş, Turkey (Türkiye), Earthquake
DOI: https://doi.org/10.1177/87552930251331981
(Journal of Earthquake Spectra)
[2] SGSIM Package
Simulation and Analysis of Ground Motions
DOI: https://doi.org/10.5281/zenodo.14565922
Release files for sgsim 1.5.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 | |
|---|---|---|---|
| sgsim-1.5.0.tar.gz | 33.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sgsim-1.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 69.3 kB
Release files / sgsim-1.5.0.tar.gz
| Download URL | sgsim-1.5.0.tar.gz |
|---|---|
| Size | 33.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffd5a9b1e15b04f897ad07c377cca839328d829fda6f84956409dd823eebe3c2
|
|
BLAKE2b-256 checksum How to use checksums |
e0e7f0274d1bde165092cde616ddf4c58490e26edd62301e83f0ba6b76a0d0d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 21, 2026.
Transparency logRelease files / sgsim-1.5.0-py3-none-any.whl
| Download URL | sgsim-1.5.0-py3-none-any.whl |
|---|---|
| Size | 36.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1ec5db03dead6255a86069fba9535795f3521cf95a4e0a08b7441743ce251aa
|
|
BLAKE2b-256 checksum How to use checksums |
b2133e51cee784d2b6023ea38e7b88a2d564ea8ce759d8523b8b8e6e881622af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 21, 2026.
Transparency log