matlab ecef2enu函数,Transform geocentric Earth-centered Earth-fixed coordinates to local east-north-up...

Find the ENU coordinates of orbital debris with respect to a satellite, using the ECEF coordinates of the debris and the geodetic coordinates of the satellite.

First, specify the reference spheroid as WGS84 with length units measured in kilometers. For more information about WGS84, see Reference Spheroids. The units for the ellipsoidal height, ECEF coordinates, and ENU coordinates must match the units specified by the LengthUnit property of the reference spheroid.

wgs84 = wgs84Ellipsoid('kilometer');

Specify the geodetic coordinates of the local origin. In this example, the local origin is the satellite. Specify h0 as ellipsoidal height in kilometers.

lat0 = 45.9132;

lon0 = 36.7484;

h0 = 1877.7532;

Specify the ECEF coordinates of the point of interest. In this example, the point of interest is the orbital debris.

x = 5507.5289;

y = 4556.2241;

z = 6012.8208;

Then, calculate the ENU coordinates of the debris with respect to the satellite. In this example, zUp displays in scientific notation.

[xEast,yNorth,zUp] = ecef2enu(x,y,z,lat0,lon0,h0,wgs84)

xEast = 355.6013

yNorth = -923.0832

zUp = 1.0410e+03

Reverse the transformation using the enu2ecef function. In this example, the results display in scientific notation.

[x,y,z] = enu2ecef(xEast,yNorth,zUp,lat0,lon0,h0,wgs84)

x = 5.5075e+03

y = 4.5562e+03

z = 6.0128e+03

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值