DCBDataReader Class Reference
[Formatted file I/O]

#include <DCBDataReader.hpp>

Inheritance diagram for DCBDataReader:

Inheritance graph
[legend]
Collaboration diagram for DCBDataReader:

Collaboration graph
[legend]
List of all members.

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, SatID::systemGPS);
   double p1c1Sat1 = dcbP1C1.getDCB(1, SatID::systemGPS);
   
   double p1p2ALGO = dcbP1P2.getDCB("ALGO");

See also:
DCBDataReader.hpp

Definition at line 77 of file DCBDataReader.hpp.

Public Member Functions

 DCBDataReader ()
 Default constructor.
 DCBDataReader (const char *fn)
 Common constructor.
 DCBDataReader (const string &fn)
 Common constructor.
virtual void open (const char *fn)
 Method to open AND load DCB data file.
virtual void open (const string &fn)
 Method to open AND load DCB data file.
double getDCB (const SatID &sat)
 Get DCB data of a satellite.
double getDCB (const int &prn, const SatID::SatelliteSystem &system=SatID::systemGPS)
 Get DCB data of a satellite.
double getDCB (const string &station, const SatID::SatelliteSystem &system=SatID::systemGPS)
 Get DCB data of a receiver.
virtual ~DCBDataReader ()
 Destructor.


Constructor & Destructor Documentation

DCBDataReader  )  [inline]
 

Default constructor.

Definition at line 81 of file DCBDataReader.hpp.

DCBDataReader const char *  fn  )  [inline]
 

Common constructor.

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

Parameters:
fn DCB data file to read

Definition at line 90 of file DCBDataReader.hpp.

DCBDataReader const string &  fn  )  [inline]
 

Common constructor.

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

Parameters:
fn DCB data file to read

Definition at line 101 of file DCBDataReader.hpp.

virtual ~DCBDataReader  )  [inline, virtual]
 

Destructor.

Definition at line 137 of file DCBDataReader.hpp.


Member Function Documentation

double getDCB const string &  station,
const SatID::SatelliteSystem system = SatID::systemGPS
 

Get DCB data of a receiver.

Parameters:
station the receiver name you desired
system the satellite system you desired
Returns:
P1-P2

Definition at line 190 of file DCBDataReader.cpp.

double getDCB const int &  prn,
const SatID::SatelliteSystem system = SatID::systemGPS
 

Get DCB data of a satellite.

Parameters:
prn the satellite id you desired
system the satellite system you desired
Returns:
P1-P2 or P1-C1 depend what you have loaded

Definition at line 181 of file DCBDataReader.cpp.

double getDCB const SatID sat  ) 
 

Get DCB data of a satellite.

Parameters:
sat the satellite you desired
Returns:
P1-P2 or P1-C1 depend what you have loaded

Definition at line 174 of file DCBDataReader.cpp.

Referenced by CorrectCodeBiases::getDCBCorrection(), and ConvertC1ToP1::Process().

void open const string &  fn  )  [virtual]
 

Method to open AND load DCB data file.

It doesn't clear data previously loaded.

Definition at line 160 of file DCBDataReader.cpp.

void open const char *  fn  )  [virtual]
 

Method to open AND load DCB data file.

Definition at line 142 of file DCBDataReader.cpp.

Referenced by CorrectCodeBiases::setDCBFile(), and ConvertC1ToP1::setDCBFile().


The documentation for this class was generated from the following files:
Generated on Wed Feb 8 03:31:36 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1