Skip to content

Commit

Permalink
Update transverse_mercator.jl
Browse files Browse the repository at this point in the history
change for better readbility
  • Loading branch information
sillygrinch authored and visr committed Apr 23, 2022
1 parent 65635d7 commit c7186bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transverse_mercator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ function transverse_mercator_reverse(lon0, x, y, k0, tm::TransverseMercator{MaxP
# Use Newton's method to solve for tau
sxip = sin(xip)
tau = tauf(sxip/r, tm.e2) # TODO maybe change to C++ es version
gamma += atand(sxip * tanh(etap), c) * 180/pi # Krueger p 19 (31)
gamma += atand(sxip * tanh(etap), c) # Krueger p 19 (31)
lat = atand(tau)
# Note cos(phi') * cosh(eta') = r
k *= sqrt(tm.e2m + tm.e2 / (1 + tau*tau)) * hypot(1.0, tau) * r
Expand Down

0 comments on commit c7186bb

Please sign in to comment.