// Explicit constructor, taking as input a Position object // containing reference station coordinates. IonexModel::IonexModel(const Position& RxCoordinates) throw(Exception) { pDefaultMaps = NULL; defaultObservable = TypeID::P1; useDCB = true; setIonoMapType("NONE"); setInitialRxPosition(RxCoordinates); } // End of constructor 'IonexModel::IonexModel()'
// Explicit constructor, taking as input a Position object // containing reference station coordinates. BasicModel::BasicModel(const Position& RxCoordinates) { minElev = 10.0; pDefaultEphemeris = NULL; defaultObservable = TypeID::C1; useTGD = false; setInitialRxPosition(RxCoordinates); setIndex(); } // End of 'BasicModel::BasicModel()'
// Method to set the initial (a priori) position of receiver. int BasicModel::setInitialRxPosition() { try { Position rxpos(0.0, 0.0, 0.0, Position::Cartesian, NULL); setInitialRxPosition(rxpos); return 0; } catch(GeometryException& e) { return -1; } } // End of method 'BasicModel::setInitialRxPosition()'
/* Explicit constructor, taking as input reference station * coordinates, ephemeris to be used, default observable * and whether TGD will be computed or not. * * @param RxCoordinates Reference station coordinates. * @param dEphemeris EphemerisStore object to be used by default. * @param dObservable Observable type to be used by default. * @param applyTGD Whether or not C1 observable will be * corrected from TGD effect or not. * */ BasicModel::BasicModel( const Position& RxCoordinates, XvtStore<SatID>& dEphemeris, const TypeID& dObservable, const bool& applyTGD ) { minElev = 10.0; setInitialRxPosition(RxCoordinates); setDefaultEphemeris(dEphemeris); defaultObservable = dObservable; useTGD = applyTGD; setIndex(); } // End of 'BasicModel::BasicModel()'
/** Explicit constructor, taking as input reference station * coordinates and ionex maps (Ionex Store object) to be used. * * @param RxCoordinates Receiver coordinates. * @param istore IonexStore object to be used by default. * @param dObservable Observable type to be used by default. * @param applyDCB Whether or not P1 observable will be * corrected from DCB effect. * @param ionoMapType Type of ionosphere mapping function (string) * @sa IonexStore::iono_mapping_function */ IonexModel::IonexModel( const Position& RxCoordinates, IonexStore& istore, const TypeID& dObservable, const bool& applyDCB, const std::string& ionoMap) throw(Exception) { setInitialRxPosition(RxCoordinates); setDefaultMaps(istore); defaultObservable = dObservable; useDCB = applyDCB; setIonoMapType(ionoMap); } // End of constructor 'IonexModel::IonexModel()'
/* Explicit constructor taking as input reference * station coordinates. * * Those coordinates may be Cartesian (X, Y, Z in meters) or Geodetic * (Latitude, Longitude, Altitude), but defaults to Cartesian. * * Also, a pointer to GeoidModel may be specified, but default is * NULL (in which case WGS84 values will be used). * * @param aRx first coordinate [ X(m), or latitude (degrees N) ] * @param bRx second coordinate [ Y(m), or longitude (degrees E) ] * @param cRx third coordinate [ Z, height above ellipsoid or * radius, in meters ] * @param s coordinate system (default is Cartesian, may be set * to Geodetic). * @param geoid pointer to GeoidModel (default is null, implies WGS84) */ BasicModel::BasicModel( const double& aRx, const double& bRx, const double& cRx, Position::CoordinateSystem s, GeoidModel *geoid ) { minElev = 10.0; pDefaultEphemeris = NULL; defaultObservable = TypeID::C1; useTGD = false; setInitialRxPosition(aRx, bRx, cRx, s, geoid); setIndex(); } // End of 'BasicModel::BasicModel()'
/* Method to set the initial (a priori) position of receiver before * Compute() method. * @return * 0 if OK * -1 if problems arose */ int ModeledPR::Prepare(const Position& RxCoordinates) { int result = setInitialRxPosition(RxCoordinates); // If everything is OK, the model is prepared if( result == 0 ) { modelPrepared = true; } else { modelPrepared = false; } return result; } // End of method 'ModeledPR::Prepare()'
/* Method to set the initial (a priori) position of receiver. * @return * 0 if OK * -1 if problems arose */ int BasicModel::setInitialRxPosition( const double& aRx, const double& bRx, const double& cRx, Position::CoordinateSystem s, GeoidModel *geoid ) { try { Position rxpos(aRx, bRx, cRx, s, geoid); setInitialRxPosition(rxpos); return 0; } catch(GeometryException& e) { return -1; } } // End of method 'BasicModel::setInitialRxPosition()'
// Method to set the initial (a priori) position of receiver. int IonexModel::setInitialRxPosition(void) throw(GeometryException) { try { Position rxpos(0.0, 0.0, 0.0, Position::Cartesian, NULL); setInitialRxPosition(rxpos); return 0; } catch(GeometryException) { return -1; } } // End of method 'IonexModel::setInitialRxPosition()'
/* Method to set the initial (a priori) position of receiver before * Compute() method. * @return * 0 if OK * -1 if problems arose */ int ModeledPR::Prepare( const double& aRx, const double& bRx, const double& cRx, Position::CoordinateSystem s, GeoidModel *geoid ) { int result = setInitialRxPosition(aRx, bRx, cRx, s, geoid); // If everything is OK, the model is prepared if( result == 0 ) { modelPrepared = true; } else { modelPrepared = false; } return result; } // End of method 'ModeledPR::Prepare()'
/// Default constructor. Observable C1 will be used for computations /// and satellites with elevation less than 10 degrees will be /// deleted. BasicModel() : minElev(10.0), pDefaultEphemeris(NULL), defaultObservable(TypeID::C1), useTGD(false) { setInitialRxPosition(); };
/// Initialization method virtual void InitializeValues() { setInitialRxPosition(); };