Earth Observation Mission CFI Software DataHandling Software User Manual |
Class for reading/writing attitude generic files. More...
Public Member Functions | |
AttFile () | |
Empty constructor. | |
AttFile (const std::string &fileNam) | |
Constructor with file name. | |
~AttFile () NOEXCEPT | |
Destructor. | |
void | read () |
Read the whole data block and store it in object. | |
void | write (const FixedHeader &fixedHead, const std::vector< AttRec > &attRecords, const long srcRef, const long datTyp, const double maximumGap, const long satReference) |
Write attitude file with name given in constructor. | |
void | write (const std::string &fileNam, const FixedHeader &fixedHead, const std::vector< AttRec > &attRecords, const long srcRef, const long datTyp, const double maximumGap, const long satReference) |
Write attitude file with a new name. | |
void | decimate (double decimationDeltaTime, AttFile &attOut) const |
Decimate the list of attitude records according to input delta time. | |
long | xsltAdd () const |
Add xslt reference with default stylesheet. | |
Public Attributes | |
std::vector< AttRec > | attRec |
Vector of attitude data. | |
long | sourceRef |
Initial reference frame: inertial reference frame. | |
long | dataType |
Angles or quaternions (AttitudeDataTypeEnum). | |
double | maxGap |
Maximum time gap between two consecutive records. | |
long | satRef |
Target reference frame. |
Class for reading/writing attitude generic files.
EECFI::AttFile::AttFile | ( | ) |
Empty constructor.
References EECFI::EEFile::fileType.
EECFI::AttFile::AttFile | ( | const std::string & | fileNam | ) | [explicit] |
Constructor with file name.
EECFI::AttFile::~AttFile | ( | ) |
Destructor.
References attRec, and EECFI::EEFile::fixedHeader.
void EECFI::AttFile::decimate | ( | double | decimationDeltaTime, | |
AttFile & | attOut | |||
) | const |
Decimate the list of attitude records according to input delta time.
Being t0 the time of the 1st attitude record of input list (calling object) and D the decimationDeltaTime, the attitude records 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. | |
attOut | Output Attitude File with the decimated list and corresponding Fixed header. |
References EECFI::CfiError::addMsg(), attRec, dataType, EECFI::EEFile::fixedHeader, maxGap, satRef, sourceRef, EECFI::CfiClass::throwWarn, EECFI::FixedHeader::valStartDate, EECFI::FixedHeader::valStopDate, and EECFI::FixedHeader::version.
void EECFI::AttFile::read | ( | ) |
Read the whole data block and store it in object.
References attRec, dataType, EECFI::EEFile::fileName, maxGap, satRef, sourceRef, and EECFI::CfiClass::throwWarn.
void EECFI::AttFile::write | ( | const FixedHeader & | fixedHead, | |
const std::vector< AttRec > & | attRecords, | |||
const long | srcRef, | |||
const long | datTyp, | |||
const double | maximumGap, | |||
const long | satReference | |||
) |
Write attitude file with name given in constructor.
Note about output format: the number of decimal digits written to file depends on the type of data:
It is done this way because having 9 decimal digits in quaternions reduces pointing error significantly .
void EECFI::AttFile::write | ( | const std::string & | fileNam, | |
const FixedHeader & | fixedHead, | |||
const std::vector< AttRec > & | attRecords, | |||
const long | srcRef, | |||
const long | datTyp, | |||
const double | maximumGap, | |||
const long | satReference | |||
) |
Write attitude file with a new name.
Note about output format: the number of decimal digits written to file depends on the type of data:
It is done this way because having 9 decimal digits in quaternions reduces pointing error significantly .
long EECFI::AttFile::xsltAdd | ( | ) | const |
Add xslt reference with default stylesheet.
References EECFI::EEFile::fileName.
std::vector<AttRec> EECFI::AttFile::attRec |
Vector of attitude data.
Referenced by decimate(), read(), and ~AttFile().
Angles or quaternions (AttitudeDataTypeEnum).
Referenced by decimate(), and read().
double EECFI::AttFile::maxGap |
Maximum time gap between two consecutive records.
Referenced by decimate(), and read().
Target reference frame.
Referenced by decimate(), and read().
Initial reference frame: inertial reference frame.
Referenced by decimate(), and read().