OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
ancil.h
Go to the documentation of this file.
1 #ifndef ANCIL_H_
2 #define ANCIL_H_
3 
4 /* ancil.h
5  * Header file for SeaWiFS ancillary related HDF programs
6  */
7 
8 /*
9  * shared includes
10  */
11 #include <stdint.h>
12 #include <stdio.h>
13 #include <stdlib.h>
14 #include <errno.h>
15 #include <math.h>
16 #include <string.h>
17 #include <fcntl.h>
18 
19 /*
20  * Common flags
21  */
22 
23 #define DBG 1
24 #define ERROR 1
25 #define FAILURE 5
26 #define ISFIRST 1
27 #define NOTFIRST 0
28 #define LAST 999
29 #define SUCCESS 0
30 #define OK 0
31 
32 /*
33  * HDF settings for ancillary data products
34  * (see individual programs for other specific settings)
35  */
36 
37 #define LISTSIZE 1000
38 /* WDR it is too short, enlarge it
39  * #define MAXLABLEN 80
40  */
41 #define MAXLABLEN 200
42 #define MAXDESCLEN 1000
43 #define MAXNAMELNG 255
44 #define GEOMNAME "Equal-Angle SDS"
45 #define GEOMCLASS "Geometry"
46 #define GEOMSIZE ((2*sizeof(int32_t))+(6*sizeof(float)))
47 #define AVGVGRPNAME "Average" /* inner HDF Average Vgroup name */
48 #define STDVGRPNAME "Std. Deviation" /* inner HDF Std. Dev. Vgroup name */
49 #define OBSVGRPNAME "No. of Obs." /* inner HDF No. Obs. Vgroup name */
50 
51 /*
52  * Flags for data bin origins (per Doug Ilg 9/21/93)
53  */
54 
55 #define UNKNOWN 0
56 #define NW 1
57 #define NORTH 2
58 #define NE 3
59 #define WEST 4
60 #define CENTER 5
61 #define EAST 6
62 #define SW 7
63 #define SOUTH 8
64 #define SE 9
65 
66 /*
67  * HDF metadata annotation struct
68  */
69 
70 struct annotation {
73  int32_t type;
74 };
75 /* } *annot; */
76 
77 /* define call sequence to resize_oz */
78 void resize_oz(short *, int, int, int, int, short *);
79 
80 #endif /* ANCIL_H_ */
int32_t type
Definition: ancil.h:73
#define MAXDESCLEN
Definition: ancil.h:42
void resize_oz(short *, int, int, int, int, short *)
Definition: resize_oz.c:1
char descr[MAXDESCLEN]
Definition: ancil.h:72
#define MAXLABLEN
Definition: ancil.h:41
char label[MAXLABLEN]
Definition: ancil.h:71