Skip to content

Commit 71fe35b

Browse files
committed
Corrected bug, ECEF to ENU vector
1 parent 063c056 commit 71fe35b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pysatMagVect/_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def ecef_to_enu_vector(x, y, z, glat, glong):
250250

251251
east = -x*np.sin(rlat) + y*np.cos(rlat)
252252
north = -x*np.cos(rlat)*np.sin(rlon) - y*np.sin(rlat)*np.sin(rlon) + z*np.cos(rlon)
253-
up = x*np.cos(rlat)*np.sin(rlon) + y*np.sin(rlat)*np.cos(rlon)+ z*np.sin(rlon)
253+
up = x*np.cos(rlat)*np.cos(rlon) + y*np.sin(rlat)*np.cos(rlon)+ z*np.sin(rlon)
254254

255255
return east, north, up
256256

0 commit comments

Comments
 (0)