fracspy.location.utils.moveout_correction#

fracspy.location.utils.moveout_correction(data, itshifts)[source]#

Moveout correction for microseismic data.

This function applies a moveout correction to microseismic data by shifting each sample in time according to its corresponding time index shift value.

Parameters:
datanumpy.ndarray

Input seismic data [nr, nt]

itshiftsnumpy.ndarray

Array of time index shift values [nr]

Returns:
data_correctednumpy.ndarray

Microseismic data with corrected moveout [nr, nt]

Notes

The function checks that the length of itshifts matches the number of rows in data. The input itshifts array is converted to integer. Shifting is done towards the beginning of time for positive itshifts values and in the opposite direction for negative.

Examples

>>> # Assuming you have a 2D array "data" with shape (nr, nt) and an array "itshifts" with shape (nr,):
>>> corrected_data = moveout_correction(data, itshifts)
>>> # To make reverse correction, apply the negative "itshifts":
>>> data_restored = moveout_correction(corrected_data, -itshifts)