Skip to content
Snippets Groups Projects
Commit 9eccae5d authored by Amy Stamile's avatar Amy Stamile
Browse files

addressed PR feedback and minor fixes.

parent 54fa5f14
No related branches found
No related tags found
No related merge requests found
...@@ -3,18 +3,18 @@ import numpy as np ...@@ -3,18 +3,18 @@ import numpy as np
from typing import NamedTuple from typing import NamedTuple
class Point(NamedTuple): class Point(NamedTuple):
x: float x: np.double
y: float y: np.double
z: float z: np.double
class LatLon(NamedTuple): class LatLon(NamedTuple):
lat: float lat: np.double
lon: float lon: np.double
class Sphere(NamedTuple): class Sphere(NamedTuple):
lat: float lat: np.double
lon: float lon: np.double
radius: float radius: np.double
class Matrix(NamedTuple): class Matrix(NamedTuple):
vec_a: Point vec_a: Point
...@@ -69,7 +69,7 @@ def distance(start, stop): ...@@ -69,7 +69,7 @@ def distance(start, stop):
return magnitude(diff) return magnitude(diff)
def radiansToDegrees(radian_lat_lon): def radians_to_degrees(radian_lat_lon):
""" """
Parameters Parameters
---------- ----------
...@@ -84,8 +84,8 @@ def radiansToDegrees(radian_lat_lon): ...@@ -84,8 +84,8 @@ def radiansToDegrees(radian_lat_lon):
degree_lon += 2 * np.pi degree_lon += 2 * np.pi
degree_lon = np.rad2deg(degree_lon) degree_lon = np.rad2deg(degree_lon)
degreeLat = np.rad2deg(radian_lat_lon.lat) degree_lat = np.rad2deg(radian_lat_lon.lat)
return LatLon(degreeLat, degree_lon) return LatLon(degree_lat, degree_lon)
def spherical_to_rect(spherical): def spherical_to_rect(spherical):
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment