MISR Toolkit  1.5.1
MisrProjParam.h
Go to the documentation of this file.
1 /*===========================================================================
2 = =
3 = MisrProjParam =
4 = =
5 =============================================================================
6 
7  Jet Propulsion Laboratory
8  MISR
9  MISR Toolkit
10 
11  Copyright 2005, California Institute of Technology.
12  ALL RIGHTS RESERVED.
13  U.S. Government Sponsorship acknowledged.
14 
15 ============================================================================*/
16 
17 #ifndef MISRPROJPARAM_H
18 #define MISRPROJPARAM_H
19 
20 /* MISR's max resolution, line and sample for a block */
21 
22 #define MAXRESOLUTION 275
23 #define MINRESOLUTION 17600
24 #define MAXNLINE (RESOLUTION / MAXRESOLUTION * NLINE)
25 #define MAXNSAMPLE (RESOLUTION / MAXRESOLUTION * NSAMPLE)
26 
27 /* MISR projection parameters for path 1 at 1100 meter resolution. */
28 /* All other paths and resolutions are derived from these parameters. */
29 
30 #define NRES 6
31 #define NPATH 233
32 #define PATHNUM 1
33 #define PROJCODE 22
34 #define ZONECODE -1
35 #define SPHERECODE 12
36 #define PP1_SMAJOR 6378137.0
37 #define PP2_SMINOR -0.006694348
38 #define PP3_UNUSED 0.0
39 #define PP4_INCANG 98018013.7520
40 #define PP5_ASCLONG 127045037.928240340
41 #define PP6_UNUSED 0.0
42 #define PP7_FE 0.0
43 #define PP8_FN 0.0
44 #define PP9_PSREV 98.88
45 #define PP10_LRAT 0.0
46 #define PP11_PFLAG 0.0
47 #define PP12_BLOCKS 180.0
48 #define PP13_SOMA 0.0
49 #define PP14_UNUSED 0.0
50 #define PP15_UNUSED 0.0
51 #define NBLOCK 180
52 #define NLINE 128
53 #define NSAMPLE 512
54 #define RESOLUTION 1100
55 #define ULC_SOMX 7460750.0
56 #define ULC_SOMY 1090650.0
57 #define LRC_SOMX 7601550.0
58 #define LRC_SOMY 527450.0
59 
60 /* Relative block offsets */
61 
62 #define RELOFFSET { \
63  0.0, 16.0, 0.0, 16.0, 0.0, 0.0, 0.0, 16.0, 0.0, 0.0, \
64  0.0, 0.0, 16.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, \
65  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -16.0, 0.0, 0.0, 0.0, \
66  -16.0, 0.0, 0.0, -16.0, 0.0, 0.0, -16.0, 0.0, -16.0, \
67  0.0, -16.0, 0.0, -16.0, -16.0, 0.0, -16.0, 0.0, -16.0, \
68  -16.0, 0.0, -16.0, -16.0, -16.0, 0.0, -16.0, -16.0, -16.0, \
69  -16.0, 0.0, -16.0, -16.0, -16.0, -16.0, -16.0, -16.0, \
70  -16.0, -16.0, -16.0, -16.0, -16.0, -16.0, -16.0, -16.0, \
71  -16.0, -16.0, -16.0, -16.0, -16.0, -16.0, -16.0, -16.0, \
72  -16.0, -16.0, -16.0, -32.0, -16.0, -16.0, -16.0, -16.0, \
73  -16.0, -16.0, -16.0, -16.0, -16.0, -16.0, -32.0, -16.0, \
74  -16.0, -16.0, -16.0, -16.0, -16.0, -16.0, -16.0, -16.0, \
75  -16.0, -16.0, -16.0, -16.0, -16.0, -16.0, -16.0, -16.0, \
76  -16.0, -16.0, -16.0, -16.0, -16.0, -16.0, 0.0, -16.0, \
77  -16.0, -16.0, -16.0, -16.0, 0.0, -16.0, -16.0, -16.0, 0.0, \
78  -16.0, -16.0, 0.0, -16.0, 0.0, -16.0, -16.0, 0.0, -16.0, \
79  0.0, -16.0, 0.0, 0.0, -16.0, 0.0, -16.0, 0.0, 0.0, -16.0, \
80  0.0, 0.0, 0.0, 0.0, -16.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, \
81  0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, \
82  16.0, 0.0, 0.0, 16.0, 0.0, 0.0, 16.0, 0.0 \
83 }
84 
85 /* GCTP projection parameter array */
86 
87 #define PROJPARAM { \
88  PP1_SMAJOR, PP2_SMINOR, PP3_UNUSED, PP4_INCANG, PP5_ASCLONG, \
89  PP6_UNUSED, PP7_FE, PP8_FN, PP9_PSREV, PP10_LRAT, PP11_PFLAG, \
90  PP12_BLOCKS, PP13_SOMA, PP14_UNUSED, PP15_UNUSED \
91 }
92 
93 /* Upper left corner and lower right corner of the first block */
94 
95 #define ULC { ULC_SOMX, ULC_SOMY }
96 #define LRC { LRC_SOMX, LRC_SOMY }
97 
98 
101 typedef struct {
102  int path;
103  long long projcode;
104  long long zonecode;
105  long long spherecode;
106  double projparam[15];
107  double ulc[2];
108  double lrc[2];
109  int nblock;
110  int nline;
111  int nsample;
112  float reloffset[179];
115 
116 /* MTK MISR projection parameter initialization macro */
117 
118 #define MTKT_MISRPROJPARAM_INIT { PATHNUM, PROJCODE, ZONECODE, SPHERECODE, \
119  PROJPARAM, ULC, LRC, NBLOCK, NLINE, NSAMPLE, RELOFFSET, RESOLUTION }
120 
121 #endif /* MISRPROJPARAM_H */
MISR Projection Parameters.
double ulc[2]
Definition: misr_init.c:9
double lrc[2]
Definition: misr_init.c:10

MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:51