Feb28_SG_preprocessing

0. Remove impossible values

1. Smooth trace

(Hanning window)

2. Calculate velocity

(1st derivative between time-points)

4. Interpolate

(First cubic spline, use linear interpolation over long blinks)

5. Repeat steps 3 and 4

(See how many times it takes until no more blinks are found)