GLOCNavIono.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 //
28 // This software was developed by Applied Research Laboratories at the
29 // University of Texas at Austin, under contract to an agency or agencies
30 // within the U.S. Department of Defense. The U.S. Government retains all
31 // rights to use, duplicate, distribute, disclose, or release this software.
32 //
33 // Pursuant to DoD Directive 523024
34 //
35 // DISTRIBUTION STATEMENT A: This software has been approved for public
36 // release, distribution is unlimited.
37 //
38 //==============================================================================
39 #include "GLOCNavIono.hpp"
40 #include "TimeString.hpp"
41 #include "YDSTime.hpp"
42 #include "FreqConv.hpp"
43 //#include "iossmart.hpp"
44 
45 using namespace std;
46 
47 namespace gnsstk
48 {
49  GLOCNavIono ::
50  GLOCNavIono()
51  : peakTECF2(std::numeric_limits<double>::quiet_NaN()),
52  solarIndex(std::numeric_limits<double>::quiet_NaN()),
53  geoIndex(std::numeric_limits<double>::quiet_NaN())
54  {
55  msgLenSec = 3.0;
56  }
57 
58 
59  bool GLOCNavIono ::
60  validate() const
61  {
63  return true;
64  }
65 
66 
67  void GLOCNavIono ::
68  dump(std::ostream& s, DumpDetail dl) const
69  {
70  const ios::fmtflags oldFlags = s.flags();
71  s.setf(ios::fixed, ios::floatfield);
72  s.setf(ios::right, ios::adjustfield);
73  s.setf(ios::uppercase);
74  s.precision(0);
75  s.fill(' ');
76  switch (dl)
77  {
79  NavData::dump(s,dl);
80  break;
81  case DumpDetail::Brief:
82  NavData::dump(s,dl);
83  s << " c_A = " << peakTECF2
84  << " c_F10.7 = " << solarIndex
85  << " c_Ap = " << geoIndex
86  << endl;
87  break;
88  case DumpDetail::Full:
89  // "header"
90  s << "*************************************************************"
91  << "***************" << endl
92  << "Ionospheric correction data" << endl << endl
93  << "PRN : " << setw(2) << signal.sat << " / "
94  << "SVN : " << setw(2);
95  std::string svn;
96  if (getSVN(signal.sat, timeStamp, svn))
97  {
98  s << svn;
99  }
100  s << endl << endl
101  << " TIMES OF INTEREST"
102  << endl << endl
103  << " " << getDumpTimeHdr(dl) << endl
104  << "Transmit: " << getDumpTime(dl, timeStamp) << endl
105  << endl
106  << " IONO PARAMETERS" << endl << endl;
107  // format chosed based on precision available in data
108  // << "c_A " << scifmt(16,7) << peakTECF2 << endl
109  // << "c_F10.7 " << scifmt(16,4) << solarIndex << endl
110  // << "c_Ap " << fixedfmt(16,0) << geoIndex << endl;
111  break;
112  }
113  s.flags(oldFlags);
114  }
115 
116 
117  double GLOCNavIono ::
119  const Position& rxgeo,
120  const Position& svgeo,
121  CarrierBand band) const
122  {
124  return std::numeric_limits<double>::quiet_NaN();
125  }
126 }
YDSTime.hpp
gnsstk::NavData::msgLenSec
double msgLenSec
Definition: NavData.hpp:199
gnsstk::NavData::dump
virtual void dump(std::ostream &s, DumpDetail dl) const
Definition: NavData.cpp:79
gnsstk::GLOCNavIono::geoIndex
double geoIndex
Geomagnetic activity index value (c_Ap).
Definition: GLOCNavIono.hpp:84
gnsstk::CarrierBand
CarrierBand
Definition: CarrierBand.hpp:54
gnsstk::NavData::getDumpTime
std::string getDumpTime(DumpDetail dl, const CommonTime &t) const
Definition: NavData.cpp:145
GLOCNavIono.hpp
gnsstk::NavData::getDumpTimeHdr
std::string getDumpTimeHdr(DumpDetail dl) const
Definition: NavData.cpp:127
gnsstk::NavData::signal
NavMessageID signal
Source signal identification for this navigation message data.
Definition: NavData.hpp:175
FreqConv.hpp
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::NavData::timeStamp
CommonTime timeStamp
Definition: NavData.hpp:173
gnsstk::GLOCNavIono::solarIndex
double solarIndex
Solar activity index value (c_F10.7).
Definition: GLOCNavIono.hpp:83
gnsstk::GLOCNavIono::peakTECF2
double peakTECF2
Factor of peak TEC of F2 layer (c_A).
Definition: GLOCNavIono.hpp:82
gnsstk::NavSatelliteID::sat
SatID sat
ID of satellite to which the nav data applies.
Definition: NavSatelliteID.hpp:169
gnsstk::CommonTime
Definition: CommonTime.hpp:84
gnsstk::GLOCNavIono::validate
bool validate() const override
Definition: GLOCNavIono.cpp:60
gnsstk::DumpDetail::Full
@ Full
Include all detailed information.
gnsstk::GLOCNavIono::dump
void dump(std::ostream &s, DumpDetail dl) const override
Definition: GLOCNavIono.cpp:68
gnsstk::DumpDetail
DumpDetail
Specify level of detail for dump output.
Definition: DumpDetail.hpp:51
gnsstk::DumpDetail::Brief
@ Brief
Limit output to <= 5 lines of minimal information.
std
Definition: Angle.hpp:142
gnsstk::Position
Definition: Position.hpp:136
gnsstk::GLOCNavIono::getIonoCorr
double getIonoCorr(const CommonTime &when, const Position &rxgeo, const Position &svgeo, CarrierBand band) const override
Definition: GLOCNavIono.cpp:118
gnsstk::DumpDetail::OneLine
@ OneLine
Limit output to minimal information on a single line.
gnsstk::NavData::getSVN
bool getSVN(const SatID &sat, const gnsstk::CommonTime &when, std::string &svn) const
Definition: NavData.hpp:150
TimeString.hpp


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