Skip to content

Commit

Permalink
Update transverse_mercator.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
sillygrinch authored and visr committed Apr 23, 2022
1 parent 72d4aff commit 65635d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transverse_mercator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ function transverse_mercator_reverse(lon0, x, y, k0, tm::TransverseMercator{MaxP
etap = eta + ai * xip0 + ar * etap0

# Convergence and scale for Gauss-Schreiber TM to Gauss-Krueger TM.
gamma = atand(yi1, yr1) * 180/pi
gamma = atand(yi1, yr1)
k = tm.b1 / hypot(yr1, yi1)
# JHS 154 has
#
Expand All @@ -744,7 +744,7 @@ function transverse_mercator_reverse(lon0, x, y, k0, tm::TransverseMercator{MaxP
r = hypot(s, c)

if (r != 0)
lon = atand(s, c) * 180/pi # Krueger p 17 (25)
lon = atand(s, c)# Krueger p 17 (25)

# Use Newton's method to solve for tau
sxip = sin(xip)
Expand Down

0 comments on commit 65635d7

Please sign in to comment.