OB.DAAC Logo
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 "hdf.h"
13 #include "mfhdf.h"
14 #include <stdio.h>
15 #include <stdlib.h>
16 #include <errno.h>
17 #include <math.h>
18 #include <string.h>
19 #include <fcntl.h>
20 
21 /*
22  * Common flags
23  */
24 
25 #define DBG 1
26 #define ERROR 1
27 #define FAILURE 5
28 #define ISFIRST 1
29 #define NOTFIRST 0
30 #define LAST 999
31 #define SUCCESS 0
32 #define OK 0
33 
34 /*
35  * HDF settings for ancillary data products
36  * (see individual programs for other specific settings)
37  */
38 
39 #define LISTSIZE 1000
40 #define MAXLABLEN 80
41 #define MAXDESCLEN 1000
42 #define MAXNAMELNG 255
43 #define GEOMNAME "Equal-Angle SDS"
44 #define GEOMCLASS "Geometry"
45 #define GEOMSIZE ((2*sizeof(int32))+(6*sizeof(float32)))
46 #define AVGVGRPNAME "Average" /* inner HDF Average Vgroup name */
47 #define STDVGRPNAME "Std. Deviation" /* inner HDF Std. Dev. Vgroup name */
48 #define OBSVGRPNAME "No. of Obs." /* inner HDF No. Obs. Vgroup name */
49 
50 /*
51  * Flags for data bin origins (per Doug Ilg 9/21/93)
52  */
53 
54 #define UNKNOWN 0
55 #define NW 1
56 #define NORTH 2
57 #define NE 3
58 #define WEST 4
59 #define CENTER 5
60 #define EAST 6
61 #define SW 7
62 #define SOUTH 8
63 #define SE 9
64 
65 /*
66  * HDF metadata annotation struct
67  */
68 
69 struct annotation {
70  char label[MAXLABLEN];
71  char descr[MAXDESCLEN];
72  int32 type;
73 } *annot;
74 
75 #endif /*ANCIL_H_ */
char descr[MAXDESCLEN]
Definition: ancil.h:72
#define MAXDESCLEN
Definition: ancil.h:41
#define MAXLABLEN
Definition: ancil.h:40
struct annotation * annot
char label[MAXLABLEN]
Definition: ancil.h:71
int32 type
Definition: ancil.h:72