MSNoise Logo
master
  • Installation
  • Project Initialization
  • Workflow: Cross-Correlation Functions
  • Workflow: Relative Velocity Variations
  • Workflow: Power Spectral Densities
  • How To’s - Recipes
  • Interaction Examples & Gallery
    • Plot a Reference CCF
    • Plot an interferogram
    • Compute the H/V spectral ratio from the ratios of PSDs
    • Compute the H/V spectral ratio from the imaginary part of the CCFs
  • MSNoise API
  • Core Functions
  • Extending MSNoise with Plugins
  • Help on the msnoise commands
  • Table Definitions
  • About Databases and Performances
  • References
  • Contributors
  • Release Notes
MSNoise
  • Interaction Examples & Gallery
  • View page source

Interaction Examples & Gallery

The following examples are meant to show you how to interact with MSNoise using its API, thus avoiding having to dive into the folder structure.

Users should try examples while checking the MSNoise API (application programming interface) for understanding the calls to different functions.

In a nutshell, all examples start with the following Python code:

from msnoise.api import db
db = connect()

This, if run in an MSNoise project folder (= a folder where you have already run msnoise db init (as explained in Project Initialization)), will provide a Session object, connected to the database.

Plot a Reference CCF

Plot a Reference CCF

Plot an interferogram

Plot an interferogram

Compute the H/V spectral ratio from the ratios of PSDs

Compute the H/V spectral ratio from the ratios of PSDs

Compute the H/V spectral ratio from the imaginary part of the CCFs

Compute the H/V spectral ratio from the imaginary part of the CCFs

Download all examples in Python source code: auto_examples_python.zip

Download all examples in Jupyter notebooks: auto_examples_jupyter.zip

Gallery generated by Sphinx-Gallery

Previous Next

© Copyright 2024, Lecocq, T. & the MSNoise devs. Last updated on 2024-11-25 11:19.

Built with Sphinx using a theme provided by Read the Docs.