IonoModelStore.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 GNSSTK_IONOMODELSTORE_HPP
46 #define GNSSTK_IONOMODELSTORE_HPP
47 
48 #include <map>
49 #include "CommonTime.hpp"
50 #include "CarrierBand.hpp"
51 #include "IonoModel.hpp"
52 
53 namespace gnsstk
54 {
56 
57 
63  {
64  public:
65 
69  NEW_EXCEPTION_CLASS(NoIonoModelFound, gnsstk::Exception);
70 
71 
74 
76  virtual ~IonoModelStore() {}
77 
88  virtual double getCorrection(const CommonTime& time,
89  const Position& rxgeo,
90  double svel,
91  double svaz,
92  CarrierBand band = CarrierBand::L1) const;
93 
100  bool addIonoModel(const CommonTime& mt,
101  const IonoModel& im) noexcept;
102 
108  void edit(const CommonTime& tmin,
109  const CommonTime& tmax = CommonTime::END_OF_TIME);
110 
113  void clear()
114  { ims.clear(); }
115 
120  virtual CommonTime getInitialTime() const;
121 
126  virtual CommonTime getFinalTime() const;
127 
131  virtual unsigned size() const
132  { return ims.size(); }
133 
137  virtual bool empty() const
138  { return ims.empty(); }
139 
143  virtual void dump(std::ostream& s=std::cout) const;
144 
145  private:
146 
147 
148  typedef std::map<CommonTime, IonoModel> IonoModelMap;
149 
151 
152 
153  }; // End of class 'IonoModelStore'
154 
156 
157 } // End of namespace gnsstk
158 
159 #endif // GNSSTK_IONOMODELSTORE_HPP
gnsstk::IonoModelStore::~IonoModelStore
virtual ~IonoModelStore()
Destructor.
Definition: IonoModelStore.hpp:76
gnsstk::CarrierBand
CarrierBand
Definition: CarrierBand.hpp:54
gnsstk::IonoModelStore::dump
virtual void dump(std::ostream &s=std::cout) const
Definition: IonoModelStore.cpp:157
gnsstk::IonoModelStore::IonoModelMap
std::map< CommonTime, IonoModel > IonoModelMap
Definition: IonoModelStore.hpp:148
IonoModel.hpp
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::Exception
Definition: Exception.hpp:151
CarrierBand.hpp
gnsstk::IonoModelStore::clear
void clear()
Definition: IonoModelStore.hpp:113
gnsstk::CommonTime::END_OF_TIME
static const GNSSTK_EXPORT CommonTime END_OF_TIME
latest representable CommonTime
Definition: CommonTime.hpp:104
gnsstk::IonoModelStore::getInitialTime
virtual CommonTime getInitialTime() const
Definition: IonoModelStore.cpp:145
gnsstk::IonoModelStore::IonoModelStore
IonoModelStore()
Constructor.
Definition: IonoModelStore.hpp:73
gnsstk::IonoModelStore
Definition: IonoModelStore.hpp:62
gnsstk::IonoModelStore::addIonoModel
bool addIonoModel(const CommonTime &mt, const IonoModel &im) noexcept
Definition: IonoModelStore.cpp:88
gnsstk::IonoModelStore::edit
void edit(const CommonTime &tmin, const CommonTime &tmax=CommonTime::END_OF_TIME)
Definition: IonoModelStore.cpp:117
example4.time
time
Definition: example4.py:103
gnsstk::CommonTime
Definition: CommonTime.hpp:84
gnsstk::IonoModelStore::getFinalTime
virtual CommonTime getFinalTime() const
Definition: IonoModelStore.cpp:151
gnsstk::IonoModelStore::ims
IonoModelMap ims
Definition: IonoModelStore.hpp:150
gnsstk::IonoModelStore::size
virtual unsigned size() const
Definition: IonoModelStore.hpp:131
gnsstk::CarrierBand::L1
@ L1
GPS L1, Galileo E1, SBAS L1, QZSS L1, BeiDou L1.
gnsstk::IonoModel
Definition: IonoModel.hpp:70
CommonTime.hpp
gnsstk::IonoModelStore::NEW_EXCEPTION_CLASS
NEW_EXCEPTION_CLASS(NoIonoModelFound, gnsstk::Exception)
gnsstk::Position
Definition: Position.hpp:136
gnsstk::IonoModelStore::getCorrection
virtual double getCorrection(const CommonTime &time, const Position &rxgeo, double svel, double svaz, CarrierBand band=CarrierBand::L1) const
Definition: IonoModelStore.cpp:61
gnsstk::IonoModelStore::empty
virtual bool empty() const
Definition: IonoModelStore.hpp:137


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