Signal processing, how to patch over a drop in data signal

Hello there,
could anybody please help me solve my problem I encountered?
I have a recording of a signal with some well defined drops.

I would like to bridge these drops using a simple line anchored at the manually selected endpoints as shown below.

bridge point 1

Example data: exampleData

My idea of solution:

I go through the acquisition files, manually collect the start and end points coordinates for each acquisition, save as .csv file

Script which calculates line segments connecting these endpoints.

Script replaces the dip in the original data with the line segment.

What I dont know:

How to make a function which based on start ( X1, Y1)and end point (X2, Y2) coordinates generates X2-X1 rows with values from Y1 to Y2.

Thank you very much for help and suggestions


I have some 50 files to go through.
There can be more dips in the signal in given acquisition file.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.