Earth Observation Mission CFI Software DataHandling Software User Manual |
Class for reading/writing orbit files. More...
Public Member Functions | |
OrbitFile () | |
Default constructor. | |
OrbitFile (const std::string &fileNam) | |
Constructor with file name. | |
OrbitFile (const OrbitFile &other) | |
~OrbitFile () NOEXCEPT | |
Destructor. | |
OrbitFile & | operator= (const OrbitFile &other) |
void | read (const bool readFroFlag, const bool readingOsvFlag) |
Read the whole file data block. | |
void | read (const bool readFroFlag, const double startRange, const double stopRange, const bool readingOsvFlag) |
Read the file data block between startRange and stopRange in orbits. | |
void | read (const bool readFroFlag, const long timeRef, const double startRange, const double stopRange, const bool readingOsvFlag) |
Read the file data block between startRange and stopRange in days. | |
void | write (const std::string &fileNam, const FixedHeader &fixedHead, const std::vector< OsvRec > &osvData) |
Write the file. | |
void | decimate (double decimationDeltaTime, OrbitFile &osvOut) |
Decimate the list of orbit state vectors according to input delta time. | |
long | xsltAdd () |
Add xslt reference with default stylesheet. | |
Public Attributes | |
std::vector< OsvRec > | osvRec |
Vector of state vectors. |
Class for reading/writing orbit files.
EECFI::OrbitFile::OrbitFile | ( | ) |
Default constructor.
EECFI::OrbitFile::OrbitFile | ( | const std::string & | fileNam | ) | [explicit] |
Constructor with file name.
EECFI::OrbitFile::OrbitFile | ( | const OrbitFile & | other | ) |
Copy constructor.
other | The OrbitFile to copy from |
EECFI::OrbitFile::~OrbitFile | ( | ) |
Destructor.
void EECFI::OrbitFile::decimate | ( | double | decimationDeltaTime, | |
OrbitFile & | osvOut | |||
) |
Decimate the list of orbit state vectors according to input delta time.
Being t0 the time of the 1st state vector of input list (calling object) and D the decimationDeltaTime, the state vectors from the input list that will be included in the output list will be those closer to every time t=t0+k*D (k=1,2...n). Important: the fixed header of calling object must have been read.
decimationDeltaTime | Number of seconds used for decimation. | |
osvOut | Output Orbit File with the decimated list and corresponding Fixed header. |
References EECFI::CfiError::addMsg(), EECFI::EEFile::fixedHeader, osvRec, EECFI::CfiClass::throwWarn, EECFI::FixedHeader::valStartDate, EECFI::FixedHeader::valStopDate, and EECFI::FixedHeader::version.
void EECFI::OrbitFile::read | ( | const bool | readFroFlag, | |
const bool | readingOsvFlag | |||
) |
Read the whole file data block.
readFroFlag | Type of input file: "true" for ROF and DORIS files "false" for POF files. | |
readingOsvFlag | Select if state vectors are read (true) or only times and orbit numbers (false). |
References EECFI::EEFile::fileName, EECFI::EEFile::fileType, osvRec, and EECFI::CfiClass::throwWarn.
void EECFI::OrbitFile::read | ( | const bool | readFroFlag, | |
const long | timeRef, | |||
const double | startRange, | |||
const double | stopRange, | |||
const bool | readingOsvFlag | |||
) |
Read the file data block between startRange and stopRange in days.
readFroFlag | Type of input file: "true" for ROF and DORIS files "false" for POF files. | |
readingOsvFlag | Select of state vectors are read (true) or only times and orbit numbers (false). | |
startRange | Start day. | |
stopRange | Stop day. | |
timeRef | Time reference. |
References EECFI::EEFile::fileName, EECFI::EEFile::fileType, osvRec, and EECFI::CfiClass::throwWarn.
void EECFI::OrbitFile::read | ( | const bool | readFroFlag, | |
const double | startRange, | |||
const double | stopRange, | |||
const bool | readingOsvFlag | |||
) |
Read the file data block between startRange and stopRange in orbits.
readFroFlag | Type of input file: "true" for ROF and DORIS files "false" for POF files. | |
readingOsvFlag | Select of state vectors are read (true) or only times and orbit numbers (false). | |
startRange | Start orbit. | |
stopRange | Stop orbit. |
References EECFI::EEFile::fileName, EECFI::EEFile::fileType, osvRec, and EECFI::CfiClass::throwWarn.
void EECFI::OrbitFile::write | ( | const std::string & | fileNam, | |
const FixedHeader & | fixedHead, | |||
const std::vector< OsvRec > & | osvData | |||
) |
Write the file.
fileNam | Name of the file to write. | |
fixedHead | FixedHeader object with fixed header data. | |
osvData | Vector of state vectors. |
References EECFI::FixedHeader::creationDate, EECFI::FixedHeader::creator, EECFI::FixedHeader::creatorVersion, EECFI::FixedHeader::fileClass, EECFI::FixedHeader::fileDescription, EECFI::FixedHeader::fileName, EECFI::EEFile::fileName, EECFI::FixedHeader::fileType, EECFI::EEFile::fixedHeader, EECFI::FixedHeader::mission, osvRec, EECFI::FixedHeader::schema, EECFI::FixedHeader::system, EECFI::CfiClass::throwWarn, EECFI::FixedHeader::valStartDate, EECFI::FixedHeader::valStopDate, and EECFI::FixedHeader::version.
long EECFI::OrbitFile::xsltAdd | ( | ) |
Add xslt reference with default stylesheet.
References EECFI::EEFile::fileName.
std::vector<OsvRec> EECFI::OrbitFile::osvRec |
Vector of state vectors.
Referenced by EECFI::OrbitFileDiagnostics::computeDiagnostics(), decimate(), operator=(), read(), and write().