BCIonoCorrector.cpp
Go to the documentation of this file.
1 //==============================================================================
2 //
3 // This file is part of GNSSTk, the ARL:UT GNSS Toolkit.
4 //
5 // The GNSSTk is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU Lesser General Public License as published
7 // by the Free Software Foundation; either version 3.0 of the License, or
8 // any later version.
9 //
10 // The GNSSTk is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with GNSSTk; if not, write to the Free Software Foundation,
17 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
18 //
19 // This software was developed by Applied Research Laboratories at the
20 // University of Texas at Austin.
21 // Copyright 2004-2022, The Board of Regents of The University of Texas System
22 //
23 //==============================================================================
24 
25 //==============================================================================
26 //
27 // This software was developed by Applied Research Laboratories at the
28 // University of Texas at Austin, under contract to an agency or agencies
29 // within the U.S. Department of Defense. The U.S. Government retains all
30 // rights to use, duplicate, distribute, disclose, or release this software.
31 //
32 // Pursuant to DoD Directive 523024
33 //
34 // DISTRIBUTION STATEMENT A: This software has been approved for public
35 // release, distribution is unlimited.
36 //
37 //==============================================================================
38 
39 
40 #include "BCIonoCorrector.hpp"
41 
42 namespace gnsstk
43 {
46  : navLib(nl)
47  {
49  }
50 
51 
53  getCorr(const Position& rxPos, const Position& svPos,
54  const SatID& sat, const ObsID& obs,
55  const CommonTime& when, NavType nav,
56  double& corrOut)
57  {
58  if (navLib.getIonoCorr(sat.system, when, rxPos, svPos, obs.band,
59  corrOut, nav))
60  {
61  return true;
62  }
63  corrOut = std::numeric_limits<double>::quiet_NaN();
64  return false;
65  }
66 
67 
69  getCorr(const Position& rxPos, const Xvt& svPos,
70  const SatID& sat, const ObsID& obs,
71  const CommonTime& when, NavType nav,
72  double& corrOut)
73  {
74  Position svp(svPos.x);
75  if (navLib.getIonoCorr(sat.system, when, rxPos, svp, obs.band,
76  corrOut, nav))
77  {
78  return true;
79  }
80  corrOut = std::numeric_limits<double>::quiet_NaN();
81  return false;
82  }
83 } // namespace gnsstk
gnsstk::BCIonoCorrector::BCIonoCorrector
BCIonoCorrector(NavLibrary &nl)
Definition: BCIonoCorrector.cpp:45
gnsstk::BCIonoCorrector::getCorr
bool getCorr(const Position &rxPos, const Position &svPos, const SatID &sat, const ObsID &obs, const CommonTime &when, NavType nav, double &corrOut) override
Definition: BCIonoCorrector.cpp:53
gnsstk::NavLibrary::getIonoCorr
bool getIonoCorr(SatelliteSystem sys, const CommonTime &when, const Position &rxgeo, const Position &svgeo, CarrierBand band, double &corrOut, NavType nt=NavType::Any)
Definition: NavLibrary.cpp:162
gnsstk::SatID
Definition: SatID.hpp:89
gnsstk::BCIonoCorrector::navLib
NavLibrary & navLib
Reference to the nav library from which we will get iono data.
Definition: BCIonoCorrector.hpp:74
gnsstk::ObsID::band
CarrierBand band
Definition: ObsID.hpp:200
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::Xvt::x
Triple x
Sat position ECEF Cartesian (X,Y,Z) meters.
Definition: Xvt.hpp:151
gnsstk::NavLibrary
Definition: NavLibrary.hpp:944
gnsstk::ObsID
Definition: ObsID.hpp:82
gnsstk::CommonTime
Definition: CommonTime.hpp:84
nl
int nl
Definition: IERS1996NutationData.hpp:44
gnsstk::Xvt
Definition: Xvt.hpp:60
BCIonoCorrector.hpp
gnsstk::SatID::system
SatelliteSystem system
System for this satellite.
Definition: SatID.hpp:156
gnsstk::Position
Definition: Position.hpp:136
gnsstk::NavType
NavType
Supported navigation types.
Definition: NavType.hpp:58
gnsstk::CorrectorType::Iono
@ Iono
Ionospheric corrector.
gnsstk::GroupPathCorrector::corrType
CorrectorType corrType
Set by child classes, indicates what type of bias is computed.
Definition: GroupPathCorrector.hpp:87


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