Git Product home page Git Product logo

pysw4's Introduction

                     ______       ____ __
        ____  __  __/ ___/ |     / / // /
       / __ \/ / / /\__ \| | /| / / // /_
      / /_/ / /_/ /___/ /| |/ |/ /__  __/
     / .___/\__, //____/ |__/|__/  /_/
    /_/    /____/

pySW4: Python routines for interaction with SW4

pySW4 is an open-source project dedicated to provide a Python framework for working with numerical simulations of seismic-wave propagation with SW4 in all phases of the task. Preprocessing, post-processing and runtime visualization. It also provides several other tools for handling GeoTIFF files such as ASTER-GDEM tiles and others, plotting shaded-relief DEM maps and draping data over them, creating movies from image sequences, etc.

The functionality is provided through 5 sub-packages which include pre- and post-processing routines including the rfileIO library for interaction, reading and writing seismic models in the rfile format.

There are some useful utilities for geodesic projections of data and for reading and writing GeoTIFF files.

In the command line interface scripts, there are some quick and dirty plotting routines which can be run from the command line. It may be useful to run these scripts on the server-end while the computation is running in order to generate pseudo-RunTime visualization of the results.

See the full API documentation page and Tutorial examples.

Installation

conda

Installing pySW4 from the conda-forge channel can be achieved by adding conda-forge to your channels with:

$ conda config --add channels conda-forge

Once the conda-forge channel has been enabled, pySW4 can be installed with:

$ conda install pysw4

It is possible to list all of the versions of pySW4 available on your platform with:

$ conda search pysw4 --channel conda-forge

pip

You can install the repository directly from GitHub. Use this command to install from master:

$ pip install https://github.com/shaharkadmiel/pySW4/archive/master.zip

To get the latest release version do::

$ pip install https://github.com/shaharkadmiel/pySW4/archive/v0.3.0.zip

Add the --no-deps to forgo dependency upgrade ot downgrade.

Quick and dirty plotting from the command line

Plots and movies for a SW4 simulation run can be created using the pySW4-create-plots command line utility, e.g.:

$ pySW4-create-plots -c /tmp/UH_01_simplemost.in -s UH1 -s UH2 -s UH3 \\
    --pre-filt 0.05,0.1,100,200 --filter type=lowpass,freq=10,corners=4 \\
    ~/data/stations/stationxml/*UH* ~/data/waveforms/*20100622214704*

Wavefield PGV map Seismograms

pysw4's People

Contributors

krischer avatar megies avatar omrivolk avatar shaharkadmiel 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.