polyTEM.crystal_peaks.flow_fields.smooth¶
- polyTEM.crystal_peaks.flow_fields.smooth(array, smoothing_length)¶
Smooth a 2D array along axis 1 using a moving average. This function assumes that the edges of the array terminate, as opposed to looping around like for an angular value.
- Inputs:
array: 2d array to be smoothed along axis 1 smoothing_length: number of points to average.
- Outputs:
smoothed_array: array with the same shape as the original, after applying the moving average