ComputePC Class Reference
[GPSTk data structures]

#include <ComputePC.hpp>

Inheritance diagram for ComputePC:

Inheritance graph
[legend]
Collaboration diagram for ComputePC:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class eases computing PC combination for GNSS data structures.

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:

   RinexObsStream rin("ebre0300.02o");

   gnssRinex gRin;
   ComputePC getPC;

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

The "ComputePC" object will visit every satellite in the GNSS data structure that is "gRin" and will try to compute its PC combination.

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

Sometimes, the Rinex observations file does not have P1, but provides C1 instead. In such cases, you must use the useC1() method.

All observations are in meters.

See also:
ComputeLinear.hpp and LinearCombinations.hpp for a different approach to the same task.
Warning:
When using C1 instead of P1 to compute this combination, be aware that instrumental errors will NOT cancel, introducing a bias that must be taken into account by other means.

Definition at line 86 of file ComputePC.hpp.

Public Member Functions

 ComputePC ()
 Default constructor.
virtual satTypeValueMapProcess (satTypeValueMap &gData) throw (ProcessingException)
 Returns a satTypeValueMap object, adding the new data generated when calling this object.
virtual ComputePCuseC1 (void)
 Some Rinex data files provide C1 instead of P1.
virtual int getIndex (void) const
 Returns an index identifying this object.
virtual std::string getClassName (void) const
 Returns a string identifying this object.
virtual ~ComputePC ()
 Destructor.

Protected Member Functions

virtual double getCombination (const double &obs1, const double &obs2)
 Compute the combination of observables.


Constructor & Destructor Documentation

ComputePC  ) 
 

Default constructor.

Definition at line 52 of file ComputePC.cpp.

virtual ~ComputePC  )  [inline, virtual]
 

Destructor.

Definition at line 119 of file ComputePC.hpp.


Member Function Documentation

std::string getClassName void   )  const [virtual]
 

Returns a string identifying this object.

Reimplemented from ComputeCombination.

Definition at line 47 of file ComputePC.cpp.

virtual double getCombination const double &  obs1,
const double &  obs2
[inline, protected, virtual]
 

Compute the combination of observables.

Implements ComputeCombination.

Definition at line 126 of file ComputePC.hpp.

References gpstk::GAMMA_GPS.

int getIndex void   )  const [virtual]
 

Returns an index identifying this object.

Reimplemented from ComputeCombination.

Definition at line 42 of file ComputePC.cpp.

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

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

Parameters:
gData Data object holding the data.

Reimplemented from ComputeCombination.

Definition at line 99 of file ComputePC.hpp.

virtual ComputePC& useC1 void   )  [inline, virtual]
 

Some Rinex data files provide C1 instead of P1.

Use this method in those cases.

Definition at line 106 of file ComputePC.hpp.


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