Code Monkey home page Code Monkey logo

sactools's Introduction

SACTOOLS
#------------------------------------------------------------------------------------#
This is a group of stand-alone tools that act on Seismic Analysis Code (SAC)
formatted files.  This group of tools deals with conversion of SAC files back and
forth between SAC and ASCII files, retrieving header information from SAC files
on the command line, and same basic tasks such as stacking files.

In this README I provide a *very* brief description of the utilities included 
in this repository.  For more details on the use of these utilities see the 
examples in the './examples' directory. The examples directory includes a few
SAC formatted files and some C-shell scripts that can be used to test that the
programs are working.

Author:  Michael Thorne ([email protected])
#------------------------------------------------------------------------------------#


# Fortran codes currently included in the repository:
#------------------------------------------------------------------------------------#
1) addnoise (addnoise.f90) - add colored noise to SAC files.

2) amp2sac (amp2sac.f90) - takes a column of amplitude values in ASCII and converts
                           these to SAC format.

3) mavg (mavg.f90) - computes a n-point moving average on a SAC file.

4) prem (prem.f90) - returns values from the PREM model.

5) radiussort (radiussort.f90) - search for SAC files within a specifice radius of a specified lat, lon.

6) rmserror (rmserror.f90 ) - compute RMS error between data and synthetic.

7) sac2xy (sac2xy.f90) - converts a SAC file into an x,y table of time and amplitude.

8) sac2xyfill (sac2xyfill.f90) - same as sac2xy but fills in the positive amplitudes.

9) sachead (sachead.f90) - return the value of a SAC header variable.

10) sacmax (sacmax.f90)    - finds maximum/minimum amplitudes (and corresponding times) within a set
                            time window in a SAC file.

11) sacpeaks (sacpeaks.f90) - finds maxima/minima (tunable) in a SAC file.

12) sacsnr (sacsnr.f90) - compute estimate of signal to noise ratio in SAC file.

13) sacunused (sacunused.f90) - sets 'unused' header variables in SAC files.

14) stacksac (stacksac.f90) - linearly stack some SAC files.

15) stacksacgc (stacksacgc.f90) - takes a group of SAC files and stacks them in 
                                   epicentral distance bins.

16) stacksacaz (stacksacaz.f90) - Stack a group of SAC files in azimuth bins.

17) stalta (stalta.f90) - computes STA/LTA of a SAC file.

18) varstack (varstack.f90) - Stack SAC files using the variance of the noise as weights.

19) xy2sac (xy2sac.f90) - convert an x,y table of time and amplitude values into a SAC
                          file.

# Modules included in the repository
#------------------------------------------------------------------------------------#
1) mod_sac_io.f90 - authored by Nicholas Schmerr. Fortran module for reading/
                    writing SAC files

2) getprem_mod.f90 - module for calculating PREM values.


# C-Shell utilities included
#------------------------------------------------------------------------------------#
1) statmap - quick and dirty event/station plotting.  For when you just want to see
             where the events and stations for data in the cwd are located.

sactools's People

Contributors

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