Custom Version of AppendArcLength

I have a set of polylines from a streamtracer with custom source. I have successfully used the AppendArcLength and computed an inverse velocity (s/m) for each point. What I would like to do is to be able to appendFlightTime in much the same way as AppendArcLength works, so that it integrates the inverse velocity against the arc length to achieve a flight time value in s for every point in all the polylines.

I believe that this should be feasible with a Python Programmable Filter, but I’m not certain.