G = ecf2enu(RefLLA,Gecf) [R, V] = ecf2enu(RefLLA,Recf,[Vecf],[EarthModel])
Converts coordinate frame from Earth-Center-Fixed (ECF), in which the coordinate frame is fixed to the rotating earth, to local East-North-Up (ENU) relative to a fixed location on the earth.
Parameters |
Description |
RefLLA [vector] |
3-element LLA position vectors [Lat Long Alt] for reference location. Lat is the Latitude in degrees (-90 to 90), Long is the longitude positions in degrees (-180 to 180), and Alt is the altitude (m). |
Gecf [struct/list] |
Geometry parameters. Can be a structure (or array of structures) from GeomStruct or a comma separated list of (...,Recf,[Vecf],[EarthModel]) |
Recf [Nx3 matrix] |
N 3-element ECF position vectors (m). |
Vecf [Nx3 matrix] |
(Optional) N 3-element ECF velocity vectors (m/s). |
EarthModel [string/numeric] |
(Optional) If string, Geodetic (default) or Geometric. Use Geometric for a spherical earth and Geodetic for an oblate earth. If numeric and scalar - spherical earth radius, if vector - [a b], where a is the equatorial radius and b is the polar radius. Must pass in Vecf (can be []) to specify earth model |
Return Values |
Description |
G [struct] |
If Gecf is a structure, G will be a structure with position and velocity vectors in ENU coordinates. |
R [Nx3 matrix] |
ENU position vectors (m) |
V [Nx3 matrix] |
ENU velocity vectors (m/s) |
Copyright (c) 2009. All rights reserved.
|
What do you think about this topic? Send feedback!
|