This is a class to read and DCB(Differences of Code Biases) data file from CODE.
You can find DCB data at:
ftp.unibe.ch/aiub/BSWUSER50/ORB - daily P1-P2 ftp.unibe.ch/aiub/CODE - monthly P1-P2 and P1-C1
You should use different objects to load different DCB files. A typical way to use these classes follows:
Definition at line 88 of file DCBDataReader.hpp.
#include <DCBDataReader.hpp>

Classes | |
| struct | DailyDCBData |
| A structure used to store daily DCB data. More... | |
Public Member Functions | |
| DCBDataReader () | |
| Default constructor. More... | |
| DCBDataReader (const char *fn) | |
| DCBDataReader (const std::string &fn) | |
| double | getDCB (const int &prn, const SatelliteSystem &system=SatelliteSystem::GPS) |
| double | getDCB (const SatID &sat) |
| double | getDCB (const std::string &station, const SatelliteSystem &system=SatelliteSystem::GPS) |
| virtual void | open (const char *fn) |
| Method to open AND load DCB data file. More... | |
| virtual void | open (const std::string &fn) |
| virtual | ~DCBDataReader () |
| Destructor. More... | |
Public Member Functions inherited from gnsstk::FFTextStream | |
| FFTextStream () | |
| Default constructor. More... | |
| FFTextStream (const char *fn, std::ios::openmode mode=std::ios::in) | |
| FFTextStream (const std::string &fn, std::ios::openmode mode=std::ios::in) | |
| void | formattedGetLine (std::string &line, const bool expectEOF=false) |
| virtual void | open (const char *fn, std::ios::openmode mode) |
| Overrides open to reset the line number. More... | |
| virtual void | open (const std::string &fn, std::ios::openmode mode) |
| Overrides open to reset the line number. More... | |
| virtual | ~FFTextStream () |
| Destructor. More... | |
Public Member Functions inherited from gnsstk::FFStream | |
| void | conditionalThrow (void) |
| void | dumpState (std::ostream &s=std::cout) const |
| A function to help debug FFStreams. More... | |
| FFStream () | |
| Default constructor, initialize internal data. More... | |
| FFStream (const char *fn, std::ios::openmode mode=std::ios::in) | |
| FFStream (const std::string &fn, std::ios::openmode mode=std::ios::in) | |
| virtual | ~FFStream () |
| Virtual destructor, close the stream etc. More... | |
Private Types | |
| typedef std::map< std::string, double > | ReceiverDCBData |
| typedef std::map< SatID, double > | SatDCBData |
Private Member Functions | |
| virtual void | loadData () |
Private Attributes | |
| DailyDCBData | allDCB |
| Object holding all of the DCB data. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from gnsstk::FFStream | |
| static bool | isFFStream (std::istream &i) |
| Check if the input stream is the kind of RinexObsStream. More... | |
Public Attributes inherited from gnsstk::FFTextStream | |
| unsigned int | lineNumber |
Public Attributes inherited from gnsstk::FFStream | |
| std::string | filename |
| file name More... | |
| FFStreamError | mostRecentException |
| This stores the most recently thrown exception. More... | |
| unsigned int | recordNumber |
| keeps track of the number of records read More... | |
Protected Member Functions inherited from gnsstk::FFTextStream | |
| virtual void | tryFFStreamGet (FFData &rec) |
| virtual void | tryFFStreamPut (const FFData &rec) |
|
private |
Definition at line 158 of file DCBDataReader.hpp.
|
private |
Definition at line 149 of file DCBDataReader.hpp.
|
inline |
Default constructor.
Definition at line 92 of file DCBDataReader.hpp.
|
inline |
Common constructor. It will always open file for read and will load DCB data in one pass.
| fn | DCB data file to read |
Definition at line 101 of file DCBDataReader.hpp.
|
inline |
Common constructor. It will always open file for read and will load DCB data in one pass.
| fn | DCB data file to read |
Definition at line 112 of file DCBDataReader.hpp.
|
inlinevirtual |
Destructor.
Definition at line 149 of file DCBDataReader.hpp.
| double gnsstk::DCBDataReader::getDCB | ( | const int & | prn, |
| const SatelliteSystem & | system = SatelliteSystem::GPS |
||
| ) |
Get DCB data of a satellite
| prn | the satellite id you desired |
| system | the satellite system you desired |
Definition at line 193 of file DCBDataReader.cpp.
Get DCB data of a satellite
| sat | the satellite you desired |
Definition at line 186 of file DCBDataReader.cpp.
| double gnsstk::DCBDataReader::getDCB | ( | const std::string & | station, |
| const SatelliteSystem & | system = SatelliteSystem::GPS |
||
| ) |
Get DCB data of a receiver
| station | the receiver name you desired |
| system | the satellite system you desired |
Definition at line 202 of file DCBDataReader.cpp.
|
privatevirtual |
Method to store ocean tide harmonics data in this class' data map
| FFStreamError | |
| StringUtils::StringException |
Definition at line 53 of file DCBDataReader.cpp.
|
virtual |
Method to open AND load DCB data file.
Definition at line 154 of file DCBDataReader.cpp.
|
virtual |
Method to open AND load DCB data file. It doesn't clear data previously loaded.
Definition at line 172 of file DCBDataReader.cpp.
|
private |
Object holding all of the DCB data.
Definition at line 171 of file DCBDataReader.hpp.