How to plot ricker curve using SciPy – Python?
A Ricker wavelet is a wave-like oscillation with an amplitude that begins at 0, increases, and then decreases back to 0. A Ricker wavelet, also known as the “Mexican hat wavelet”.
In this article, we will plot the ricker curve that makes them useful for signal processing. It is the negative normalized second derivative of a Gaussian function.
Syntax: scipy.signal.ricker(points, a)
- points: A number of points in vector. Will be centered around 0.
- a: Width parameter of the wavelet.
Returns: An array of length points in the shape of a ricker curve.
- Import required modules.
- Create an array to plot the shape of a ricker curve.
- Move an axis at the center.
- Show Graph.
Example 1: Plotting Ricker curve.
Example 2: Plotting Inverse Ricker curve.