This class encapsulates data for satellite orbits and clocks, including positions, velocities and other orbit and estimation information read as found in I/O of SP3 format (versions a, b, c, or d) files.
This class is used in conjuction with class SP3Stream, which handles the I/O, and SP3Header, which holds information from the SP3 file header. Note that the version of SP3 is stored ONLY in the SP3Header object. This version is set when an SP3 header is read into SP3Header, and it may be set by the user using SP3Header::setVersion(). On output, SP3Stream uses the version stored in the SP3Header to determine how SP3Data (this object) is output.
Definition at line 96 of file SP3Data.hpp.
#include <SP3Data.hpp>
Public Member Functions | |
virtual void | dump (std::ostream &s=std::cout, bool includeC=true) const noexcept |
Debug output function. More... | |
virtual bool | isData () const |
SP3Data is "data" so this function always returns true. More... | |
SP3Data () | |
Constructor. More... | |
virtual | ~SP3Data () |
Destructor. More... | |
![]() | |
virtual | ~SP3Base () |
Destructor per the coding standards. More... | |
![]() | |
virtual void | dump (std::ostream &s) const |
void | getRecord (FFStream &s) |
virtual bool | isHeader () const |
void | putRecord (FFStream &s) const |
virtual | ~FFData (void) |
virtual desctuctor More... | |
Public Attributes | |
double | clk |
The clock bias or drift for P|V (microsec|1). More... | |
bool | clockEventFlag |
clock event flag, 'E' in file More... | |
bool | clockPredFlag |
clock prediction flag, 'P' in file More... | |
int | correlation [6] |
elements of correlation matrix: xy,xz,xc,yz,yc,zc More... | |
bool | correlationFlag |
data for optional P|V Correlation record More... | |
bool | eventFlag |
event flag specific to SP3ae, 'E' in file More... | |
bool | orbitManeuverFlag |
orbit maneuver flag, 'M' in file More... | |
bool | orbitPredFlag |
char | RecType |
Data type indicator. P position, V velocity, * epoch. More... | |
SatID | sat |
Satellite ID. More... | |
unsigned | sdev [4] |
int | sig [4] |
the rest of the member are for version c only More... | |
CommonTime | time |
Time of epoch for this record. More... | |
double | x [3] |
The three-vector for position | velocity (m | dm/s). More... | |
Protected Member Functions | |
virtual void | reallyGetRecord (FFStream &s) |
virtual void | reallyPutRecord (FFStream &s) const |
|
inline |
Constructor.
Definition at line 100 of file SP3Data.hpp.
|
inlinevirtual |
Destructor.
Definition at line 107 of file SP3Data.hpp.
|
virtualnoexcept |
Debug output function.
Definition at line 413 of file SP3Data.cpp.
|
inlinevirtual |
SP3Data is "data" so this function always returns true.
Reimplemented from gnsstk::FFData.
Definition at line 111 of file SP3Data.hpp.
|
protectedvirtual |
This function reads a record from the given FFStream. If an error is encountered in retrieving the record, the stream is reset to its original position and its fail-bit is set.
std::exception | |
StringException | when a StringUtils function fails |
FFStreamError | when exceptions(failbit) is set and a read or formatting error occurs. This also resets the stream to its pre-read position. |
Implements gnsstk::FFData.
Definition at line 54 of file SP3Data.cpp.
|
protectedvirtual |
Writes the formatted record to the FFStream s.
std::exception | |
FFStreamError | |
StringUtils::StringException |
Implements gnsstk::FFData.
Definition at line 324 of file SP3Data.cpp.
double gnsstk::SP3Data::clk |
The clock bias or drift for P|V (microsec|1).
Definition at line 123 of file SP3Data.hpp.
bool gnsstk::SP3Data::clockEventFlag |
clock event flag, 'E' in file
Definition at line 130 of file SP3Data.hpp.
bool gnsstk::SP3Data::clockPredFlag |
clock prediction flag, 'P' in file
Definition at line 131 of file SP3Data.hpp.
int gnsstk::SP3Data::correlation[6] |
elements of correlation matrix: xy,xz,xc,yz,yc,zc
Definition at line 140 of file SP3Data.hpp.
bool gnsstk::SP3Data::correlationFlag |
data for optional P|V Correlation record
If true, on input: a correlation record was read; on output: stream should output correlation.
Definition at line 135 of file SP3Data.hpp.
bool gnsstk::SP3Data::eventFlag |
event flag specific to SP3ae, 'E' in file
Definition at line 137 of file SP3Data.hpp.
bool gnsstk::SP3Data::orbitManeuverFlag |
orbit maneuver flag, 'M' in file
Definition at line 132 of file SP3Data.hpp.
bool gnsstk::SP3Data::orbitPredFlag |
orbit prediction flag, 'P' in file
Definition at line 133 of file SP3Data.hpp.
char gnsstk::SP3Data::RecType |
Data type indicator. P position, V velocity, * epoch.
Definition at line 119 of file SP3Data.hpp.
SatID gnsstk::SP3Data::sat |
Satellite ID.
Definition at line 120 of file SP3Data.hpp.
unsigned gnsstk::SP3Data::sdev[4] |
std dev of 3 positions (XYZ,mm) and clock (psec) or velocities(10^-4 mm/sec) and clock rate (10^-4 ps/s)
Definition at line 138 of file SP3Data.hpp.
int gnsstk::SP3Data::sig[4] |
the rest of the member are for version c only
Four-vector of integer exponents for estimated sigma of position,clock or velocity,clock rate; sigma = base**n units are mm,psec or 10^-4 mm/sec,psec/sec); base in head. n is >= 0, and n = -1 means unknown (blank in file)
Definition at line 126 of file SP3Data.hpp.
CommonTime gnsstk::SP3Data::time |
Time of epoch for this record.
Definition at line 121 of file SP3Data.hpp.
double gnsstk::SP3Data::x[3] |
The three-vector for position | velocity (m | dm/s).
Definition at line 122 of file SP3Data.hpp.