-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathComp_Bias.h
88 lines (65 loc) · 2.31 KB
/
Comp_Bias.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/*-------------------------------------------------------------------
Purpose: To compute phase bias for all satellite arcs data in the rinex file
-------------------------------------------------------------------
Author: Haroldo Antonio Marques
Date: Sept. of 2013
-------------------------------------------------------------------
Observation:
-------------------------------------------------------------------*/
#ifndef COMPBIAS
#define COMPBIAS
#include <iomanip>
#include <cmath>
#include <cstring>
#include <cctype>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
//#include<dir.h>
#include <sys/stat.h>
#include "CycleSlip.h"
#include "Class_TEC.h"
#include "rinex.h"
using namespace std;
using namespace NGSrinex; //namespace related to the RINEX class
using namespace CTEC;
using namespace CSLIP;
//Struct to be used in each epoch
typedef struct Mean_Phase_Code{
double Last_Diff_Li_Pi;
double Mean_Diff_Li_Pi; //mean of phase bias coputed recursevely
double Start_Time;
double End_Time;
int Count_Mean;
int arc_number;
}MEAN_PHASE_CODE;
//struct to store data for each arc
typedef struct Phase_Bias{
double Mean_Phase_Bias; //final mean phase bias for the arc
double Start_Time;
double End_Time;
int Count_Mean; //number of data in each arc
int arc_number; //number of the arc
}MEAN_PHASE_BIAS;
const int max_arc = 100;
//functions
void Comp_Bias( string filenameobs, Class_TEC Calc_Tec,MEAN_PHASE_BIAS Phase_Bias[][max_arc],
ofstream &File_Cycleslip);
void Close_PRN_Files();
bool directory_exists(string pathname);
int Create_Dir(string Directory);
double Get_Phase_Bias(int PRN, MEAN_PHASE_BIAS Phase_Bias[][max_arc], double MJD);
void Check_Sat_Out( int NS,
int isat[],
bool Sat_Epoch_Ant[],
bool Sat_History[],
bool SatOut[],
bool &flag_sat_out);
void Check_New_Sat( int NS, int isat[],
bool Sat_Epoch[],
bool Sat_History[],
bool New_Sat[],
bool &flag_sat_in);
int OpenPRNFile();
void Print_Data_PRN(int PRN, MEAN_PHASE_CODE *Sat_Average_Phase_Code);
#endif