Code Monkey home page Code Monkey logo

psraytrace's Introduction

psraytrace

Raytracing algorithm for one-way travel-time calculation in passive seismic or microseismic applications. Written in Python3.

  • shooting( ) - the core function of raytracing algorithm, actually a 2d algorithm
  • psraytrace( ) - the core function to call shooting function and adapt it to 3D case. Unlike calculating two-way travel-time in reflection seismic raytracing program, only one-way travel-time for transmimitted P- or S-waves is calculated. You may modify this code to calculate the PS wave travel-time.

Usage

psraytrace can be used as a module by simply importing the core function contained in folder [psmodules].

You may refer to the two examples with demo data, i.e. example2d.py and example3d.py included in folder [examples] for how to use the core function and may adapt to your case by modifying these examples.

To run this program from source codes, you need to import the following dependencies:

  • Matplotlib
  • Pandas

By runing the main.py script, you would have the following images displayed.
2D raytracing example
2D Example
3D raytracing example
3D Example

Showcase

Below is the psraytrace based raytracing animation generated by RayTracer, a module from the in-house DeepListen software.
RayTracer Animation

License

MIT License.

Authorship

psraytrace was written in 2016. The sole contributor is Zhengguang Zhao, who now works for DeepListen on part-time basis.

psraytrace's People

Contributors

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