|
| static int | get_nprofile (double ground_range) |
| static bool | get_terrain_sw () |
| static double | get_terrain_height (wsf::Terrain &aTerrain, double lat, double lon, const std::string &units) |
| static void | profil (wsf::Terrain &aTerrain, WsfEnvironment &aEnvironment, double aztrad, double eltrad, double hammsl, double htmmsl, int nprofl, double rkfact, double sitlam, double sitphi, double tarlam, double tarphi, std::vector< double > &elvmsl, bool &masked, std::vector< double > &tanepp, double &tanmax, std::vector< bool > &visibl, std::vector< double > &xprofl, std::vector< double > &zprofl) |
| | ! public
|
| static void | visclt (wsf::Terrain &aTerrain, WsfEnvironment &aEnvironment, double alphac, double hammsl, int nprofile, double rkfact, double sitlam, double sitphi, std::vector< double > &elvmsl, std::vector< int > &iend, std::vector< int > &istart, int &nareas, std::vector< double > &rngter, std::vector< double > &tanepp, std::vector< bool > &visibl, std::vector< double > &xprofl, std::vector< double > &zprofl, std::vector< int > &lcprofl) |
| | ! public
|
| static void | visble2 (wsf::Terrain &aTerrain, WsfEnvironment &aEnvironment, double azin, double eltrad, double hammsl, int nprofl, double rkfact, double sitlam, double sitphi, bool quick_flag, bool variable_flag, std::vector< double > &elvmsl, std::vector< double > &tanepp, double &tanmax, std::vector< bool > &visibl, std::vector< double > &xprofl, std::vector< double > &zprofl, std::vector< int > &lcprofl, bool &masked) |
Terrain handling code from ALARM (terrrain.f90 and friends).
| void WsfEM_ALARM_Terrain::AdjustAltitude |
( |
WsfPlatform * | aPlatformPtr, |
|
|
double | aLat, |
|
|
double | aLon, |
|
|
double & | aAlt ) |
|
static |
Adjust the incoming altitude so it more closely corresponds to that which would have been determined by stand-alone ALARM.
WSF utilizes bi-linear interpolation the get the altitude between terrain posts while ALARM does not. This can lead to some minor differences in the results (especially at close ranges), making it hard to compare results.
This isn't strictly necessary, but it was found to be useful when making sure everything worked in the converted code.
- Parameters
-
| aPlatformPtr | The platform containing the object represented by the incoming position. |
| aLat | The latitude of the point whose altitude is to be adjusted. |
| aLon | The longitude of the point whose altitude is to be adjusted. |
| aAlt | On input this is the WSF MSL altitude. On output it will be the ALARM MSL altitude. |
References get_cell_height_deg(), WsfPlatform::GetTerrain(), and WsfPlatform::GetTerrainHeight().
Referenced by WsfEM_ALARM_Geometry::ComputeGeometry(), and WsfEM_ALARM_Antenna::antenna::get_height_msl().