AtmLoadTides.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 
43 #ifndef CLASS_ATMOSPHERICLOADING_INCLUDE
44 #define CLASS_ATMOSPHERICLOADING_INCLUDE
45 
46 //------------------------------------------------------------------------------------
47 // system includes
48 #include <map>
49 #include <string>
50 #include <vector>
51 // GNSSTk
52 #include "EphTime.hpp"
53 #include "Exception.hpp"
54 #include "Triple.hpp"
55 
56 //------------------------------------------------------------------------------------
57 namespace gnsstk
58 {
71  {
72  public:
75 
89  int initializeSites(std::vector<std::string>& sites,
90  std::string filename);
91 
95  bool isValid(std::string site)
96  {
97  return (coefficientMap.find(site) != coefficientMap.end());
98  }
99 
112  Triple computeDisplacement(std::string site, EphTime t,
113  double UT1mUTC = 0);
114 
119  Triple getPosition(std::string site)
120  {
121  Triple t(0.0, 0.0, 0.0);
122  std::map<std::string, std::vector<double>>::const_iterator it;
123  it = positionMap.find(site);
124  if (it != positionMap.end())
125  {
126  t[0] = it->second[0];
127  t[1] = it->second[1];
128  }
129  return t;
130  }
131 
132  private:
136  std::map<std::string, std::vector<double>> coefficientMap;
137 
141  std::map<std::string, std::vector<double>> positionMap;
142 
143  }; // end class AtmLoadTides
144 
145 } // end namespace gnsstk
146 
147 #endif // end ifdef CLASS_ATMOSPHERICLOADING_INCLUDE
148 // nothing below this
gnsstk::AtmLoadTides
Definition: AtmLoadTides.hpp:70
gnsstk::AtmLoadTides::isValid
bool isValid(std::string site)
Definition: AtmLoadTides.hpp:95
EphTime.hpp
gnsstk::AtmLoadTides::positionMap
std::map< std::string, std::vector< double > > positionMap
Definition: AtmLoadTides.hpp:141
gnsstk::Triple
Definition: Triple.hpp:68
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::AtmLoadTides::computeDisplacement
Triple computeDisplacement(std::string site, EphTime t, double UT1mUTC=0)
Definition: AtmLoadTides.cpp:265
gnsstk::EphTime
Definition: EphTime.hpp:67
gnsstk::AtmLoadTides::initializeSites
int initializeSites(std::vector< std::string > &sites, std::string filename)
Definition: AtmLoadTides.cpp:75
gnsstk::AtmLoadTides::coefficientMap
std::map< std::string, std::vector< double > > coefficientMap
Definition: AtmLoadTides.hpp:136
Exception.hpp
Triple.hpp
gnsstk::AtmLoadTides::getPosition
Triple getPosition(std::string site)
Definition: AtmLoadTides.hpp:119
gnsstk::AtmLoadTides::AtmLoadTides
AtmLoadTides()
Constructor.
Definition: AtmLoadTides.hpp:74


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