OceanLoadTides.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_OCEANLOADING_INCLUDE
44 #define CLASS_OCEANLOADING_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 {
83  {
84  public:
87 
107  int initializeSites(std::vector<std::string>& sites,
108  std::string filename);
109 
114  bool isValid(std::string site)
115  {
116  return (coefficientMap.find(site) != coefficientMap.end());
117  }
118 
130  Triple computeDisplacement11(std::string site, EphTime t);
131 
146  Triple computeDisplacement(std::string site, EphTime t);
147 
153  Triple getPosition(std::string site)
154  {
155  Triple t(0.0, 0.0, 0.0);
156  std::map<std::string, std::vector<double>>::const_iterator it;
157  it = positionMap.find(site);
158  if (it != positionMap.end())
159  {
160  t[0] = it->second[0];
161  t[1] = it->second[1];
162  }
163  return t;
164  }
165 
166  private:
167  // Compute the astronomical angular arguments for each of the 11 tidal
168  // modes. Ref IERS 1996 pg 53.
169  // void SchwiderskiArg(int iyear, int doy, double sod, double* angles)
170  //;
171 
176  std::map<std::string, std::vector<double>> coefficientMap;
177 
182  std::map<std::string, std::vector<double>> positionMap;
183 
185  typedef struct
186  {
187  int n[6];
188  } NVector;
189 
191  static const int NSTD;
192 
194  static const int NDER;
195 
211  int deriveTides(const NVector SchTides[], const double amp[],
212  const double phs[], const double Dood[],
213  const double freqDood[], double ampDer[], double phsDer[],
214  double freq[], const int Nin);
215 
216  }; // end class OceanLoadTides
217 
218 } // end namespace gnsstk
219 
220 #endif // nothing below this
amp
static const double amp[]
Amplitudes (microarcsec); indexed using the iamp array below.
Definition: IERS2010CIOSeriesData.hpp:1630
EphTime.hpp
gnsstk::OceanLoadTides::NSTD
static const int NSTD
Number of standard (Schwiderski) tides read from BLQ file.
Definition: OceanLoadTides.hpp:191
gnsstk::Triple
Definition: Triple.hpp:68
gnsstk::OceanLoadTides::NVector
Used for convenience by computeDisplacements.
Definition: OceanLoadTides.hpp:185
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::OceanLoadTides::computeDisplacement
Triple computeDisplacement(std::string site, EphTime t)
Definition: OceanLoadTides.cpp:416
gnsstk::EphTime
Definition: EphTime.hpp:67
gnsstk::OceanLoadTides::isValid
bool isValid(std::string site)
Definition: OceanLoadTides.hpp:114
gnsstk::OceanLoadTides::NDER
static const int NDER
Number of derived tides computed by deriveTides()
Definition: OceanLoadTides.hpp:194
gnsstk::OceanLoadTides::computeDisplacement11
Triple computeDisplacement11(std::string site, EphTime t)
Definition: OceanLoadTides.cpp:273
gnsstk::OceanLoadTides
Definition: OceanLoadTides.hpp:82
Exception.hpp
Triple.hpp
gnsstk::OceanLoadTides::initializeSites
int initializeSites(std::vector< std::string > &sites, std::string filename)
Definition: OceanLoadTides.cpp:86
gnsstk::OceanLoadTides::getPosition
Triple getPosition(std::string site)
Definition: OceanLoadTides.hpp:153
gnsstk::OceanLoadTides::OceanLoadTides
OceanLoadTides()
Constructor.
Definition: OceanLoadTides.hpp:86
gnsstk::OceanLoadTides::deriveTides
int deriveTides(const NVector SchTides[], const double amp[], const double phs[], const double Dood[], const double freqDood[], double ampDer[], double phsDer[], double freq[], const int Nin)
Definition: OceanLoadTides.cpp:658
gnsstk::OceanLoadTides::positionMap
std::map< std::string, std::vector< double > > positionMap
Definition: OceanLoadTides.hpp:182
gnsstk::OceanLoadTides::coefficientMap
std::map< std::string, std::vector< double > > coefficientMap
Definition: OceanLoadTides.hpp:176


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