Skip to content

Commit

Permalink
change var names to be consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Burnette committed May 3, 2019
1 parent 6517601 commit 825e1e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terrautils/spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,16 +387,16 @@ def scanalyzer_to_latlon(gantry_x, gantry_y):
return utm_to_latlon(utm_x, utm_y)


def scanalyzer_to_utm(scan_x, scan_y):
def scanalyzer_to_utm(gantry_x, gantry_y):
"""Convert coordinates from gantry to UTM 12N"""

# TODO: Hard-coded
# Linear transformation coefficients
ay = 3659974.971; by = 1.0002; cy = 0.0078;
ax = 409012.2032; bx = 0.009; cx = - 0.9986;

utm_x = ax + (bx * scan_x) + (cx * scan_y)
utm_y = ay + (by * scan_x) + (cy * scan_y)
utm_x = ax + (bx * gantry_x) + (cx * gantry_y)
utm_y = ay + (by * gantry_x) + (cy * gantry_y)

return utm_x, utm_y

Expand Down

0 comments on commit 825e1e1

Please sign in to comment.