CorrectCodeBiases Class Reference
[GPSTk data structures]

#include <CorrectCodeBiases.hpp>

Inheritance diagram for CorrectCodeBiases:

Inheritance graph
[legend]
Collaboration diagram for CorrectCodeBiases:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class corrects observables from differential code biases.(P1-P2) or (P1-C1).

This class is meant to be used with the GNSS data structures objects found in "DataStructures" class.

A typical way to use this class follows:

   gnssRinex gRin;
   CorrectCodeBiases corr;
   coor.setDCBFile("P1P21001_ALL.DCB", "P1C11001.DCB");

   while(rin >> gRin)
   {
      gRin >> corr;
   }

The "CorrectObservables" object will visit every satellite in the GNSS data structure that is "gRin" and will correct the corresponding observables from the given effects.

When used with the ">>" operator, this class returns the same incoming data structure with the observables corrected. Be warned that if a given satellite does not have the observations required, it will be summarily deleted from the data structure.

Definition at line 75 of file CorrectCodeBiases.hpp.

Public Member Functions

 CorrectCodeBiases ()
 Default constructor.
virtual ~CorrectCodeBiases ()
 Default deconstructor.
virtual CorrectCodeBiasessetDCBFile (const string &fileP1P2, const string &fileP1C1)
 Sets name of file containing DCBs data.
virtual CorrectCodeBiasessetUsingC1 (const bool &useC1)
 Set if C1 has been used as P1 to calculate some combinations.
virtual CorrectCodeBiasessetReceiver (const string &receiver)
 Set receiver name.
virtual satTypeValueMapProcess (const DayTime &time, satTypeValueMap &gData) throw (ProcessingException)
 Returns a satTypeValueMap object, adding the new data generated when calling this object.
virtual gnssSatTypeValueProcess (gnssSatTypeValue &gData) throw (ProcessingException)
 Returns a gnnsSatTypeValue object, adding the new data generated when calling this object.
virtual gnssRinexProcess (gnssRinex &gData) throw (ProcessingException)
 Returns a gnnsRinex object, adding the new data generated when calling this object.
virtual int getIndex () const
 Returns an index identifying this object.
virtual std::string getClassName () const
 Returns a string identifying this object.

Protected Member Functions

virtual double getDCBCorrection (const string &receiver, const SatID &sat, const TypeID &type, const bool &useC1=false)
 get DCB(Differental Code Biases) corrections

Protected Attributes

DCBDataReader dcbP1P2
DCBDataReader dcbP1C1
bool usingC1
 if C1 is used as P1 to calculate some combination
std::string receiverName
 receiver name
bool crossCorrelationReceiver
 If it's a cross-correlation receiver, set it true.


Constructor & Destructor Documentation

CorrectCodeBiases  ) 
 

Default constructor.

Definition at line 76 of file CorrectCodeBiases.cpp.

~CorrectCodeBiases  )  [virtual]
 

Default deconstructor.

Definition at line 83 of file CorrectCodeBiases.cpp.

References CorrectCodeBiases::dcbP1C1, and CorrectCodeBiases::dcbP1P2.


Member Function Documentation

std::string getClassName  )  const [virtual]
 

Returns a string identifying this object.

Implements ProcessingClass.

Definition at line 72 of file CorrectCodeBiases.cpp.

double getDCBCorrection const string &  receiver,
const SatID sat,
const TypeID type,
const bool &  useC1 = false
[protected, virtual]
 

get DCB(Differental Code Biases) corrections

Definition at line 165 of file CorrectCodeBiases.cpp.

References gpstk::C_GPS_M, CorrectCodeBiases::dcbP1C1, CorrectCodeBiases::dcbP1P2, and DCBDataReader::getDCB().

int getIndex  )  const [virtual]
 

Returns an index identifying this object.

Implements ProcessingClass.

Definition at line 67 of file CorrectCodeBiases.cpp.

virtual gnssRinex& Process gnssRinex gData  )  throw (ProcessingException) [inline, virtual]
 

Returns a gnnsRinex object, adding the new data generated when calling this object.

Parameters:
gData Data object holding the data.

Implements ProcessingClass.

Definition at line 132 of file CorrectCodeBiases.hpp.

virtual gnssSatTypeValue& Process gnssSatTypeValue gData  )  throw (ProcessingException) [inline, virtual]
 

Returns a gnnsSatTypeValue object, adding the new data generated when calling this object.

Parameters:
gData Data object holding the data.

Implements ProcessingClass.

Definition at line 122 of file CorrectCodeBiases.hpp.

satTypeValueMap & Process const DayTime time,
satTypeValueMap gData
throw (ProcessingException) [virtual]
 

Returns a satTypeValueMap object, adding the new data generated when calling this object.

Parameters:
time Epoch corresponding to the data.
gData Data object holding the data.

Definition at line 109 of file CorrectCodeBiases.cpp.

References GPSTK_THROW, and gpstk::SatIDSet.

CorrectCodeBiases & setDCBFile const string &  fileP1P2,
const string &  fileP1C1
[virtual]
 

Sets name of file containing DCBs data.

Parameters:
name Name of the file containing DCB(P1-P2)
name Name of the file containing DCB(P1-C1)

Definition at line 94 of file CorrectCodeBiases.cpp.

References CorrectCodeBiases::dcbP1C1, CorrectCodeBiases::dcbP1P2, and DCBDataReader::open().

virtual CorrectCodeBiases& setReceiver const string &  receiver  )  [inline, virtual]
 

Set receiver name.

Parameters:
receiver Name of receiver with 4 char

Definition at line 102 of file CorrectCodeBiases.hpp.

virtual CorrectCodeBiases& setUsingC1 const bool &  useC1  )  [inline, virtual]
 

Set if C1 has been used as P1 to calculate some combinations.

Parameters:
useC1 If C1 has been used as P1, then set it to true

Definition at line 95 of file CorrectCodeBiases.hpp.


Member Data Documentation

bool crossCorrelationReceiver [protected]
 

If it's a cross-correlation receiver, set it true.

Definition at line 163 of file CorrectCodeBiases.hpp.

DCBDataReader dcbP1C1 [protected]
 

Definition at line 153 of file CorrectCodeBiases.hpp.

Referenced by CorrectCodeBiases::getDCBCorrection(), CorrectCodeBiases::setDCBFile(), and CorrectCodeBiases::~CorrectCodeBiases().

DCBDataReader dcbP1P2 [protected]
 

Definition at line 152 of file CorrectCodeBiases.hpp.

Referenced by CorrectCodeBiases::getDCBCorrection(), CorrectCodeBiases::setDCBFile(), and CorrectCodeBiases::~CorrectCodeBiases().

std::string receiverName [protected]
 

receiver name

Definition at line 159 of file CorrectCodeBiases.hpp.

bool usingC1 [protected]
 

if C1 is used as P1 to calculate some combination

Definition at line 156 of file CorrectCodeBiases.hpp.


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