Displacement-strain-planet


NameDisplacement-strain-planet JSON
Version 0.5.0 PyPI version JSON
download
home_pagehttps://github.com/AB-Ares/Displacement_strain_planet
SummaryPlanetary crustal thickness, displacement, stress and strain calculations in spherical harmonics.
upload_time2024-01-22 16:09:05
maintainer
docs_urlNone
authorAdrien Broquet
requires_python>=3.7
license
keywords stress strain flexure elastic thickness crust gravity geophysics mars planetary sciences
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4916799.svg)](http://doi.org/10.5281/zenodo.4916799)

# DSP: Displacement_strain_planet

Planetary gravity, crustal thickness, displacement, stress, and strain calculations in spherical harmonics.

## Description

**Displacement_strain_planet** (**DSP**) provides several functions and example scripts for generating, among others, gravity, crustal thickness, displacement, lateral density variations, stress, and strain maps on a planet given a set of input constraints such as from observed gravity and topography data.

These functions solve the system of equations introduced in [Banerdt (1986)](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/JB091iB01p00403) under different assumptions. Various improvements have been made to the model including the possibility to account for finite-amplitude correction and filtering [(Wieczorek & Phillips, 1998)](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/97JE03136), lateral density variations at any arbitrary depth and within the surface, flexure, or moho reliefs [(Wieczorek et al., 2013)](https://science.sciencemag.org/content/early/2012/12/04/science.1231530?versioned=true), and density difference between the surface topography and crust [(Broquet & Wieczorek, 2019)](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/2019JE005959), or the addition of equations and constraints [(Broquet & Andrews-Hanna, 2024)](https://doi.org/10.1016/j.icarus.2023.115846).

## Documentation

The full documentation can be found at https://ab-ares.github.io/Displacement_strain_planet/.

## Dependencies

Some of these functions rely heavily on the [pyshtools](https://shtools.github.io/SHTOOLS/) package of [Wieczorek & Meschede (2018)](https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2018GC007529) that is used to perform the spherical harmonic transforms, Legendre polynomial expansions, and finite-amplitude calculations.

## Contribute

This code is still under development. If you find any bugs or errors in the code, please report them in GitHub or to adrienbroquet at arizona.edu.

For this code, we work on the develop branch and merge it to the main branch (with a new version number) everytime significant addtions/improvements are made. If you plan on making contributions, please base everything on the develop branch.

## Benchmarks

Moho-relief calculations have been benchmarked to the [ctplanet](https://github.com/MarkWieczorek/ctplanet) package of Mark Wieczorek.  
Displacement calculations have been benchmarked to the analytical model of [Broquet & Wieczorek (2019)](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/2019JE005959).  
Strain calculations reproduce results published in the literature (e.g., [Banerdt & Golombek 2000](https://www.lpi.usra.edu/meetings/lpsc2000/pdf/2038.pdf)). 

## Methods
`Thin_shell_matrix` Solve the [Banerdt (1986)](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/JB091iB01p00403) system of 5 equations under the mass-sheet approximation and assuming that, if any, internal density variations are contained within a spherical shell. The system links 8 parameters expressed in spherical harmonics: the topography, geoid at the surface, geoid at the moho depth, net acting load on the lithosphere, tangential load potential, flexure of the lithosphere, crustal root variations, and internal density variations. Minor corrections have been made in the geoid equations, and to the elastic shell transfer functions following [Beuthe (2008)](https://onlinelibrary.wiley.com/doi/full/10.1111/j.1365-246X.2007.03671.x).

`Thin_shell_matrix_nmax` Solve the [Banerdt (1986)](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/JB091iB01p00403) system of 5 equations with finite-amplitude correction and accounting, if needed, for the presence of density variations within the surface or moho reliefs.

`DownContFilter` Compute the downward minimum-amplitude or -curvature filter of [Wieczorek & Phillips (1998)](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/97JE03136).

`corr_nmax_drho` Calculate the difference in gravitational potential exterior to relief referenced to a spherical interface (with or without laterally varying density) between the mass-sheet case and when using the finite-amplitude algorithm of [Wieczorek & Phillips (1998)](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/97JE03136).

`SH_deriv` Compute on the fly first and second-order spherical harmonic derivatives with respect to colatitude and longitude.

`SH_deriv_store` Compute and store first and second-order spherical harmonic derivatives with respect to colatitude and longitude.

`Displacement_strains_shtools` Calculate the [Banerdt (1986)](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/JB091iB01p00403) equations to determine strains and stresses from displacements with some corrections following [Beuthe (2008)](https://onlinelibrary.wiley.com/doi/full/10.1111/j.1365-246X.2007.03671.x). Spherical harmonic derivates are estimated using shtools.

`Displacement_strains` Calculate the [Banerdt (1986)](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/JB091iB01p00403) equations to determine strains and stresses from displacements with some corrections following [Beuthe (2008)](https://onlinelibrary.wiley.com/doi/full/10.1111/j.1365-246X.2007.03671.x). Spherical harmonic derivates are computed using `SH_deriv_store`. This deprecated method is slow and we recommend using `Displacement_strains_shtools`.

`Principal_strainstress_angle` Calculate principal strains, stresses and their principal angles.

`Strainstress_from_principal` Calculate strains or stresses, from their principal values.

`Plt_tecto_Mars` Plot the [Knampeyer et al. (2006)](https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2006JE002708) dataset of extensional and compressional tectonic features on Mars.

## Example scripts
`Run_demo`  [<img src="misc/link1.svg" width="20">](https://ab-ares.github.io/Displacement_strain_planet/notebooks/Run_demo.html) A jupyter notebook that contains example scripts to determine flexure, moho-relief, and strains on Mars under different assumptions, including Airy and Pratt isostasy, or due to the sole presence of a mantle plume.

`Mars_crust_displacement` A script that demonstrates how to calculate the moho-relief and strains on Mars, as a function of the mean planetary crustal thickness and elastic thickness. The contributions from crustal root variations and displacement are shown assuming an elastic thickness of the lithosphere. We make use of the inferred displacement to predict the principal horizontal strains and principal angle, which are compared to extensional tectonic features mapped by [Knampeyer et al. (2006)](https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2006JE002708). 

`Mars_SouthPolarCap_displacement` A script that demonstrates how to calculate iteratively the flexure underneath the south polar cap of Mars as a function of elastic thickness and ice density. This computation is similar to that done in e.g., Broquet et al. (2021), accepted in JGR:Planets. 

`Venus_crust_displacement` A script that demonstrates how to calculate the moho-relief and strains on Venus, as a function of the mean planetary crustal thickness and elastic thickness. 

## How to install and run Displacement_strain_planet
If you would like to modify the source code, download the Displacement_strain_planet repository and install using pip (or pip3 depending on your installation).
```bash
    git clone https://github.com/AB-Ares/Displacement_strain_planet.git
    cd Displacement_strain_planet/
    pip install .
```
Alternatively, you can install Displacement-strain-planet via pip
```bash
   pip install Displacement-strain-planet
```

## To run the example scripts
```bash
    cd examples
    jupyter notebook Run_demo.ipynb
    python Mars_crust_displacement.py
```

## Author
[Adrien Broquet](https://www.lpl.arizona.edu/postdocs/adrien-broquet) (adrienbroquet@arizona.edu)

## Cite
You can cite the latest release of the package as:
Adrien Broquet. (2024). Displacement_strain_planet: 0.5.0 (Version 0.5.0). Zenodo. http://doi.org/10.5281/zenodo.4916799

```bash
@misc{Broquet2024,
    author = {Broquet, A.},
    title = {{Displacement{\_}strain{\_}planet}: Version 0.5.0},
    url = {https://github.com/AB-Ares/Displacement_strain_planet},
    doi = {10.5281/zenodo.4916799},
    year = {2024}}
```

## Acknowledgments
I would like to thank the SHTools developers for putting together their great open-source code, and Mark Wieczorek, Jeff Andrews-Hanna, and Antony Trinh for stimulating discussion. 


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/AB-Ares/Displacement_strain_planet",
    "name": "Displacement-strain-planet",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "stress,strain,flexure,elastic thickness,crust,gravity,geophysics,Mars,planetary sciences",
    "author": "Adrien Broquet",
    "author_email": "adrienbroquet@arizona.edu",
    "download_url": "https://files.pythonhosted.org/packages/81/47/2b2fc480bbbf97968d05247d8c014356d99176363ab6252bb488a2d2573d/Displacement_strain_planet-0.5.0.tar.gz",
    "platform": null,
    "description": "[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4916799.svg)](http://doi.org/10.5281/zenodo.4916799)\n\n# DSP: Displacement_strain_planet\n\nPlanetary gravity, crustal thickness, displacement, stress, and strain calculations in spherical harmonics.\n\n## Description\n\n**Displacement_strain_planet** (**DSP**) provides several functions and example scripts for generating, among others, gravity, crustal thickness, displacement, lateral density variations, stress, and strain maps on a planet given a set of input constraints such as from observed gravity and topography data.\n\nThese functions solve the system of equations introduced in [Banerdt (1986)](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/JB091iB01p00403) under different assumptions. Various improvements have been made to the model including the possibility to account for finite-amplitude correction and filtering [(Wieczorek & Phillips, 1998)](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/97JE03136), lateral density variations at any arbitrary depth and within the surface, flexure, or moho reliefs [(Wieczorek et al., 2013)](https://science.sciencemag.org/content/early/2012/12/04/science.1231530?versioned=true), and density difference between the surface topography and crust [(Broquet & Wieczorek, 2019)](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/2019JE005959), or the addition of equations and constraints [(Broquet & Andrews-Hanna, 2024)](https://doi.org/10.1016/j.icarus.2023.115846).\n\n## Documentation\n\nThe full documentation can be found at https://ab-ares.github.io/Displacement_strain_planet/.\n\n## Dependencies\n\nSome of these functions rely heavily on the [pyshtools](https://shtools.github.io/SHTOOLS/) package of [Wieczorek & Meschede (2018)](https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2018GC007529) that is used to perform the spherical harmonic transforms, Legendre polynomial expansions, and finite-amplitude calculations.\n\n## Contribute\n\nThis code is still under development. If you find any bugs or errors in the code, please report them in GitHub or to adrienbroquet at arizona.edu.\n\nFor this code, we work on the develop branch and merge it to the main branch (with a new version number) everytime significant addtions/improvements are made. If you plan on making contributions, please base everything on the develop branch.\n\n## Benchmarks\n\nMoho-relief calculations have been benchmarked to the [ctplanet](https://github.com/MarkWieczorek/ctplanet) package of Mark Wieczorek.  \nDisplacement calculations have been benchmarked to the analytical model of [Broquet & Wieczorek (2019)](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/2019JE005959).  \nStrain calculations reproduce results published in the literature (e.g., [Banerdt & Golombek 2000](https://www.lpi.usra.edu/meetings/lpsc2000/pdf/2038.pdf)). \n\n## Methods\n`Thin_shell_matrix` Solve the [Banerdt (1986)](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/JB091iB01p00403) system of 5 equations under the mass-sheet approximation and assuming that, if any, internal density variations are contained within a spherical shell. The system links 8 parameters expressed in spherical harmonics: the topography, geoid at the surface, geoid at the moho depth, net acting load on the lithosphere, tangential load potential, flexure of the lithosphere, crustal root variations, and internal density variations. Minor corrections have been made in the geoid equations, and to the elastic shell transfer functions following [Beuthe (2008)](https://onlinelibrary.wiley.com/doi/full/10.1111/j.1365-246X.2007.03671.x).\n\n`Thin_shell_matrix_nmax` Solve the [Banerdt (1986)](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/JB091iB01p00403) system of 5 equations with finite-amplitude correction and accounting, if needed, for the presence of density variations within the surface or moho reliefs.\n\n`DownContFilter` Compute the downward minimum-amplitude or -curvature filter of [Wieczorek & Phillips (1998)](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/97JE03136).\n\n`corr_nmax_drho` Calculate the difference in gravitational potential exterior to relief referenced to a spherical interface (with or without laterally varying density) between the mass-sheet case and when using the finite-amplitude algorithm of [Wieczorek & Phillips (1998)](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/97JE03136).\n\n`SH_deriv` Compute on the fly first and second-order spherical harmonic derivatives with respect to colatitude and longitude.\n\n`SH_deriv_store` Compute and store first and second-order spherical harmonic derivatives with respect to colatitude and longitude.\n\n`Displacement_strains_shtools` Calculate the [Banerdt (1986)](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/JB091iB01p00403) equations to determine strains and stresses from displacements with some corrections following [Beuthe (2008)](https://onlinelibrary.wiley.com/doi/full/10.1111/j.1365-246X.2007.03671.x). Spherical harmonic derivates are estimated using shtools.\n\n`Displacement_strains` Calculate the [Banerdt (1986)](https://agupubs.onlinelibrary.wiley.com/doi/abs/10.1029/JB091iB01p00403) equations to determine strains and stresses from displacements with some corrections following [Beuthe (2008)](https://onlinelibrary.wiley.com/doi/full/10.1111/j.1365-246X.2007.03671.x). Spherical harmonic derivates are computed using `SH_deriv_store`. This deprecated method is slow and we recommend using `Displacement_strains_shtools`.\n\n`Principal_strainstress_angle` Calculate principal strains, stresses and their principal angles.\n\n`Strainstress_from_principal` Calculate strains or stresses, from their principal values.\n\n`Plt_tecto_Mars` Plot the [Knampeyer et al. (2006)](https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2006JE002708) dataset of extensional and compressional tectonic features on Mars.\n\n## Example scripts\n`Run_demo`  [<img src=\"misc/link1.svg\" width=\"20\">](https://ab-ares.github.io/Displacement_strain_planet/notebooks/Run_demo.html) A jupyter notebook that contains example scripts to determine flexure, moho-relief, and strains on Mars under different assumptions, including Airy and Pratt isostasy, or due to the sole presence of a mantle plume.\n\n`Mars_crust_displacement` A script that demonstrates how to calculate the moho-relief and strains on Mars, as a function of the mean planetary crustal thickness and elastic thickness. The contributions from crustal root variations and displacement are shown assuming an elastic thickness of the lithosphere. We make use of the inferred displacement to predict the principal horizontal strains and principal angle, which are compared to extensional tectonic features mapped by [Knampeyer et al. (2006)](https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2006JE002708). \n\n`Mars_SouthPolarCap_displacement` A script that demonstrates how to calculate iteratively the flexure underneath the south polar cap of Mars as a function of elastic thickness and ice density. This computation is similar to that done in e.g., Broquet et al. (2021), accepted in JGR:Planets. \n\n`Venus_crust_displacement` A script that demonstrates how to calculate the moho-relief and strains on Venus, as a function of the mean planetary crustal thickness and elastic thickness. \n\n## How to install and run Displacement_strain_planet\nIf you would like to modify the source code, download the Displacement_strain_planet repository and install using pip (or pip3 depending on your installation).\n```bash\n    git clone https://github.com/AB-Ares/Displacement_strain_planet.git\n    cd Displacement_strain_planet/\n    pip install .\n```\nAlternatively, you can install Displacement-strain-planet via pip\n```bash\n   pip install Displacement-strain-planet\n```\n\n## To run the example scripts\n```bash\n    cd examples\n    jupyter notebook Run_demo.ipynb\n    python Mars_crust_displacement.py\n```\n\n## Author\n[Adrien Broquet](https://www.lpl.arizona.edu/postdocs/adrien-broquet) (adrienbroquet@arizona.edu)\n\n## Cite\nYou can cite the latest release of the package as:\nAdrien Broquet. (2024). Displacement_strain_planet: 0.5.0 (Version 0.5.0). Zenodo. http://doi.org/10.5281/zenodo.4916799\n\n```bash\n@misc{Broquet2024,\n    author = {Broquet, A.},\n    title = {{Displacement{\\_}strain{\\_}planet}: Version 0.5.0},\n    url = {https://github.com/AB-Ares/Displacement_strain_planet},\n    doi = {10.5281/zenodo.4916799},\n    year = {2024}}\n```\n\n## Acknowledgments\nI would like to thank the SHTools developers for putting together their great open-source code, and Mark Wieczorek, Jeff Andrews-Hanna, and Antony Trinh for stimulating discussion. \n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Planetary crustal thickness, displacement, stress and strain calculations in spherical harmonics.",
    "version": "0.5.0",
    "project_urls": {
        "Homepage": "https://github.com/AB-Ares/Displacement_strain_planet"
    },
    "split_keywords": [
        "stress",
        "strain",
        "flexure",
        "elastic thickness",
        "crust",
        "gravity",
        "geophysics",
        "mars",
        "planetary sciences"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "06b88383fa6da6d2f677fb4bd856392c50012118fde22e8a965322e11c755ece",
                "md5": "252c62a10054bfdef295d57d7e82773c",
                "sha256": "792c92ddea7289798bcc0859de2df2d3181fd6313ecb5ccdc4b01913318962c3"
            },
            "downloads": -1,
            "filename": "Displacement_strain_planet-0.5.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "252c62a10054bfdef295d57d7e82773c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 43591,
            "upload_time": "2024-01-22T16:09:00",
            "upload_time_iso_8601": "2024-01-22T16:09:00.976529Z",
            "url": "https://files.pythonhosted.org/packages/06/b8/8383fa6da6d2f677fb4bd856392c50012118fde22e8a965322e11c755ece/Displacement_strain_planet-0.5.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "81472b2fc480bbbf97968d05247d8c014356d99176363ab6252bb488a2d2573d",
                "md5": "83312d5c26d09e267d7ac7e58801883c",
                "sha256": "c84cd302b7315037d3b7f07bc0435deb4849a68c3faf34a9b1bb6c8d8e08e6b1"
            },
            "downloads": -1,
            "filename": "Displacement_strain_planet-0.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "83312d5c26d09e267d7ac7e58801883c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 45242,
            "upload_time": "2024-01-22T16:09:05",
            "upload_time_iso_8601": "2024-01-22T16:09:05.954219Z",
            "url": "https://files.pythonhosted.org/packages/81/47/2b2fc480bbbf97968d05247d8c014356d99176363ab6252bb488a2d2573d/Displacement_strain_planet-0.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-22 16:09:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "AB-Ares",
    "github_project": "Displacement_strain_planet",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "displacement-strain-planet"
}
        
Elapsed time: 0.17521s