Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Whitespace

  • Loading branch information...
commit 6d560aba7c36d83ed904d01be06ee7b96de2dfd5 1 parent c60bc4e
@fnoble authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 swiftnav/coord_system.pyx
View
12 swiftnav/coord_system.pyx
@@ -66,9 +66,9 @@ def wgsecef2llh(x, y, z):
np.array([x, y, z], dtype=np.double)
cdef np.ndarray[np.double_t, ndim=1, mode="c"] llh = \
np.empty(3, dtype=np.double)
-
+
coord_system_c.wgsecef2llh(&ecef[0], &llh[0])
-
+
return llh
def wgsecef2ned(ecef, ref_ecef):
@@ -88,19 +88,19 @@ def wgsecef2ned(ecef, ref_ecef):
The array `[North, East, Down]`.
"""
-
+
if len(ecef) != 3 or len(ref_ecef) != 3:
raise ValueError("ECEF coordinates must have dimension 3.")
-
+
cdef np.ndarray[np.double_t, ndim=1, mode="c"] ecef_ = \
np.array(ecef, dtype=np.double)
cdef np.ndarray[np.double_t, ndim=1, mode="c"] ref_ecef_ = \
np.array(ref_ecef, dtype=np.double)
cdef np.ndarray[np.double_t, ndim=1, mode="c"] ned = \
np.empty(3, dtype=np.double)
-
+
coord_system_c.wgsecef2ned(&ecef_[0], &ref_ecef_[0], &ned[0])
-
+
return ned
def wgsecef2ned_d(ecef, ref_ecef):
Please sign in to comment.
Something went wrong with that request. Please try again.