[h,L,el] = EarthAlt(x,Geom) [h,L,el] = EarthAlt(x,hp,ht,rd,[re])
Computes the altitude above the surface of a spherical earth for a ray going from hp to ht at downrange rd for normalized position x (x = 0 at hp, x = 1 at ht). Also returns slant range (L) and elevation angle (el) in radians. If the geometry is input as a structure, an oblate earth model can be used and altitudes will be above the oblate earth surface.
Parameters 
Description 
x [vector] 
Normalized path position from platform (0) to target (1) 
Geom [struct/list] 
Geometry parameters. Can be a structure from GeomStruct or a comma separated list of (...,hp,ht,rd,[re]) 
hp [scalar] 
Altitude of transmit/receive platform (m) 
ht [scalar] 
Altitude of target (m) 
rd [scalar] 
Downrange of target along curved earth surface (m) 
re [scalar] 
(Optional) Spherical earth radius (m). If not passed, uses mean earth radius. If passed as a vector (as for geodetic earth) uses the mean value. Not required for geometry structure input. When re is passed in as a 2x1 and length(G) (number of geometries) is also 2, re will be treated as spherical radii, one for each geometry. To force use of re as geoid, pass in as NGx2. 
Return Values 
Description 
h [vector] 
Altitude above earth surface for position x (m) 
L [scalar] 
Slant range of engagement (m) 
el [scalar] 
Elevation angle of engagement (rad) 
Copyright (c) 2009. All rights reserved.

What do you think about this topic? Send feedback!
