Testing Python Syntax Highlighter.
Here is an example of a Ricker Wavelet function.
CODE:
__author__ = 'Anthony Torlucci' __version__ = '0.0.1' # REFERENCE: http://wiki.seg.org/wiki/Dictionary:Ricker_wavelet from numpy import pi, exp def segRicker(f, t): ''' Simple Ricker Wavelet :param f: frequency (float) :param t: time (1D numpy array) :return: ricker wavelet, length = len(t) ''' r = (1 - 2*pi**2 * f**2 * t**2) * exp(-pi**2 * f**2 * t**2) return r
Useful Links:
No comments:
Post a Comment