Due to the lapse in federal government funding, NASA is not updating this website. We sincerely regret this inconvenience.
NASA Logo
Ocean Color Science Software

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