Skip to main content

Compute seismic sources of ambient noise using wave model hindcast outputs.

Project description

WMSAN Python Package

Description

This package is built to help computation of seismic ambient noise source maps and other products based on the WAVEWATCHIII hindcast output.

Contents

ww3-source-maps/
|-- LICENSE
|-- pyproject.toml
|-- README.md
|-- src/
│   └── wmsan/
│       ├── readWW31.py
│       ├── read_hs_p2l.py
│       ├── subfunctions_body_waves.py
│       ├── subfunctions_rayleigh_waves.py
│       └── synthetics.py
│       └── wmsan_to_noisi.py
│       └── temporal_variation.py
│       └── synthetic_CCF.ipynb
│
|-- notebooks/
|   └── body_waves/
│       ├── amplification_coeff.ipynb
│       └── microseismic_sources.ipynb 
│   └── rayleigh_waves/
│       ├── amplification_coeff.ipynb
│       ├── microseismic_sources.ipynb
│       ├── spectrograms.ipynb
│       ├── rayleigh_source.ipynb
│       └── synthetic_CCF.ipynb
│       └── wmsan_to_noisi.ipynb
│       └── temporal_variations.ipynb
|-- data/
│   ├── C.nc
│   ├── cP.nc
│   ├── cS.nc
│   ├── longuet_higgins.txt
│   ├── stations_pair.txt
│   └── ww3.07121700.dpt
  • src/ : contains all Python scripts and subfunctions.
  • notebooks/ : contains Jupyter Notebooks with detailed examples on how to use this package. Rayleigh waves and body waves are separated.
  • data/ contains additional files used in computation.

Installation

PyPI

The package is available on PyPI.

  • Create an environment and install

    • if you use Conda environments:

        conda create --name wmsan 
        conda activate wmsan
        conda install pip
        python3 -m pip install wmsan
      

      to deactivate your environment:

        conda deactivate
      
    • otherwise

        python3 -m venv venv
        source venv/bin/activate
        python3 -m pip install wmsan
      

      to deactivate your environment:

        deactivate
      

From Source

  1. Clone the repository
cd path_to_your_wmsan_directory/
git clone https://gricad-gitlab.univ-grenoble-alpes.fr/tomasetl/ww3-source-maps.git 
cd ww3-source-maps/
  1. Create an environment and install
  • if you use Conda environments:
conda create --name wmsan 
conda activate wmsan
conda install pip
pip install .

to deactivate your environment:

conda deactivate
  • otherwise
python3 -m venv venv
source venv/bin/activate
python3 -m pip install .

to deactivate your environment:

deactivate

Dependencies

Documentation

Documentation still under construction. Please refer to the Jupyter Notebooks for details on theory and how to use this repo.

Where should I start ?

Table representing the differrent paths to Jupyter Notebooks examples and where to find what you wish to compute.

Architecture of WMSAN Python Package

Scheme showing the different codes and Notebooks present in this repository and how they connect.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wmsan-2024.0.2.tar.gz (32.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wmsan-2024.0.2-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

Details for the file wmsan-2024.0.2.tar.gz.

File metadata

  • Download URL: wmsan-2024.0.2.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for wmsan-2024.0.2.tar.gz
Algorithm Hash digest
SHA256 f60ed5e598eb2707201cac676ea6955ca7cb81964c3869251923b2ec3905dca5
MD5 0ce7998b9d81df83fb1d2439acc8fc10
BLAKE2b-256 ca9a224f98fad8f9c2104bb52d80ca5f1da1265b1e45fd070b5649349455405c

See more details on using hashes here.

File details

Details for the file wmsan-2024.0.2-py3-none-any.whl.

File metadata

  • Download URL: wmsan-2024.0.2-py3-none-any.whl
  • Upload date:
  • Size: 36.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for wmsan-2024.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a22e895ed9cee9a768c41e4f2d849443db9bbe780f3adacfb69be9624223181d
MD5 219e986326d8184d7c16b7243a570393
BLAKE2b-256 b39912672bfd9eeb9f0df8d55ab25b6de7cb26e3f5d73d2edd3f2c30ea6899f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page