-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathintrpSP3.h
executable file
·74 lines (55 loc) · 1.98 KB
/
intrpSP3.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// intrpSP3.h
// Class definitions for SP3 file objects
// and prototypes for precise orbit interpolation methods
#if !defined( __SP3FILE__ )
#define __SP3FILE__
#include <fstream>
#include <string>
#include "datetime.h"
using namespace std;
using namespace NGSdatetime;
//========================================== constants
const unsigned short MAXSVSEPH = 36;
const unsigned short MAXPARAM = 8;
//========================================== SP3 File Class
class SP3File
{
public:
SP3File();
SP3File(string pathFilename, ios_base::openmode );
~SP3File();
void setPathFilenameMode(string pathFilename,
ios_base::openmode );
void initHeaderInfo();
int readHeader();
int getSVPosVel(DateTime tuser, unsigned short PRNid, double rvec[]);
private:
string pathFilename;
fstream fileStream;
ios_base::openmode fileMode;
char formatVersion;
char modeFlag;
DateTime SP3StartTime;
DateTime SP3EndTime;
unsigned long numberSP3epochs;
string dataUsed;
string coordFrame;
string orbitType;
string sourceAgency;
unsigned long gpsWeek;
double secsOfWeek;
double SP3interval;
long SP3mjd;
double SP3fmjd;
unsigned short numberSP3svs;
unsigned short sp3PRNs[MAXSVSEPH + 1];
unsigned short svAccur[MAXSVSEPH + 1];
unsigned long lastEpochRead;
unsigned long currEpoch;
unsigned short numberSVparams;
double intrpCoeff[5 + 1][2 + 1][MAXPARAM + 1][MAXSVSEPH + 1];
double inputValues[10 + 1][MAXPARAM + 1][MAXSVSEPH + 1];
unsigned short numberGoodPRNs;
unsigned short numberGoodACCURs;
};
#endif