smooth_positions¶
- sofia_redux.scan.integration.integration_numba_functions.smooth_positions(coordinates, bin_size, fill_value=nan)[source]¶
Smooth (x, y) coordinates with a box kernel of given size.
- Parameters:
- coordinatesnumpy.ndarray (float)
The (x, y) coordinates of shape (2, n).
- bin_sizeint
The size of the smoothing kernel.
- fill_valuefloat, optional
The value with which to fill in the instance that there are insufficient points to determine a smoothed value.
- Returns:
- smoothednumpy.ndarray (float)
The smoothed (x, y) coordinates.