Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
gnsstk::DCBDataReader Class Reference

Detailed Description

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:

// Declare some Antenna objects
DCBDataReader dcbP1P2("P1P21002_ALL.DCB");
DCBDataReader dcbP1C1("P1C11002.DCB");
double p1p2Sat1 = dcbP1P2.getDCB(1, SatelliteSystem::GPS);
double p1c1Sat1 = dcbP1C1.getDCB(1, SatelliteSystem::GPS);
double p1p2ALGO = dcbP1P2.getDCB("ALGO");
See also
DCBDataReader.hpp

Definition at line 88 of file DCBDataReader.hpp.

#include <DCBDataReader.hpp>

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

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)
 

Member Typedef Documentation

◆ ReceiverDCBData

typedef std::map< std::string, double > gnsstk::DCBDataReader::ReceiverDCBData
private

Definition at line 158 of file DCBDataReader.hpp.

◆ SatDCBData

typedef std::map< SatID, double > gnsstk::DCBDataReader::SatDCBData
private

Definition at line 149 of file DCBDataReader.hpp.

Constructor & Destructor Documentation

◆ DCBDataReader() [1/3]

gnsstk::DCBDataReader::DCBDataReader ( )
inline

Default constructor.

Definition at line 92 of file DCBDataReader.hpp.

◆ DCBDataReader() [2/3]

gnsstk::DCBDataReader::DCBDataReader ( const char *  fn)
inline

Common constructor. It will always open file for read and will load DCB data in one pass.

Parameters
fnDCB data file to read

Definition at line 101 of file DCBDataReader.hpp.

◆ DCBDataReader() [3/3]

gnsstk::DCBDataReader::DCBDataReader ( const std::string &  fn)
inline

Common constructor. It will always open file for read and will load DCB data in one pass.

Parameters
fnDCB data file to read

Definition at line 112 of file DCBDataReader.hpp.

◆ ~DCBDataReader()

virtual gnsstk::DCBDataReader::~DCBDataReader ( )
inlinevirtual

Destructor.

Definition at line 149 of file DCBDataReader.hpp.

Member Function Documentation

◆ getDCB() [1/3]

double gnsstk::DCBDataReader::getDCB ( const int &  prn,
const SatelliteSystem system = SatelliteSystem::GPS 
)

Get DCB data of a satellite

Parameters
prnthe satellite id you desired
systemthe satellite system you desired
Returns
P1-P2 or P1-C1 depend what you have loaded

Definition at line 193 of file DCBDataReader.cpp.

◆ getDCB() [2/3]

double gnsstk::DCBDataReader::getDCB ( const SatID sat)

Get DCB data of a satellite

Parameters
satthe satellite you desired
Returns
P1-P2 or P1-C1 depend what you have loaded

Definition at line 186 of file DCBDataReader.cpp.

◆ getDCB() [3/3]

double gnsstk::DCBDataReader::getDCB ( const std::string &  station,
const SatelliteSystem system = SatelliteSystem::GPS 
)

Get DCB data of a receiver

Parameters
stationthe receiver name you desired
systemthe satellite system you desired
Returns
P1-P2

Definition at line 202 of file DCBDataReader.cpp.

◆ loadData()

void gnsstk::DCBDataReader::loadData ( )
privatevirtual

Method to store ocean tide harmonics data in this class' data map

Exceptions
FFStreamError
StringUtils::StringException

Definition at line 53 of file DCBDataReader.cpp.

◆ open() [1/2]

void gnsstk::DCBDataReader::open ( const char *  fn)
virtual

Method to open AND load DCB data file.

Definition at line 154 of file DCBDataReader.cpp.

◆ open() [2/2]

void gnsstk::DCBDataReader::open ( const std::string &  fn)
virtual

Method to open AND load DCB data file. It doesn't clear data previously loaded.

Definition at line 172 of file DCBDataReader.cpp.

Member Data Documentation

◆ allDCB

DailyDCBData gnsstk::DCBDataReader::allDCB
private

Object holding all of the DCB data.

Definition at line 171 of file DCBDataReader.hpp.


The documentation for this class was generated from the following files:
gnsstk::SatelliteSystem::GPS
@ GPS
gnsstk::DCBDataReader::DCBDataReader
DCBDataReader()
Default constructor.
Definition: DCBDataReader.hpp:92


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