I gave a link to appropriate code below. Spline approximations are not useful in this case. Carles2025년 2월 26일 @TorstenSorry, I didn't see your answer before. It is not exactly what I was looking for, but I guess I'll make it work. Thank you very much!