OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
l2prod_struc.h
Go to the documentation of this file.
1 #ifndef _L2PROD_STRUC_H
2 #define _L2PROD_STRUC_H
3 
4 #include <stdint.h>
5 
6 #define MAX_DIM 3 /* Max number of dimensions for an SDS */
7 #define DIMNAMELEN 32 /* String length on dimension names */
8 #define UNITLEN 32 /* String length on unit names */
9 #define TITLELEN 256 /* String length for long names */
10 
11 #define PARAM_TYPE_NONE 0
12 #define PARAM_TYPE_VIS_WAVE 1
13 //#define PARAM_TYPE_IR_WAVE 2
14 #define PARAM_TYPE_ALL_WAVE 3
15 #define PARAM_TYPE_BAND 4
16 #define PARAM_TYPE_INT 5
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 typedef struct l2prod_index_struct {
26  int cat_ix;
27  int prod_ix;
28  int32_t datatype;
29  float slope;
30  float offset;
31  double min;
32  double max;
33  int rank;
34  int dim[MAX_DIM];
37  char title[TITLELEN];
38  char units[UNITLEN];
39  float badData;
43 } l2prodstr;
44 
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 
51 #endif
#define MAX_DIM
Definition: l2prod_struc.h:6
char product_id[UNITLEN]
Definition: l2prod_struc.h:40
#define UNITLEN
Definition: l2prod_struc.h:8
int dim[MAX_DIM]
Definition: l2prod_struc.h:34
char dimname[MAX_DIM][DIMNAMELEN]
Definition: l2prod_struc.h:35
char title[TITLELEN]
Definition: l2prod_struc.h:37
char title_format[TITLELEN]
Definition: l2prod_struc.h:36
char algorithm_id[UNITLEN]
Definition: l2prod_struc.h:41
#define DIMNAMELEN
Definition: l2prod_struc.h:7
char name_suffix[UNITLEN]
Definition: l2prod_struc.h:25
char standard_name[TITLELEN]
Definition: l2prod_struc.h:42
char units[UNITLEN]
Definition: l2prod_struc.h:38
char name_prefix[UNITLEN]
Definition: l2prod_struc.h:24
#define TITLELEN
Definition: l2prod_struc.h:9