RICKER
The Ricker wavelet is a real-valued wavelet modeled as the negative second derivative of a Gaussian function.
It is commonly used in seismic and geophysical applications, as well as in edge detection in image processing.
Excel Usage
=RICKER(points, a_width)
points(int, required): Number of points in the vector.a_width(float, required): Width parameter of the wavelet.
Returns (list[list]): A 1D array (as a row) of the Ricker wavelet.
Example 1: Basic Ricker
Inputs:
| points | a_width |
|---|---|
| 24 | 4 |
Excel formula:
=RICKER(24, 4)
Expected output:
| Result | |||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| -0.0505321 | -0.0814766 | -0.119917 | -0.159441 | -0.1881 | -0.190001 | -0.150073 | -0.0611778 | 0.0693122 | 0.217377 | 0.347375 | 0.423565 | 0.423565 | 0.347375 | 0.217377 | 0.0693122 | -0.0611778 | -0.150073 | -0.190001 | -0.1881 | -0.159441 | -0.119917 | -0.0814766 | -0.0505321 |
Python Code
Show Code
import numpy as np
from scipy.signal import ricker as scipy_ricker
def ricker(points, a_width):
"""
Return a Ricker wavelet (Mexican hat wavelet).
See: https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.ricker.html
This example function is provided as-is without any representation of accuracy.
Args:
points (int): Number of points in the vector.
a_width (float): Width parameter of the wavelet.
Returns:
list[list]: A 1D array (as a row) of the Ricker wavelet.
"""
try:
result = scipy_ricker(int(points), float(a_width))
return [result.tolist()]
except Exception as e:
return f"Error: {str(e)}"Online Calculator
Number of points in the vector.
Width parameter of the wavelet.