Closed noritada closed 3 years ago
tan(a12)
changes significantly with respect to a12 around a12=pi/2, and is more susceptible to rounding errors. I think the equation below needs to be replaced with some other code around a12=pi/2.
newiso = geodetic2isometric(lat2, ell, deg=False)
iso = geodetic2isometric(lat1, ell, deg=False)
dlon = tan(a12) * (newiso - iso)
When azimuth is equal or close to 90 or 270,
loxodrome_direct
will return an incorrect longitude value.The following code will reproduce the problem:
This code prints lines like this:
At the very least, the values of longitude when the azimuth approaching 90 or 270 to less than 1e-5 look obviously wrong. On the other hand, the latitude values look fine, including when the azimuth is close to 0 or 180.
pymap3d version: 2.7.0
Many thanks.