seislib


Nameseislib JSON
Version 0.6.24 PyPI version JSON
download
home_pagehttps://github.com/fmagrini/seislib
SummaryMulti-scale Seismic Imaging
upload_time2023-09-15 04:45:46
maintainer
docs_urlNone
authorFabrizio Magrini
requires_python>=3.6
licenseMIT
keywords seismic imaging surface waves seismic ambient noise earthquake seismology tomographic inversion
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
  <img width="90%" src="https://github.com/fmagrini/seislib/raw/master/docs/source/_static/seislib_logo.png">
</p>

[![PyPI version](https://img.shields.io/pypi/v/seislib?logo=pypi&style=flat-square&color=cae9ff&labelColor=f8f9fa)](https://pypi.org/project/seislib/)
[![Documentation Status](https://img.shields.io/readthedocs/seislib?logo=readthedocs&style=flat-square&color=fed9b7&labelColor=f8f9fa&logoColor=eaac8b)](https://seislib.readthedocs.io/en/latest/?badge=latest)

SeisLib is a Python package that allows for obtaining seismic images of the sub-surface from the local to the global scale. It is the result of a long-term effort of our team to make efficient and open source some of the Python codes behind our seismological publications over the last few years. The library is in rapid expansion and, at present, includes:


## **Seismic Ambient Noise Interferometry**
*  Automated download of continuous seismograms
* Fast cross-correlation of continuous seismograms in the frequency domain
* Extraction of frequency-dependent phase velocities for both Rayleigh and Love waves based on pairs of receivers
* Retrieval of frequency-dependent Rayleigh-wave attenuation coefficient based on dense seismic arrays

## **Surface-Wave Tomography based on Teleseismic Earthquakes**
* Automated download of seismograms recording strong earthquakes
* Retrieval of frequency-dependent Rayleigh and Love phase velocities based on pairs of receivers lying on the same great-circle path as the epicentre (Two-Station Method)

## **Least-Squares Imaging of Lateral Variations in Surface-Wave Velocity**
* Equal-area and regular parameterizations, suited for data sets collected at local, regional, and global scale
* Adaptive parameterizations, with finer resolution in the areas characterized by relatively high density of measurements
* Linearized inversion of velocity measurements based on ray theory
* Computational speed optimized (via Cython) for very large data sets
* Possibility to perform L-curve analyses and resolution tests (e.g., spike, checkerboard)

<p align="center">
  <img width="100%" src="https://github.com/fmagrini/seislib/raw/master/docs/source/_static/lib_diagram.png">
</p>

<p>&nbsp;</p>

## **Documentation**

For more information on SeisLib, make sure to visit our [wiki page](https://seislib.readthedocs.io/en/latest/)!

<p>&nbsp;</p>

## **Installation**

First, make sure you have all the dependencies installed, i.e., ``obspy``, ``cartopy``, and ``cython``. We recommend installing such dependences using conda (see below). You will also need ``gcc`` or equivalent, to compile the cython parts of the library.

```bash
conda create -n seislib python=3.9 numpy=1.20
conda activate seislib
conda install -c conda-forge obspy
conda install -c conda-forge cartopy
conda install -c anaconda cython
```


Note that we installed Python 3.9 (rather than Python 3.10) since numpy's version 1.22 currently leads to compatibility issues. Once the above dependences have been installed, you can proceed with the installation of ``seislib``. 

```
pip install seislib
```

If you run into troubles with the above, you can try the following approach:
```
git clone https://github.com/fmagrini/seislib.git
cd seislib/seislib/tomography/_ray_theory
python setup_all.py build_ext --inplace
```
The last command will compile the Cython files. If you work on an anaconda environment, you might need to replace "python" with, e.g., "/home/your_name/anaconda3/bin/python". (You can retrieve the path to your python executable by typing "import sys; print(sys.executable)" in your Python GUI. Make sure to then add ~/seislib to your path to being able to import its modules in your Python codes.


<p>&nbsp;</p>

## **References**
Specific to the Python package:
- Magrini, F., Lauro, S., Kästle, E. & Boschi, L., 2022. Surface-wave tomography using SeisLib: a Python package for multi-scale seismic imaging. *Geophys. J. Int.*, ggac236, https://doi.org/10.1093/gji/ggac236

Additional references depending on the use you made of SeisLib:
- Boschi, L. & Dziewonski, A.M., 1999. High- and low-resolution images of the Earth's mantle: Implications of different approaches to tomographic modeling. *J. Geophys. Res.*, 104(B11)
- Boschi, L., Magrini, F., Cammarano, F., & van der Meijde, M. 2019. On seismic ambient noise cross-correlation and surface-wave attenuation. *Geophys. J. Int.*, 219(3), 1568-1589
- Kästle, E., Soomro, R., Weemstra, C., Boschi, L. & Meier, T., 2016. Two-receiver measurements of phase velocity: cross-validation of ambient-noise and earthquake-based observations. *Geophys. J. Int.*, 207, 1493-1512
- Magrini, F., Diaferia, G., Boschi, L. & Cammarano, F., 2020. Arrival-angle effects on two-receiver measurements of phase velocity. *Geophys. J. Int.*, 220, 1838-1844
- Magrini, F. & Boschi, L., 2021. Surface-wave attenuation from seismic ambient noise: numerical validation and application. *J. Geophys. Res.*, 126, e2020JB019865
- Magrini, F., Boschi, L., Gualtieri, L., Lekić, V. & Cammarano, F., 2021. Rayleigh‑wave attenuation across the conterminous United States in the microseism frequency band. *Scientific Reports*, 11, 1-9




            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/fmagrini/seislib",
    "name": "seislib",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "Seismic Imaging,Surface Waves,Seismic Ambient Noise,Earthquake Seismology,Tomographic Inversion",
    "author": "Fabrizio Magrini",
    "author_email": "fabrizio.magrini90@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/b3/ef/0d7a646c4501c43260bd9a5f9f9e56cc8b2780ebaaed3f87f28098a098f8/seislib-0.6.24.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\n  <img width=\"90%\" src=\"https://github.com/fmagrini/seislib/raw/master/docs/source/_static/seislib_logo.png\">\n</p>\n\n[![PyPI version](https://img.shields.io/pypi/v/seislib?logo=pypi&style=flat-square&color=cae9ff&labelColor=f8f9fa)](https://pypi.org/project/seislib/)\n[![Documentation Status](https://img.shields.io/readthedocs/seislib?logo=readthedocs&style=flat-square&color=fed9b7&labelColor=f8f9fa&logoColor=eaac8b)](https://seislib.readthedocs.io/en/latest/?badge=latest)\n\nSeisLib is a Python package that allows for obtaining seismic images of the sub-surface from the local to the global scale. It is the result of a long-term effort of our team to make efficient and open source some of the Python codes behind our seismological publications over the last few years. The library is in rapid expansion and, at present, includes:\n\n\n## **Seismic Ambient Noise Interferometry**\n*  Automated download of continuous seismograms\n* Fast cross-correlation of continuous seismograms in the frequency domain\n* Extraction of frequency-dependent phase velocities for both Rayleigh and Love waves based on pairs of receivers\n* Retrieval of frequency-dependent Rayleigh-wave attenuation coefficient based on dense seismic arrays\n\n## **Surface-Wave Tomography based on Teleseismic Earthquakes**\n* Automated download of seismograms recording strong earthquakes\n* Retrieval of frequency-dependent Rayleigh and Love phase velocities based on pairs of receivers lying on the same great-circle path as the epicentre (Two-Station Method)\n\n## **Least-Squares Imaging of Lateral Variations in Surface-Wave Velocity**\n* Equal-area and regular parameterizations, suited for data sets collected at local, regional, and global scale\n* Adaptive parameterizations, with finer resolution in the areas characterized by relatively high density of measurements\n* Linearized inversion of velocity measurements based on ray theory\n* Computational speed optimized (via Cython) for very large data sets\n* Possibility to perform L-curve analyses and resolution tests (e.g., spike, checkerboard)\n\n<p align=\"center\">\n  <img width=\"100%\" src=\"https://github.com/fmagrini/seislib/raw/master/docs/source/_static/lib_diagram.png\">\n</p>\n\n<p>&nbsp;</p>\n\n## **Documentation**\n\nFor more information on SeisLib, make sure to visit our [wiki page](https://seislib.readthedocs.io/en/latest/)!\n\n<p>&nbsp;</p>\n\n## **Installation**\n\nFirst, make sure you have all the dependencies installed, i.e., ``obspy``, ``cartopy``, and ``cython``. We recommend installing such dependences using conda (see below). You will also need ``gcc`` or equivalent, to compile the cython parts of the library.\n\n```bash\nconda create -n seislib python=3.9 numpy=1.20\nconda activate seislib\nconda install -c conda-forge obspy\nconda install -c conda-forge cartopy\nconda install -c anaconda cython\n```\n\n\nNote that we installed Python 3.9 (rather than Python 3.10) since numpy's version 1.22 currently leads to compatibility issues. Once the above dependences have been installed, you can proceed with the installation of ``seislib``. \n\n```\npip install seislib\n```\n\nIf you run into troubles with the above, you can try the following approach:\n```\ngit clone https://github.com/fmagrini/seislib.git\ncd seislib/seislib/tomography/_ray_theory\npython setup_all.py build_ext --inplace\n```\nThe last command will compile the Cython files. If you work on an anaconda environment, you might need to replace \"python\" with, e.g., \"/home/your_name/anaconda3/bin/python\". (You can retrieve the path to your python executable by typing \"import sys; print(sys.executable)\" in your Python GUI. Make sure to then add ~/seislib to your path to being able to import its modules in your Python codes.\n\n\n<p>&nbsp;</p>\n\n## **References**\nSpecific to the Python package:\n- Magrini, F., Lauro, S., K\u00e4stle, E. & Boschi, L., 2022. Surface-wave tomography using SeisLib: a Python package for multi-scale seismic imaging. *Geophys. J. Int.*, ggac236, https://doi.org/10.1093/gji/ggac236\n\nAdditional references depending on the use you made of SeisLib:\n- Boschi, L. & Dziewonski, A.M., 1999. High- and low-resolution images of the Earth's mantle: Implications of different approaches to tomographic modeling. *J. Geophys. Res.*, 104(B11)\n- Boschi, L., Magrini, F., Cammarano, F., & van der Meijde, M. 2019. On seismic ambient noise cross-correlation and surface-wave attenuation. *Geophys. J. Int.*, 219(3), 1568-1589\n- K\u00e4stle, E., Soomro, R., Weemstra, C., Boschi, L. & Meier, T., 2016. Two-receiver measurements of phase velocity: cross-validation of ambient-noise and earthquake-based observations. *Geophys. J. Int.*, 207, 1493-1512\n- Magrini, F., Diaferia, G., Boschi, L. & Cammarano, F., 2020. Arrival-angle effects on two-receiver measurements of phase velocity. *Geophys. J. Int.*, 220, 1838-1844\n- Magrini, F. & Boschi, L., 2021. Surface-wave attenuation from seismic ambient noise: numerical validation and application. *J. Geophys. Res.*, 126, e2020JB019865\n- Magrini, F., Boschi, L., Gualtieri, L., Leki\u0107, V. & Cammarano, F., 2021. Rayleigh\u2011wave attenuation across the conterminous United States in the microseism frequency band. *Scientific Reports*, 11, 1-9\n\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Multi-scale Seismic Imaging",
    "version": "0.6.24",
    "project_urls": {
        "Homepage": "https://github.com/fmagrini/seislib"
    },
    "split_keywords": [
        "seismic imaging",
        "surface waves",
        "seismic ambient noise",
        "earthquake seismology",
        "tomographic inversion"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b3ef0d7a646c4501c43260bd9a5f9f9e56cc8b2780ebaaed3f87f28098a098f8",
                "md5": "0610877110a9c7813c949447e268ff60",
                "sha256": "a7c31bf561a234abe3ef8548a7bd6225f967cee27324d4f9d5f5195a4b8f9dd0"
            },
            "downloads": -1,
            "filename": "seislib-0.6.24.tar.gz",
            "has_sig": false,
            "md5_digest": "0610877110a9c7813c949447e268ff60",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 1676298,
            "upload_time": "2023-09-15T04:45:46",
            "upload_time_iso_8601": "2023-09-15T04:45:46.244211Z",
            "url": "https://files.pythonhosted.org/packages/b3/ef/0d7a646c4501c43260bd9a5f9f9e56cc8b2780ebaaed3f87f28098a098f8/seislib-0.6.24.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-15 04:45:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fmagrini",
    "github_project": "seislib",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "seislib"
}
        
Elapsed time: 0.23823s