bes  Updated for version 3.20.6
misrproj.h
1 #ifndef MISRPROJ_H
2 #define MISRPROJ_H
3 /* Defines */
4 #define STRLEN 200
5 #define NBLOCK 180
6 #define NOFFSET NBLOCK - 1
7 #define R2D 57.2957795131
8 #define D2R 1.745329251994328e-2
9 #define NPROJ 13
10 /* Prototypes */
11 
12 int misr_init(
13  const int nblock, /* Number of blocks */
14  const int nline, /* Number of lines in a block */
15  const int nsample, /* Number of samples in a block */
16  const float relOff[NOFFSET],/* Block offsets */
17  const double ulc_coord[], /* Upper left corner coord. in meters */
18  const double lrc_coord[] /* Lower right corner coord. in meters */
19 );
20 
21 int misrfor(
22  const double x, /* Output SOM X coordinate */
23  const double y, /* Output SOM Y coordinate */
24  int* block, /* Input block */
25  float* line, /* Input line */
26  float* sample /* Input sample */
27 );
28 
29 int misrinv(
30  const int block, /* Input block */
31  const float line, /* Input line */
32  const float sample, /* Input sample */
33  double* x, /* Output SOM X coordinate */
34  double* y /* Output SOM Y coordinate */
35 );
36 
37 #endif /* MISRPROJ_H */