EOPStore.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 
44 #ifndef CLASS_EARTHORIENTSTORE_INCLUDE
45 #define CLASS_EARTHORIENTSTORE_INCLUDE
46 
47 //------------------------------------------------------------------------------------
48 // system includes
49 #include <iomanip>
50 #include <iostream>
51 #include <map>
52 #include <string>
53 // GNSSTk
54 #include "EOPPrediction.hpp"
55 #include "EarthOrientation.hpp"
56 #include "Exception.hpp"
57 #include "IERSConvention.hpp"
58 
59 //------------------------------------------------------------------------------------
60 namespace gnsstk
61 {
62 
69  class EOPStore
70  {
72  std::map<int, EarthOrientation> mapMJD_EOP;
73 
75  int begMJD, endMJD;
76 
77  public:
79  EOPStore() : begMJD(-1), endMJD(-1) {}
80 
82  void addEOP(int MJD, EarthOrientation& eop);
83 
90  int addEOP(int MJD, EOPPrediction& eopp);
91 
100  void addFile(const std::string& filename);
101 
109  void addEOPPFile(const std::string& filename);
110 
117  void addIERSFile(const std::string& filename);
118 
126  void edit(int mjdmin, int mjdmax);
127 
129  int size() { return mapMJD_EOP.size(); }
130 
132  void clear()
133  {
134  mapMJD_EOP.clear();
135  begMJD = endMJD = -1;
136  }
137 
144  void dump(short detail = 0, std::ostream& s = std::cout) const;
145 
147  int getFirstTimeMJD() { return begMJD; }
148 
150  int getLastTimeMJD() { return endMJD; }
151 
165  EarthOrientation getEOP(double mjd, const IERSConvention& conv);
166 
167  }; // end class EOPStore
168 
169 } // end namespace gnsstk
170 
171 #endif // CLASS_EARTHORIENTSTORE_INCLUDE
example6.mjd
mjd
Definition: example6.py:102
gnsstk::EOPStore::EOPStore
EOPStore()
Constructor.
Definition: EOPStore.hpp:79
gnsstk::EOPStore::size
int size()
return the number of entries in the store
Definition: EOPStore.hpp:129
gnsstk::EOPStore::addEOP
void addEOP(int MJD, EarthOrientation &eop)
Add to the store directly.
Definition: EOPStore.cpp:54
gnsstk::EOPStore::edit
void edit(int mjdmin, int mjdmax)
Definition: EOPStore.cpp:214
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::EOPStore
Definition: EOPStore.hpp:69
gnsstk::EOPStore::getEOP
EarthOrientation getEOP(double mjd, const IERSConvention &conv)
Definition: EOPStore.cpp:313
gnsstk::EOPStore::dump
void dump(short detail=0, std::ostream &s=std::cout) const
Definition: EOPStore.cpp:271
gnsstk::EOPStore::addEOPPFile
void addEOPPFile(const std::string &filename)
Definition: EOPStore.cpp:128
gnsstk::EOPStore::endMJD
int endMJD
Definition: EOPStore.hpp:75
gnsstk::EOPStore::clear
void clear()
clear the store
Definition: EOPStore.hpp:132
gnsstk::EOPStore::addFile
void addFile(const std::string &filename)
Definition: EOPStore.cpp:98
gnsstk::EOPStore::getLastTimeMJD
int getLastTimeMJD()
Return last time (MJD) in the store.
Definition: EOPStore.hpp:150
gnsstk::IERSConvention
IERSConvention
Definition: IERSConvention.hpp:69
gnsstk::EOPStore::getFirstTimeMJD
int getFirstTimeMJD()
Return first time (MJD) in the store.
Definition: EOPStore.hpp:147
IERSConvention.hpp
gnsstk::EOPStore::mapMJD_EOP
std::map< int, EarthOrientation > mapMJD_EOP
key is MJD at which the Earth orientation parameters apply
Definition: EOPStore.hpp:72
Exception.hpp
EarthOrientation.hpp
gnsstk::MJD
Definition: MJD.hpp:54
gnsstk::EOPStore::begMJD
int begMJD
first and last times in the store, -1 if store is empty.
Definition: EOPStore.hpp:75
gnsstk::EarthOrientation
Definition: EarthOrientation.hpp:93
EOPPrediction.hpp
gnsstk::EOPStore::addIERSFile
void addIERSFile(const std::string &filename)
Definition: EOPStore.cpp:156
gnsstk::EOPPrediction
Definition: EOPPrediction.hpp:81


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