Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Merge the RemoveBadSegments() and MeasureSegments() functions. Saves one read/write iteration through the segments file.