I noted this in the original script I attached, but never mentioned it in any of the emails.  We should discuss this with a subject matter expert (SME) to determine which ellipsoid we should be using for these calculations - there are a large number to chose from.  We may also want to make this configurable (an argument) and then make the default whatever recommendation the SME provides.

The same goes for the midpoint_longest calculation.