curve2tune function

Convert data from the depth to the time domain