<br><font size=2 face="sans-serif">The Problem: It was found that
the bearing function used in nearest cities incorrectly calculated bearing
if it required going over the 180 degree meridian. Also on further
inspection, the algorithm it was using has great distortion of the bearing
when at high latitudes. </font>
<br>
<br><font size=2 face="sans-serif">The Solution: I developed a simple
methodology for determining if the bearing crosses 180 and the way to handle
bearing in that case. I also replaced the existing algorithm that
calculates bearing by using Rhumb line (basically the planar bearing) with
one that calculates it using a Great Circle calculation. By using
the Great Circle it seems to have fixed the distortion we saw at high latitudes.
</font>
<br>
<br><font size=2 face="sans-serif">Matthew</font>
<br>
<br><font size=2 face="sans-serif">-------------------------<br>
Matthew J Donnelly<br>
Information Technology Specialist<br>
National Earthquake Information Center<br>
US Geological Survey<br>
Golden, CO 80401<br>
Ph: 303-273-8590<br>
</font>