interparc
Distance based interpolation along a general curve in space
Author: John D'Errico
John,
Thanks for the response! I've been playing with the linear interpolation and you're right--it's much faster. It also seems to be accurate enough for my model. Thanks for your input!
18 Jan 2013
interparc
Distance based interpolation along a general curve in space
Author: John D'Errico
Excellent code.
I have only one complaint, which is the code takes awhile to run. For some applications this doesn't matter much, but I'm trying to resample a stream centerline after each time step in a 100's of time steps numerical model, and run times have become too large for me to use this (at least with each iteration). Do you have any suggestions for speeding it up? I tried going line-by-line through the code to find the bottleneck, but I was unsuccessful.