Coder Social home page Coder Social logo

py_admittance's Introduction

Code style: black DOI

Py_Admittance

Admittance calculations for geophysics and gravity analyses.

Description

Py_Admittance provides functions and example scripts for calculating global/localized admittances of gravity and topography. These can be used to invert for parameters such as the elastic thickness of the lithosphere and density of the crust and surface.

The provided admittance model is from Broquet & Wieczorek (2019).

Documentation

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

Dependencies

Some functions rely heavily on the pyshtools package of Wieczorek & Meschede (2018) that is used to perform the spherical harmonic transforms, spatio-spectral localization, and finite-amplitude calculations.

An example script shows how one can use my DSP (Displacement_strain_planet) package to compute theoretical admittances. This package can be used to add more complexity to the load model (see this notebook) when compared to the simple transfer function described in Py_Admittance. DSP also considers tangential loads.

Methods

ForwardGravity Compute the theoretical gravity field given a set of input parameters.

TransferTGz Compute theoretical transfer functions for calculating the theoretical admittance and correlation given a set of input parameters.

LocalAdmitCorr Compute the localized admittance of two functions.

GlobalAdmitCorr Compute the global admittance of two functions.

Example scripts

Mars_AdmitGlob A script to compute the global theoretical and observed admittance and correlation on Mars given a set of input parameters. The theoretical admittance is computed following Broquet & Wieczorek (2019).

Mars_AdmitLoc A script to compute the localized theoretical and observed admittance and correlation on Mars given a set of input parameters. The theoretical admittance is computed following Broquet & Wieczorek (2019) and localized to Olympus Mons.

Mars_DSPGlob A script to compute the global theoretical and observed admittance and correlation on Mars given a set of input parameters. The theoretical admittance is computed using the DSP (Displacement_strain_planet) package (see Broquet & Andrews-Hanna, 2023).

Mars_DSPLoc A script to compute the localized theoretical and observed admittance and correlation on Mars given a set of input parameters. The theoretical admittance is computed using the DSP (Displacement_strain_planet) package (see Broquet & Andrews-Hanna, 2023) and localized to Olympus Mons.

How to install and run Py_Admittance

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).

    git clone https://github.com/AB-Ares/Py_Admittance.git
    cd Py_Admittance/
    pip install .

To run the example scripts

    cd examples
    python Mars_AdmitLoc.py 
    python Mars_DSPLoc.py 

Author

Adrien Broquet ([email protected])

Cite

You can cite the latest release of the package as: Adrien Broquet. AB-Ares/Py_Admittance: 0.1.0 (Version 0.1.0). Zenodo. http://doi.org/10.5281/zenodo.10925820

py_admittance's People

Contributors

ab-ares avatar

Stargazers

Changwan Sun avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.