t = IsGoodGeom(Geom,[hGnd],[dirName],[dispMap])
Returns logical 1 if the slant path from the platform to the target does not intersect the surface of the earth.
Parameters |
Description |
Geom [struct/list] |
Geometry parameters. Can be a structure from GeomStruct or a comma separated list of (hp,ht,rd,[re]) |
hp [scalar/vector] |
Altitude of transmit/receive platform (m) |
ht [scalar/vector] |
Altitude of target (m) |
rd [scalar/vector] |
Downrange of target along curved earth surface (m) |
re [scalar/vector] |
(Optional) Earth radius to use (m). Defaults to value from PhysicalConst. If passed in as a vector (as for geodetic earth) uses the mean earth radius. |
hGnd [vector/logical] |
(Optional) Altitude of ground above mean sea level (m). Defaults to 0. Use logical true with Geom as a structure to load terrain data and check if path intersects terrain. If Geom is not a structure, hGnd must be scalar. Not required if specifying dirName. |
dirName [string] |
(Optional) Directory location of DTED data files for loading terrain data. Defaults to EngagementTools/DTED. |
dispMap [boolean] |
(Optional) Flag indicating whether to display image of terrain data. Default is false. Only used if using terrain data. |
Return Values |
Description |
t [logical] |
1 for good geometry, 0 for bad geometry |
Copyright (c) 2009. All rights reserved.
|
What do you think about this topic? Send feedback!
|