DEIMOS
Earth Observation Mission CFI Software
DataHandling Software User Manual
ESA

EECFI::OrbitFile Class Reference

Class for reading/writing orbit files. More...

Inheritance diagram for EECFI::OrbitFile:
EECFI::EEFile EECFI::CfiClass

List of all members.

Public Member Functions

 OrbitFile ()
 Default constructor.
 OrbitFile (const std::string &fileNam)
 Constructor with file name.
 OrbitFile (const OrbitFile &other)
 ~OrbitFile () NOEXCEPT
 Destructor.
OrbitFileoperator= (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< OsvRecosvRec
 Vector of state vectors.

Detailed Description

Class for reading/writing orbit files.


Constructor & Destructor Documentation

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.

Parameters:
other The OrbitFile to copy from
EECFI::OrbitFile::~OrbitFile (  ) 

Destructor.


Member Function Documentation

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.

Parameters:
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.

OrbitFile & EECFI::OrbitFile::operator= ( const OrbitFile other  ) 

Copy assigment operator.

Parameters:
other The OrbitFile to copy/assign from

References osvRec.

void EECFI::OrbitFile::read ( const bool  readFroFlag,
const bool  readingOsvFlag 
)

Read the whole file data block.

Parameters:
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.

Parameters:
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.

Parameters:
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.

long EECFI::OrbitFile::xsltAdd (  ) 

Add xslt reference with default stylesheet.

References EECFI::EEFile::fileName.


Member Data Documentation


Generated on Mon Dec 11 2023 13:28:17 for by doxygen 1.7.1