78 #define MAX_SCAN_NUMBER 1000
79 #define MAX_FRAMES 1354
80 #define SAMPLE_RATIO_HKM 2
81 #define SAMPLE_RATIO_QKM 4
82 #define SAMPLES_HKM (MAX_FRAMES*SAMPLE_RATIO_HKM)
83 #define SAMPLES_QKM (MAX_FRAMES*SAMPLE_RATIO_QKM)
84 #define MAX_PADDED (SAMPLES_QKM+3)
85 #define DETECTORS_1KM 10
86 #define DETECTORS_HKM (DETECTORS_1KM*SAMPLE_RATIO_HKM)
87 #define DETECTORS_QKM (DETECTORS_1KM*SAMPLE_RATIO_QKM)
88 #define MAX_SCAN_SAMPLE MAX_FRAMES
89 #define MAX_DETECTORS DETECTORS_1KM
91 #define MAX_IMPULSE_NUMBER 25
92 #define MAX_POLY_DEGREE 4
93 #define EA_SOURCE_SELECT_LUN 600280
94 #define VALIDATE_ORBIT_NO_LUN 600281
95 #define TERRAIN_CORRECT_LUN 600310
98 #define MAX_BAND_NUMBER 36
100 #define LATCH_TO_CENTER 0.5
101 #define BASE_SAMPLES DETECTORS_1KM
102 #define MAX_SAMPLES SAMPLE_RATIO_QKM
111 #define ENCODER_LENGTH 78
112 #define SECTOR_LENGTH 40
113 #define ANCIL_LENGTH 64
114 #define NUM_L1A_QUALITY_FLAGS 4
115 #define NUM_L1A_SECTOR_VIEWS 6
118 #define INVALID_INPUT_DATA 128
119 #define NO_ELLIPSE_INTERSECT 64
120 #define BAD_TERRAIN 32
122 #define INVALID_SENSOR_ANGLES 8
123 #define INVALID_SOLAR_ANGLES 8
124 #define TAI_FLAG 1.e10
125 #define TERRAIN_CORRECT "TRUE"
146 #define LONG_FVALUE (-999.0)
147 #define LAT_FVALUE (-999.0)
148 #define HGHT_FVALUE (-32767)
149 #define SENSORZEN_FVALUE (-32767)
150 #define SENSORAZIM_FVALUE (-32767)
151 #define RANGE_FVALUE 0
152 #define SOLARZEN_FVALUE (-32767)
153 #define SOLARAZIM_FVALUE (-32767)
154 #define TEMP_FVALUE (-999.0)
155 #define THERMCORR_FVALUE (-999.0)
156 #define GFLAGS_FVALUE 255
157 #define HIRES_FVALUE (-128)
160 #define MAX_DEM_ROWS 108
161 #define MAX_DEM_TILES 26410
162 #define MAX_DEM_HORIZONTAL 200
163 #define MAX_DEM_VERTICAL 200
164 #define NO_DEM_DATA (-1)
168 #define MIN_TERRAIN_HEIGHT (-450.0)
169 #define MAX_TERRAIN_HEIGHT 9600.0
172 #define PGS_PI 3.14159265358979323846
173 #define RAD2DEG (180.0/PGS_PI)
174 #define DEG2RAD (PGS_PI/180.0)
175 #define MAX_UINT16_VAL (0xFFFF)