Go to the documentation of this file.
57 bias(0), sig_bias(0), drift(0), sig_drift(0), accel(0), sig_accel(0)
71 strm << setw(4) << right <<
site;
76 << setfill(
' ') <<
' ';
80 FFStreamError e(
"Unknown data type: " +
datatype);
83 strm <<
' ' <<
printTime(
time,
"%4Y %02m %02d %02H %02M %9.6f");
95 strm << setw(3) << n <<
" " <<
bias <<
' ' <<
sig_bias << endl;
103 strm <<
drift <<
' ';
110 strm <<
accel <<
' ';
133 if (line.length() < 59) {
134 FFStreamError e(
"Short line : " + line);
140 site = line.substr(3,4);
150 FFStreamError e(exc);
151 e.addText(
"Invalid sat : /" +
site +
"/");
158 asInt(line.substr(12,3)),
159 asInt(line.substr(15,3)),
160 asInt(line.substr(18,3)),
161 asInt(line.substr(21,3)),
165 int n(
asInt(line.substr(34,3)));
166 bias = line.substr(40,19);
167 if (n > 1 && line.length() >= 59)
174 if (
int(line.length()) < (n-2)*20-1)
176 FFStreamError e(
"Short line : " + line);
179 drift = line.substr( 0,19);
183 accel = line.substr(40,19);
193 s <<
" " << datatype;
194 if (datatype ==
string(
"AR"))
200 s <<
" " << sat.toString();
202 s <<
" " <<
printTime(
time,
"%Y/%02m/%02d %2H:%02M:%06.3f = %F/%10.3g %P")
203 <<
" " << bias <<
" " << sig_bias <<
" " << drift <<
" " << sig_drift
204 <<
" " << accel <<
" " << sig_accel << endl;
long asInt(const std::string &s)
int id
Satellite identifier, e.g. PRN.
void fromString(const std::string &s)
const Epoch BEGINNING_OF_TIME(CommonTime::BEGINNING_OF_TIME)
Earliest representable Epoch.
void formattedGetLine(std::string &line, const bool expectEOF=false)
SatelliteSystem
Supported satellite systems.
virtual void reallyGetRecord(FFStream &s)
@ Any
wildcard; allows comparison with any other type
R3CDouble sig_bias
Clock bias sigma in seconds.
R3CDouble bias
Clock bias in seconds.
std::string & stripTrailing(std::string &s, const std::string &aString, std::string::size_type num=std::string::npos)
R3CDouble sig_accel
Clock acceleration sigma in 1/sec.
CommonTime time
Time of epoch for this record.
virtual void dump(std::ostream &s=std::cout) const noexcept
Debug output function.
R3CDouble sig_drift
Clock drift sigma in sec/sec.
R3CDouble drift
Clock drift in sec/sec.
double asDouble(const std::string &s)
std::string site
Site label (4-char) (if AR)
Rinex3ClockData()
Constructor.
virtual void reallyPutRecord(FFStream &s) const
std::string printTime(const CommonTime &t, const std::string &fmt)
std::string & strip(std::string &s, const std::string &aString, std::string::size_type num=std::string::npos)
#define GNSSTK_THROW(exc)
RinexSatID sat
Satellite ID (if AS)
R3CDouble accel
Clock acceleration in 1/sec.
std::string datatype
Data type : AR, AS, etc.
char systemChar() const noexcept
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:40