#include <RinexObsHeader.hpp>
Inheritance diagram for RinexObsHeader:


rinex_obs_test.cpp and rinex_obs_read_write.cpp for examples.
Definition at line 69 of file RinexObsHeader.hpp.
Public Types | |
| enum | validBits { versionValid = 0x01, runByValid = 0x02, commentValid = 0x04, markerNameValid = 0x08, markerNumberValid = 0x010, observerValid = 0x020, receiverValid = 0x040, antennaTypeValid = 0x080, antennaPositionValid = 0x0100, antennaOffsetValid = 0x0200, waveFactValid = 0x0400, obsTypeValid = 0x0800, intervalValid = 0x01000, firstTimeValid = 0x02000, lastTimeValid = 0x04000, receiverOffsetValid = 0x08000, leapSecondsValid = 0x0100000, numSatsValid = 0x0200000, prnObsValid = 0x0400000, endValid = 0x080000000, allValid20 = 0x080002FEB, allValid21 = 0x080002FEB, allValid211 = 0x080002FEB } |
| Validity bits for the RINEX Observation Header. More... | |
Public Member Functions | |
| RinexObsHeader () | |
| A Simple Constructor. | |
| void | clear () |
| Clear (empty out) header. | |
| virtual | ~RinexObsHeader () |
| Destructor. | |
| virtual bool | isHeader () const |
| RinexObsHeader is a "header" so this function always returns true. | |
| virtual void | dump (std::ostream &s) const |
| This is a simple Debug output function. | |
| void | ParseHeaderRecord (std::string &line) throw (FFStreamError) |
| Parse a single header record, and modify valid accordingly. | |
| int | NumberHeaderRecordsToBeWritten (void) const throw () |
| Compute the number of valid header records which WriteHeaderRecords() will write. | |
| void | WriteHeaderRecords (FFStream &s) const throw (FFStreamError, gpstk::StringUtils::StringException) |
| Write all valid header records to the given stream. | |
| bool | isValid () const |
| Return boolean : is this a valid Rinex header? | |
Static Public Member Functions | |
| RinexObsType | convertObsType (const std::string &oneObs) throw (FFStreamError) |
| This function converts the string in oneObs to a RinexObsType. | |
| std::string | convertObsType (const RinexObsType &oneObs) throw (FFStreamError) |
| This function converts the RinexObsType in oneObs to a string. | |
Public Attributes | |
RinexObsHeaderValues | |
| double | version |
| RINEX VERSION & TYPE. | |
| std::string | fileType |
| RINEX FILETYPE (Observation Navigation etc). | |
| SatID | system |
| system; one of {RinexSatID.system, Mixed} | |
| std::string | fileProgram |
| The program used to generate this file. | |
| std::string | fileAgency |
| Who ran the program. | |
| std::string | date |
| When the program was run. | |
| std::vector< std::string > | commentList |
| Comments in header (optional). | |
| std::string | markerName |
| MARKER NAME. | |
| std::string | markerNumber |
| MARKER NUMBER (optional). | |
| std::string | observer |
| OBSERVER : who collected the data. | |
| std::string | agency |
| OBSERVER'S AGENCY. | |
| std::string | recNo |
| RECEIVER NUMBER. | |
| std::string | recType |
| RECEIVER TYPE. | |
| std::string | recVers |
| RECEIVER VERSION. | |
| std::string | antNo |
| ANTENNA NUMBER. | |
| std::string | antType |
| ANTENNA TYPE. | |
| gpstk::Triple | antennaPosition |
| APPROXIMATE POSITION XYZ. | |
| gpstk::Triple | antennaOffset |
| ANTENNA: DELTA H/E/N. | |
| short | wavelengthFactor [2] |
| default WAVELENGTH FACTORS | |
| std::vector< ExtraWaveFact > | extraWaveFactList |
| extra (per PRN) WAVELENGTH FACTORS | |
| std::vector< RinexObsType > | obsTypeList |
| NUMBER & TYPES OF OBSERV. | |
| double | interval |
| INTERVAL (optional). | |
| DayTime | firstObs |
| TIME OF FIRST OBS. | |
| RinexSatID | firstSystem |
| RINEX satellite system of FIRST OBS timetag. | |
| DayTime | lastObs |
| TIME OF LAST OBS (optional). | |
| RinexSatID | lastSystem |
| RINEX satellite system of LAST OBS timetag. | |
| int | receiverOffset |
| RCV CLOCK OFFS APPL (optional). | |
| int | leapSeconds |
| LEAP SECONDS (optional). | |
| short | numSVs |
| NUMBER OF SATELLITES in following map (optional). | |
| std::map< SatID, std::vector< int > > | numObsForSat |
| PRN / # OF OBS (optional). | |
| unsigned long | valid |
| Bits set when individual header members are present and valid. | |
| int | numObs |
| used to save the number of obs on # / TYPES continuation lines. | |
| RinexSatID | lastPRN |
| used to save the current PRN while reading PRN/OBS continuation lines. | |
Static Public Attributes | |
| const std::vector< RinexObsType > | StandardRinexObsTypes |
| std::vector< RinexObsType > | RegisteredRinexObsTypes = RinexObsHeader::StandardRinexObsTypes |
RinexObsHeaderFormatStrings | |
RINEX Observation Header Formatting Strings | |
| const std::string | versionString = "RINEX VERSION / TYPE" |
| "RINEX VERSION / TYPE" | |
| const std::string | runByString = "PGM / RUN BY / DATE" |
| "PGM / RUN BY / DATE" | |
| const std::string | commentString = "COMMENT" |
| "COMMENT" | |
| const std::string | markerNameString = "MARKER NAME" |
| "MARKER NAME" | |
| const std::string | markerNumberString = "MARKER NUMBER" |
| "MARKER NUMBER" | |
| const std::string | observerString = "OBSERVER / AGENCY" |
| "OBSERVER / AGENCY" | |
| const std::string | receiverString = "REC # / TYPE / VERS" |
| "REC # / TYPE / VERS" | |
| const std::string | antennaTypeString = "ANT # / TYPE" |
| "ANT # / TYPE" | |
| const std::string | antennaPositionString = "APPROX POSITION XYZ" |
| "APPROX POSITION XYZ" | |
| const std::string | antennaOffsetString = "ANTENNA: DELTA H/E/N" |
| "ANTENNA: DELTA H/E/N" | |
| const std::string | waveFactString = "WAVELENGTH FACT L1/2" |
| "WAVELENGTH FACT L1/2" | |
| const std::string | numObsString = "# / TYPES OF OBSERV" |
| "# / TYPES OF OBSERV" | |
| const std::string | intervalString = "INTERVAL" |
| "INTERVAL" | |
| const std::string | firstTimeString = "TIME OF FIRST OBS" |
| "TIME OF FIRST OBS" | |
| const std::string | lastTimeString = "TIME OF LAST OBS" |
| "TIME OF LAST OBS" | |
| const std::string | receiverOffsetString = "RCV CLOCK OFFS APPL" |
| "RCV CLOCK OFFS APPL" | |
| const std::string | leapSecondsString = "LEAP SECONDS" |
| "LEAP SECONDS" | |
| const std::string | numSatsString = "# OF SATELLITES" |
| "# OF SATELLITES" | |
| const std::string | prnObsString = "PRN / # OF OBS" |
| "PRN / # OF OBS" | |
| const std::string | endOfHeader = "END OF HEADER" |
| "END OF HEADER" | |
Standard RINEX observation types | |
| const RinexObsType | UN |
| const RinexObsType | L1 |
| const RinexObsType | L2 |
| const RinexObsType | C1 |
| const RinexObsType | C2 |
| const RinexObsType | P1 |
| const RinexObsType | P2 |
| const RinexObsType | D1 |
| const RinexObsType | D2 |
| const RinexObsType | S1 |
| const RinexObsType | S2 |
| const RinexObsType | T1 |
| const RinexObsType | T2 |
| const RinexObsType | C5 |
| const RinexObsType | L5 |
| const RinexObsType | D5 |
| const RinexObsType | S5 |
| const RinexObsType | C6 |
| const RinexObsType | L6 |
| const RinexObsType | D6 |
| const RinexObsType | S6 |
| const RinexObsType | C7 |
| const RinexObsType | L7 |
| const RinexObsType | D7 |
| const RinexObsType | S7 |
| const RinexObsType | C8 |
| const RinexObsType | L8 |
| const RinexObsType | D8 |
| const RinexObsType | S8 |
Protected Member Functions | |
| virtual void | reallyPutRecord (FFStream &s) const throw (std::exception, FFStreamError, gpstk::StringUtils::StringException) |
| outputs this record to the stream correctly formatted. | |
| virtual void | reallyGetRecord (FFStream &s) throw (std::exception, FFStreamError, gpstk::StringUtils::StringException) |
| This function retrieves the RINEX Header from the given FFStream. | |
Friends | |
| class | RinexObsData |
|
|
Validity bits for the RINEX Observation Header.
Definition at line 119 of file RinexObsHeader.hpp. |
|
|
A Simple Constructor.
Definition at line 74 of file RinexObsHeader.hpp. |
|
|
Destructor.
Definition at line 259 of file RinexObsHeader.hpp. |
|
|
Clear (empty out) header.
Definition at line 78 of file RinexObsHeader.hpp. Referenced by RinexObsHeaderTouchHeaderMerge::operator()(). |
|
|
This function converts the RinexObsType in oneObs to a string.
Definition at line 852 of file RinexObsHeader.cpp. References RinexObsHeader::RinexObsType::type. |
|
|
This function converts the string in oneObs to a RinexObsType.
Definition at line 837 of file RinexObsHeader.cpp. Referenced by RinexObsHeader::dump(). |
|
|
|
RinexObsHeader is a "header" so this function always returns true.
Reimplemented from FFData. Definition at line 263 of file RinexObsHeader.hpp. |
|
|
Return boolean : is this a valid Rinex header?
Definition at line 302 of file RinexObsHeader.hpp. |
|
|
Compute the number of valid header records which WriteHeaderRecords() will write.
Definition at line 185 of file RinexObsHeader.cpp. References RinexObsHeader::commentList, RinexObsHeader::extraWaveFactList, RinexObsHeader::numObsForSat, RinexObsHeader::obsTypeList, and RinexObsHeader::valid. |
|
|
Parse a single header record, and modify valid accordingly. Used by reallyGetRecord for both RinexObsHeader and RinexObsData. Definition at line 522 of file RinexObsHeader.cpp. References gpstk::StringUtils::asDouble(), gpstk::StringUtils::asInt(), RinexSatID::fromString(), GPSTK_RETHROW, GPSTK_THROW, gpstk::parseTime(), RinexObsHeader::ExtraWaveFact::satList, gpstk::StringUtils::strip(), SatID::system, and RinexObsHeader::ExtraWaveFact::wavelengthFactor. |
|
|
This function retrieves the RINEX Header from the given FFStream. If an stream error is encountered, the stream is reset to its original position and its fail-bit is set.
Implements FFData. Definition at line 758 of file RinexObsHeader.cpp. References gpstk::StringUtils::asString(), FFTextStream::formattedGetLine(), GPSTK_RETHROW, GPSTK_THROW, RinexObsStream::header, RinexObsStream::headerRead, and gpstk::StringUtils::stripTrailing(). |
|
|
outputs this record to the stream correctly formatted.
Implements FFData. Definition at line 143 of file RinexObsHeader.cpp. References Exception::addText(), gpstk::StringUtils::asString(), GPSTK_RETHROW, GPSTK_THROW, and RinexObsStream::header. |
|
|
Write all valid header records to the given stream. Used by reallyPutRecord for both RinexObsHeader and RinexObsData. Definition at line 216 of file RinexObsHeader.cpp. References gpstk::StringUtils::asString(), GPSTK_RETHROW, GPSTK_THROW, gpstk::StringUtils::leftJustify(), FFTextStream::lineNumber, DayTime::printf(), gpstk::StringUtils::rightJustify(), and DayTime::setLocalTime(). |
|
|
Definition at line 325 of file RinexObsHeader.hpp. |
|
|
OBSERVER'S AGENCY.
Definition at line 233 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
ANTENNA: DELTA H/E/N.
Definition at line 240 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
"ANTENNA: DELTA H/E/N"
Definition at line 62 of file RinexObsHeader.cpp. |
|
|
APPROXIMATE POSITION XYZ.
Definition at line 239 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(), and ObsEphReaderFramework::initialize(). |
|
|
"APPROX POSITION XYZ"
Definition at line 61 of file RinexObsHeader.cpp. |
|
|
"ANT # / TYPE"
Definition at line 60 of file RinexObsHeader.cpp. |
|
|
ANTENNA NUMBER.
Definition at line 238 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
ANTENNA TYPE.
Definition at line 238 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Comments in header (optional).
Definition at line 229 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(), RinexObsHeader::NumberHeaderRecordsToBeWritten(), and RinexObsHeaderTouchHeaderMerge::operator()(). |
|
|
"COMMENT"
Definition at line 55 of file RinexObsHeader.cpp. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
When the program was run.
Definition at line 227 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
"END OF HEADER"
Definition at line 72 of file RinexObsHeader.cpp. |
|
|
extra (per PRN) WAVELENGTH FACTORS
Definition at line 242 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(), and RinexObsHeader::NumberHeaderRecordsToBeWritten(). |
|
|
Who ran the program.
Definition at line 227 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
The program used to generate this file.
Definition at line 227 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
RINEX FILETYPE (Observation Navigation etc).
Definition at line 223 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
TIME OF FIRST OBS.
Definition at line 245 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
RINEX satellite system of FIRST OBS timetag.
Definition at line 246 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
"TIME OF FIRST OBS"
Definition at line 66 of file RinexObsHeader.cpp. |
|
|
INTERVAL (optional).
Definition at line 244 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
"INTERVAL"
Definition at line 65 of file RinexObsHeader.cpp. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TIME OF LAST OBS (optional).
Definition at line 247 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
used to save the current PRN while reading PRN/OBS continuation lines.
Definition at line 255 of file RinexObsHeader.hpp. |
|
|
RINEX satellite system of LAST OBS timetag.
Definition at line 248 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
"TIME OF LAST OBS"
Definition at line 67 of file RinexObsHeader.cpp. |
|
|
LEAP SECONDS (optional).
Definition at line 250 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
"LEAP SECONDS"
Definition at line 69 of file RinexObsHeader.cpp. |
|
|
MARKER NAME.
Definition at line 231 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
"MARKER NAME"
Definition at line 56 of file RinexObsHeader.cpp. |
|
|
MARKER NUMBER (optional).
Definition at line 231 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
"MARKER NUMBER"
Definition at line 57 of file RinexObsHeader.cpp. |
|
|
used to save the number of obs on # / TYPES continuation lines.
Definition at line 254 of file RinexObsHeader.hpp. |
|
|
PRN / # OF OBS (optional).
Definition at line 252 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(), and RinexObsHeader::NumberHeaderRecordsToBeWritten(). |
|
|
"# / TYPES OF OBSERV"
Definition at line 64 of file RinexObsHeader.cpp. |
|
|
"# OF SATELLITES"
Definition at line 70 of file RinexObsHeader.cpp. |
|
|
NUMBER OF SATELLITES in following map (optional).
Definition at line 251 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
OBSERVER : who collected the data.
Definition at line 233 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
"OBSERVER / AGENCY"
Definition at line 58 of file RinexObsHeader.cpp. |
|
|
NUMBER & TYPES OF OBSERV.
Definition at line 243 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(), RinexObsHeader::NumberHeaderRecordsToBeWritten(), RinexObsHeaderTouchHeaderMerge::operator()(), RinexObsData::reallyGetRecord(), RinexObsData::reallyPutRecord(), and gpstk::SatPassFromRinexFiles(). |
|
|
|
|
|
|
|
|
"PRN / # OF OBS"
Definition at line 71 of file RinexObsHeader.cpp. |
|
|
RCV CLOCK OFFS APPL (optional).
Definition at line 249 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
"RCV CLOCK OFFS APPL"
Definition at line 68 of file RinexObsHeader.cpp. |
|
|
"REC # / TYPE / VERS"
Definition at line 59 of file RinexObsHeader.cpp. |
|
|
RECEIVER NUMBER.
Definition at line 235 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
RECEIVER TYPE.
Definition at line 235 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
RECEIVER VERSION.
Definition at line 235 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
Definition at line 141 of file RinexObsHeader.cpp. |
|
|
"PGM / RUN BY / DATE"
Definition at line 54 of file RinexObsHeader.cpp. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
system; one of {RinexSatID.system, Mixed}
Definition at line 225 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
|
|
|
|
|
|
|
|
|
Bits set when individual header members are present and valid.
Definition at line 253 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(), and RinexObsHeader::NumberHeaderRecordsToBeWritten(). |
|
|
RINEX VERSION & TYPE.
Definition at line 222 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
|
|
"RINEX VERSION / TYPE"
Definition at line 53 of file RinexObsHeader.cpp. |
|
|
"WAVELENGTH FACT L1/2"
Definition at line 63 of file RinexObsHeader.cpp. |
|
|
default WAVELENGTH FACTORS
Definition at line 241 of file RinexObsHeader.hpp. Referenced by RinexObsHeader::dump(). |
1.3.9.1