isce3  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
constants.h
1 // Copyright (c) 2017-, California Institute of Technology ("Caltech"). U.S.
2 // Government sponsorship acknowledged.
3 // All rights reserved.
4 //
5 // Author(s):
6 
7 #pragma once
8 
9 #include <complex>
10 
11 #ifndef LSPD
12 #define LSPD 299792458.0L
13 #endif
14 
15 
16 #ifndef PI
17 #define PI 3.141592653589793L
18 #endif
19 
20 #ifndef BOLTZDB
21 #define BOLTZDB -228.601209136
22 #endif
23 
24 #ifndef LN2
25 #define LN2 0.69314718055994529
26 #endif
27 
28 #ifndef DEG2RAD
29 #define DEG2RAD 0.017453292519943295
30 #endif
31 
32 #ifndef EARTH_RADIUS
33 #define EARTH_RADIUS 6378137.0
34 #endif
35 
36 #ifndef EARTH_E2
37 #define EARTH_E2 0.0066943799901 /* 0.00669438 */
38 #endif
39 
40 #define EARTH_G ((double) 6.6622000E-11) /* gravitational const of Earth */
41 #define EARTH_MASS ((double) 5.974E24) /* earth mass */
42 
43 #define OUT_OF_BOUNDS -999.
44 
45 #ifndef H_TRK_NULL
46 #define H_TRK_NULL -99.
47 #endif
48 
49 #ifndef MASK_TRK_NULL
50 #define MASK_TRK_NULL 255
51 #endif
52 
53 #define SRNG_NULL -1
54 #define FIRST 0
55 
56 // These are used to interpret the mask
57 #define LAND 0
58 #define WATER 1
59 #define NO_CLASS 255
60 #define LAYOVER_NULL -99
61 
62 
63 #define PTR_SCALE 1.8789e8 // scale to make area under PTR = 1 for Gaussian PTR
64 
65 // these are for use by classification
66 
67 #define NOT_UNIFORM -1
68 #define LAND_UNIFORM 0
69 #define WATER_UNIFORM 1
70 #define NULL_WEIGHT complex<double> (0.,0.)
71 #define POWER_NULL 1.
72 #define INTF_IMAG_NULL 0.
73 #define INTF_REAL_NULL 0.
74 #define T0 290.
75 
76 #define MAX_CHAN 2 // Total channels to process
77 #define MAX_CPDEG 2 // maximal degree of caltone phase polynomial fit
78 #define MAXCHEBY 1000 // maximal order of Chebyshev polynomial
79 #define MAX_PHSDRIFTORDER 5 // maximal order of phase drift polynomial
80 #define MAX_RNGFFT 65536 // maximal order of phase drift polynomial
81 #define MAX_RNGSAMPS 10000 // maximum valid range samples
82 #define MAX_NOTCHES 10 //
83 #define WVL_DEG 2 // maximal degree of wavelength fit
84 #define MAX_RNGBYTES 65536
85 
86 #define STD_TVPPARAMS 15
87 #define MAX_LEVERS 6
88 #define MAX_GAINS 6
89 #define MAX_CALPARAMS 10
90 #define MAX_TVPPARAMS STD_TVPPARAMS+MAX_GAINS+MAX_LEVERS+MAX_CALPARAMS+1
91 
92 #define FIXED_TVPREAD 15
93 #define ESA 1
94 #define LEGACY 2
95 
96 #define TVPF_HdrRecs 2
97 #define TVPF_RECLEN 2
98 
99 #define MAX_CALPUL 250
100 #define MAXINTKERLGH 21
101 #define BLKMULT 12
102 #define BLKSIZE 252
103 
104 #define TD_CALCHIRP 2.2222040e-6
105 #define WINSIZ_CALCHIRP 90.0e-6
106 #define CALSRCH 8
107 
108 //#define FORWARD_FFT -1
109 //#define INVERSE_FFT 1
110 
111 #define NULL_WIN 21
112 
113 #define GAINREF 2.51188643151e-2
114 
115 #define ANTENNA_ANGLE_DELTA 0.02 // deg
116 #define ANTENNA_AZIMUTH_START -20.0 // deg
117 #define ANTENNA_AZIMUTH_NR_POINTS 2001
118 #define ANTENNA_AZIMUTH_BIAS -0.28 // deg (peak position)
119 #define ANTENNA_RANGE_START -60.0 // deg
120 #define ANTENNA_RANGE_NR_POINTS 6001
121 #define ANTENNA_RANGE_BIAS -13.235 // deg (peak position)
122 
123 
124 #define i_active 1
125 #define i_notactive 0
126 #define i_calibrationmode 2
127 
128 #define i_on 1
129 #define i_off 0
130 #define i_awg 1
131 #define i_analytic 0
132 #define i_byte 2
133 #define i_floating 4
134 
135 #define i_bfpq 1
136 #define i_8bit 2
137 #define i_adc_bits 8
138 //#define i_blkl 128
139 #define i_fbpq_block_length 128
140 #define i_ham 1
141 #define i_noham 0
142 
143 #define i_sat 1
144 #define i_pingpong 2
145 
146 #define i_iq_quantization_scheme_factor 2
147 #define i_lowerband -1
148 #define i_upperband 1
149 
150 #define i_offsetvideo 1
151 
152 #define i_left 1
153 #define i_right -1
154 
155 #define i_ant1ch 0
156 #define i_ant2ch 1
157 #define i_ant3ch 2
158 
159 #define fcomplex complex<float>
160 
161 #define r_relfiltlenps 6.0
162 #define r_betaps 0.85
163 #define r_pedestalps 1.0
164 #define i_decfactorps 8192
165 #define i_blocksizeps 128
166 
167 #define i_sinc_length_bp 8
168 #define r_beta_bp 0.85
169 #define r_pedestal_bp 0.0
170 #define i_decfactor_bp 8192
171 
172 #define PULSELENGTHREF 40.0e-6
173 
174 #define SFACT 4000.0
175 #define PSWF_A_LOW 1.5029
176 #define PSWF_B_LOW 3.141592654
177 #define PSWF_A 1.5029
178 #define PSWF_B 3.141592654
179 #define PSWF_A_HIGH 5.2630
180 #define PSWF_B_HIGH 0.000001
181 
182 #define Null_Height_Value -10000.0
183 #define Null_Phase_Value -10000.0
184 #define Null_Amplitude_Value 0.0
185 #define Null_Height_Error_Value -1.0
186 #define Null_Correlation_Value -1.0
187 
188 #define AirSWOT_lrl 1
189 //#define AirSWOT_center_frequency 35.852e9 // 35.75e9
190 //#define AirSWOT_Roll_Bias 0.0 // degree
191 //#define AirSWOT_Yaw_Bias -2.23 // -2.55 // -1.87 //-1.513 // -1.4922
192 //#define AirSWOT_Pitch_Bias 1.0 //1.02 // 0.95 //0.85 // 0.733 //0.8245
193 
194 #define AirSWOT_antenna_panel_roll 0.0 // 0.016 // -0.2690 // degree
195 #define AirSWOT_antenna_panel_pitch 0.0 // 0.0746 // 0.4838 // degree
196 #define AirSWOT_antenna_panel_yaw 0.0 // -1.3 //-0.6942 // -0.2981 // degree
197 
198 #define AirSWOT_azimuth_beamwidth 2.0 // degree
199 //#define AirSWOT_profile_repetition_time 192.8e-6 // 144.6e-6 // second
200 
201 #define AirSWOT_far_range_lookangle 30.0 // 25.0 // degrees
202 
203 
204 #define Glistin_azimuth_beamwidth 0.8 // degree
205 #define Glistin_antenna_panel_roll 0.0 // degree
206 #define Glistin_antenna_panel_pitch 0.0 // degree
207 #define Glistin_antenna_panel_yaw 0.0 // degree

Generated for ISCE3.0 by doxygen 1.8.5.