pynrc.reduce.ref_pixels.smooth_fft¶
- pynrc.reduce.ref_pixels.smooth_fft(data, delt, first_deriv=False, second_deriv=False)[source]¶
Optimal smoothing algorithm
Smoothing algorithm to perform optimal filtering of the vertical reference pixel to reduce 1/f noise (horizontal stripes), based on the Kosarev & Pantos algorithm. This assumes that the data to be filtered/smoothed has been sampled evenly.
If first_deriv is set, then returns two results if second_deriv is set, then returns three results.
Adapted from M. Robberto IDL code: http://www.stsci.edu/~robberto/Main/Software/IDL4pipeline/
- Parameters
data (ndarray) – Signal to be filtered.
delt (float) – Delta time between samples.
first_deriv (bool) – Return the first derivative.
second_deriv (bool) – Return the second derivative (along with first).