@@ -94,7 +94,7 @@ def ctrPosition(self):
9494 cx , cy , cz = self .fromECEF (ex , ey , ez )
9595 else :
9696 cx , cy , cz = 0 , 0 , 0
97- return cx , cy , cz
97+ return cx , cy , cz
9898
9999 def toECEF (self , x , y , z ):
100100 x += self .cx
@@ -202,8 +202,8 @@ def getSlantRangeElevation(self, groundRange, z):
202202 el *= 180.0 / pi
203203
204204 return r , el
205-
206- def toECEF (self , r , az , el ):
205+
206+ def toLonLatAlt (self , r , az , el ):
207207 """Convert slant range r, azimuth az, and elevation el to ECEF system"""
208208 geoSys = GeographicSystem ()
209209 geodetic = proj4 .Geod (ellps = 'WGS84' )
@@ -215,6 +215,10 @@ def toECEF(self, r, az, el):
215215
216216 dist , z = self .getGroundRangeHeight (r ,el )
217217 lon , lat , backAz = geodetic .fwd ([self .ctrLon ]* n , [self .ctrLat ]* n , az , dist )
218+ return lon , lat , z
219+
220+ def toECEF (self , r , az , el ):
221+ lon , lat , z = self .toLonLatAlt (r , az , el )
218222 return geoSys .toECEF (lon , lat , z .ravel ())
219223
220224 def fromECEF (self , x , y , z ):
0 commit comments