Earth Observation Mission CFI Software Pointing Software User Manual |
Class for the DEM parameters. More...
Public Member Functions | |
DemId () | |
Empty Class constructor. | |
~DemId () EXCEPT | |
Class destructor. | |
void | init (long mode, long model, const std::string &demFile) |
Initialise the DEM parameters. | |
double | compute (const ModelId &modelId, double lon, double lat) const |
Compute altitude over the sea level for a point in the Earth. | |
SatId | satId () const |
Get satellite id. | |
DemConfFile | getData () const |
Get DEM parameters. | |
DemInfo | getInfo (const ModelId &modelId, double lon, double lat) const |
Get DEM source data. | |
void | configure (const DemIdConfig &config) |
Configure DEM cache. | |
double | getCellValue (long row, long column) const |
Get a DEM value for the given global row/column. | |
void | getCellGeod (long row, long column, double &lat, double &lon) const |
Get longitude/latitude corresponding to the the DEM point with the given global row/column. | |
Protected Member Functions | |
GenericId * | getId () |
Get the id. |
Class for the DEM parameters.
EECFI::DemId::DemId | ( | ) |
Empty Class constructor.
EECFI::DemId::~DemId | ( | ) |
Class destructor.
References EECFI::CfiId::status(), EECFI::CfiId::subtractInstance(), and EECFI::CfiClass::throwWarn.
double EECFI::DemId::compute | ( | const ModelId & | modelId, | |
double | lon, | |||
double | lat | |||
) | const |
Compute altitude over the sea level for a point in the Earth.
modelId | Model id. | |
lon | Longitude. | |
lat | Latitude. |
References EECFI::CfiClass::throwWarn.
void EECFI::DemId::configure | ( | const DemIdConfig & | config | ) |
Configure DEM cache.
config | DEM ID configuration. The "command" parameter in the "config" object has to be compatible with the DEM cache type in the DemId object: XPCFI_PRELOAD_CACHE cannot be used with the command XPCFI_SET_MAX_SIZE and XPCFI_FIFO_CACHE cannot be used with the command XPCFI_LOAD_TILE_SET. |
References EECFI::DemIdConfig::area, EECFI::DemIdConfig::command, EECFI::LatLonArea::latMax, EECFI::LatLonArea::latMin, EECFI::LatLonArea::lonMax, EECFI::LatLonArea::lonMin, EECFI::DemIdConfig::maxCacheSize, and EECFI::CfiClass::throwWarn.
void EECFI::DemId::getCellGeod | ( | long | row, | |
long | column, | |||
double & | lat, | |||
double & | lon | |||
) | const |
Get longitude/latitude corresponding to the the DEM point with the given global row/column.
The DemId::getCellGeod method converts row and column indexes to associated latitude and longitude according to DEM caracteristics.
row | The index of the row to be converted. | |
column | The index of the column to be converted. | |
lon | Longitude [deg]. | |
lat | Latitude [deg]. |
References EECFI::CfiClass::throwWarn.
double EECFI::DemId::getCellValue | ( | long | row, | |
long | column | |||
) | const |
Get a DEM value for the given global row/column.
The DemId::getCellValue method directly retrieves the value of a DEM cell.
row | The index of the row to be retrieved. | |
column | The index of the column to be retrieved. |
References EECFI::CfiClass::throwWarn.
DemConfFile EECFI::DemId::getData | ( | ) | const |
Get DEM parameters.
References EECFI::CfiError::addMsg(), EECFI::DemConfFile::cacheMaxSize, EECFI::DemConfFile::cacheType, EECFI::DemConfFile::dataSize, EECFI::DemConfFile::dataType, EECFI::DemConfFile::dir, EECFI::DemMiniTiles::fileName, EECFI::DemConfFile::geoidComputation, EECFI::DemConfFile::geoidNumHarmonics, EECFI::DemMiniTiles::latSize, EECFI::DemMiniTiles::lonSize, EECFI::DemConfFile::metadataModel, EECFI::DemConfFile::miniTiles, EECFI::DemConfFile::model, EECFI::DemConfFile::northAlt, EECFI::DemConfFile::offsetX, EECFI::DemConfFile::offsetY, EECFI::DemConfFile::resUnit, EECFI::DemConfFile::resX, EECFI::DemConfFile::resY, EECFI::DemConfFile::southAlt, EECFI::CfiClass::throwWarn, EECFI::DemConfFile::userDirectory, EECFI::DemConfFile::XNumPoints, EECFI::DemConfFile::xRange, EECFI::DemConfFile::YNumPoints, and EECFI::DemConfFile::yRange.
GenericId * EECFI::DemId::getId | ( | ) | [protected] |
Get the id.
Referenced by EECFI::Target::targetAltitude(), EECFI::Target::targetGeneric(), EECFI::Target::targetGroundRange(), EECFI::Target::targetIncidenceAngle(), EECFI::Target::targetInter(), EECFI::Target::targetListInter(), EECFI::Target::targetRange(), EECFI::Target::targetRangeRate(), EECFI::Target::targetStar(), EECFI::Target::targetStation(), EECFI::Target::targetTangent(), EECFI::Target::targetTangentMoon(), EECFI::Target::targetTangentSun(), and EECFI::Target::targetTravelTime().
Get DEM source data.
modelId | Model id. | |
lon | Longitude. | |
lat | Latitude. |
References EECFI::DemInfo::dataSource, EECFI::DemInfo::demModel, and EECFI::CfiClass::throwWarn.
void EECFI::DemId::init | ( | long | mode, | |
long | model, | |||
const std::string & | demFile | |||
) |
Initialise the DEM parameters.
SatId EECFI::DemId::satId | ( | ) | const |
Get satellite id.