ORDEpoch.hpp
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 
45 #ifndef ORDEPOCH_HPP
46 #define ORDEPOCH_HPP
47 
48 #include <map>
49 #include "Exception.hpp"
50 #include "ObsRngDev.hpp"
51 #include "ClockModel.hpp"
52 #include "SatID.hpp"
53 
54 namespace gnsstk
55 {
57 
58 
59  class ORDEpoch
60  {
61  public:
62  ORDEpoch() : wonky(false) {}
63 
65  typedef std::map<SatID, ObsRngDev> ORDMap;
66 
67  ORDEpoch& removeORD(const SatID& svid) noexcept
68  {
69  ORDMap::iterator i = ords.find(svid);
70  if(i != ords.end())
71  ords.erase(i);
72  return *this;
73  }
74 
75  ORDEpoch& applyClockModel(const ClockModel& cm) noexcept
76  {
77  if (cm.isOffsetValid(time))
78  {
79  clockOffset = cm.getOffset(time);
81  }
82  return *this;
83  }
84 
85  ORDEpoch& removeOffset(const double offset) noexcept
86  {
87  ORDMap::iterator i;
88  for (i = ords.begin(); i != ords.end(); i++)
89  i->second.applyClockOffset(offset);
90  return *this;
91  }
92 
97  bool wonky;
98 
99  friend std::ostream& operator<<(std::ostream& s,
100  const ORDEpoch& oe)
101  noexcept
102  {
103  s << "t=" << oe.time
104  << " clk=" << oe.clockOffset << std::endl;
105  ORDMap::const_iterator i;
106  for (i=oe.ords.begin(); i!=oe.ords.end(); i++)
107  s << i->second << std::endl;
108  return s;
109  }
110 
111  };
112 
113  // this is a store of ORDs over time
114  typedef std::map<gnsstk::CommonTime, gnsstk::ORDEpoch> ORDEpochMap;
115 
117 }
118 #endif
example3.svid
svid
Definition: example3.py:19
gnsstk::ORDEpochMap
std::map< gnsstk::CommonTime, gnsstk::ORDEpoch > ORDEpochMap
Definition: ORDEpoch.hpp:114
gnsstk::ValidType< double >
gnsstk::SatID
Definition: SatID.hpp:89
SatID.hpp
gnsstk::ORDEpoch::clockOffset
vdouble clockOffset
clock bias value (application defined units)
Definition: ORDEpoch.hpp:93
gnsstk::ORDEpoch::wonky
bool wonky
Indicates that this epoch is suspect.
Definition: ORDEpoch.hpp:97
gnsstk::ORDEpoch::ORDEpoch
ORDEpoch()
Definition: ORDEpoch.hpp:62
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::ORDEpoch::ORDMap
std::map< SatID, ObsRngDev > ORDMap
defines a store for each SV's ord, indexed by prn
Definition: ORDEpoch.hpp:65
gnsstk::ORDEpoch::operator<<
friend std::ostream & operator<<(std::ostream &s, const ORDEpoch &oe) noexcept
Definition: ORDEpoch.hpp:99
ObsRngDev.hpp
gnsstk::CommonTime
Definition: CommonTime.hpp:84
gnsstk::ClockModel
Definition: ClockModel.hpp:62
gnsstk::ORDEpoch::ords
ORDMap ords
map of ORDs in epoch
Definition: ORDEpoch.hpp:95
example5.oe
oe
Definition: example5.py:19
gnsstk::ORDEpoch
Definition: ORDEpoch.hpp:59
Exception.hpp
gnsstk::ORDEpoch::time
gnsstk::CommonTime time
Definition: ORDEpoch.hpp:96
gnsstk::ORDEpoch::removeORD
ORDEpoch & removeORD(const SatID &svid) noexcept
Definition: ORDEpoch.hpp:67
gnsstk::ORDEpoch::removeOffset
ORDEpoch & removeOffset(const double offset) noexcept
Definition: ORDEpoch.hpp:85
ClockModel.hpp
gnsstk::ORDEpoch::applyClockModel
ORDEpoch & applyClockModel(const ClockModel &cm) noexcept
Definition: ORDEpoch.hpp:75
gnsstk::ORDEpoch::clockResidual
vdouble clockResidual
clock bias minus expected value
Definition: ORDEpoch.hpp:94


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