Public Member Functions | Public Attributes | Protected Member Functions | List of all members
gnsstk::SP3Data Class Reference

Detailed Description

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.

SP3Stream ss("igr14080.sp3");
SP3Header sh;
ss >> sh;
while (ss >> sd)
{
// Interesting stuff...
}
SP3Stream ssout("myfile.sp3", ios::out);
sh.setVersion(SP3Header::SP3c);
ssout << sh;
for(...) {
// perhaps modify sd
ssout << sd
}
See also
gnsstk::SP3Header and gnsstk::SP3Stream for more information.
petest.cpp for an example.

Definition at line 96 of file SP3Data.hpp.

#include <SP3Data.hpp>

Inheritance diagram for gnsstk::SP3Data:
Inheritance graph
[legend]

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...
 
- Public Member Functions inherited from gnsstk::SP3Base
virtual ~SP3Base ()
 Destructor per the coding standards. More...
 
- Public Member Functions inherited from gnsstk::FFData
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
 

Constructor & Destructor Documentation

◆ SP3Data()

gnsstk::SP3Data::SP3Data ( )
inline

Constructor.

Definition at line 100 of file SP3Data.hpp.

◆ ~SP3Data()

virtual gnsstk::SP3Data::~SP3Data ( )
inlinevirtual

Destructor.

Definition at line 107 of file SP3Data.hpp.

Member Function Documentation

◆ dump()

void gnsstk::SP3Data::dump ( std::ostream &  s = std::cout,
bool  includeC = true 
) const
virtualnoexcept

Debug output function.

Definition at line 413 of file SP3Data.cpp.

◆ isData()

virtual bool gnsstk::SP3Data::isData ( ) const
inlinevirtual

SP3Data is "data" so this function always returns true.

Reimplemented from gnsstk::FFData.

Definition at line 111 of file SP3Data.hpp.

◆ reallyGetRecord()

void gnsstk::SP3Data::reallyGetRecord ( FFStream s)
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.

Exceptions
std::exception
StringExceptionwhen a StringUtils function fails
FFStreamErrorwhen 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.

◆ reallyPutRecord()

void gnsstk::SP3Data::reallyPutRecord ( FFStream s) const
protectedvirtual

Writes the formatted record to the FFStream s.

Exceptions
std::exception
FFStreamError
StringUtils::StringException

Implements gnsstk::FFData.

Definition at line 324 of file SP3Data.cpp.

Member Data Documentation

◆ clk

double gnsstk::SP3Data::clk

The clock bias or drift for P|V (microsec|1).

Definition at line 123 of file SP3Data.hpp.

◆ clockEventFlag

bool gnsstk::SP3Data::clockEventFlag

clock event flag, 'E' in file

Definition at line 130 of file SP3Data.hpp.

◆ clockPredFlag

bool gnsstk::SP3Data::clockPredFlag

clock prediction flag, 'P' in file

Definition at line 131 of file SP3Data.hpp.

◆ correlation

int gnsstk::SP3Data::correlation[6]

elements of correlation matrix: xy,xz,xc,yz,yc,zc

Definition at line 140 of file SP3Data.hpp.

◆ correlationFlag

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.

◆ eventFlag

bool gnsstk::SP3Data::eventFlag

event flag specific to SP3ae, 'E' in file

Definition at line 137 of file SP3Data.hpp.

◆ orbitManeuverFlag

bool gnsstk::SP3Data::orbitManeuverFlag

orbit maneuver flag, 'M' in file

Definition at line 132 of file SP3Data.hpp.

◆ orbitPredFlag

bool gnsstk::SP3Data::orbitPredFlag

orbit prediction flag, 'P' in file

Definition at line 133 of file SP3Data.hpp.

◆ RecType

char gnsstk::SP3Data::RecType

Data type indicator. P position, V velocity, * epoch.

Definition at line 119 of file SP3Data.hpp.

◆ sat

SatID gnsstk::SP3Data::sat

Satellite ID.

Definition at line 120 of file SP3Data.hpp.

◆ sdev

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.

◆ sig

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.

◆ time

CommonTime gnsstk::SP3Data::time

Time of epoch for this record.

Definition at line 121 of file SP3Data.hpp.

◆ x

double gnsstk::SP3Data::x[3]

The three-vector for position | velocity (m | dm/s).

Definition at line 122 of file SP3Data.hpp.


The documentation for this class was generated from the following files:
gnsstk::SP3Data::SP3Data
SP3Data()
Constructor.
Definition: SP3Data.hpp:100
gnsstk::SP3Header::SP3c
@ SP3c
SP3 version c (contains a/b as a subset)
Definition: SP3Header.hpp:79


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:46