OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
VU_vdata_utility.h
Go to the documentation of this file.
1 #ifndef VDATA_UTILITY_H
2 #define VDATA_UTILITY_H
3 
4 /*
5 !C-INC************************************************************************
6 
7 !Description: This header file contains the macros for HDF vdata access.
8 
9 !Input Parameters:
10  N/A
11 
12 !Output Parameters:
13  N/A
14 
15 Return Values:
16  N/A
17 
18 Externally Defined:
19  MAX_NC_NAME (mfhdf.h)
20  MAX_VAR_DIMS (mfhdf.h)
21 
22 !Revision History:
23 $Log: VU_vdata_utility.h,v $
24 Revision 4.2 2003/03/10 16:10:12 vlin
25 Missing "]" fixed
26 
27 Revision 4.1 2003/03/05 22:01:39 kuyper
28 Added Globals that are used in Vdata processing.
29 
30 James Kuyper Jr. (kuyper@saicmodis.com)
31 
32 Revision 1.0 1996/09/24 14:45 EDT
33 David Catozzi/GSC (cato@ltpmail.gsfc.nasa.gov)
34 Created original header file
35 
36 !Team-unique Header:
37  This software is developed by the MODIS Science
38  Data Support Team (SDST) for the National Aeronautics
39  and Space Administration (NASA), Goddard Space Flight
40  Center (GSFC), under contract NAS5-32373.
41 
42 !References and Credits:
43  HDF portions developed at the National Center for Supercomputing
44  Applications at the University of Illinois at Urbana-Champaign.
45 
46 !Design Notes: The ".h" file below was specifically written for development
47  in C. Any other language choice may require reworking of the
48  ".h" file before coding can begin.
49 
50 !END**********************************************************************
51 */
52 
53 #include <string.h>
54 #include "PGS_SMF.h"
55 #include "mfhdf.h"
56 
57 /***************************************************************/
59 /***************************************************************/
60 
61 #define VU_MAX_NAME_LENGTH MAX_NC_NAME /* (max data set name length) */
62 #define VU_MAX_RANK MAX_VAR_DIMS /* (max number of dimensions) */
63 
64 #define VU_MAX_DIM_NAME_LENGTH 40
65 
66 #define VU_MAX_DATA_TYPE_STRING_LENGTH 8
67 
68 #define VU_MAX_NUMBER_OF_VDATAS 200
69 
70 #define VU_REPORT 0
71 #define VU_INCREMENT 1
72 #define VU_DECREMENT 2
73 #define VU_EMPTY -1
74 
75 #define VU_NEW_VDATA -1
76 #define VU_MAX_FIELD_NAME_LIST_SIZE 2000 /* true upper bound is 32,000
77  (c.f. VSsetfields) */
78 
79 
80 /***************************************************************/
82 /***************************************************************/
83 
84 typedef struct id_table { /* used to store the Vdata IDs (returned */
85  int32 id; /* by VSattach) so that functions need */
86  char name[VU_MAX_NAME_LENGTH]; /* only refer to Vdatas by name */
87  } VU_ID_TABLE;
88 
89 /***************************************************************/
91 /***************************************************************/
92 
93 extern int32 global_H_ID;
95 extern int global_VU_ID_TABLE_READY;
96 #endif
#define VU_MAX_NUMBER_OF_VDATAS
VU_ID_TABLE global_VU_VDATA_ID[VU_MAX_NUMBER_OF_VDATAS]
Definition: level1a.c:36
int global_VU_ID_TABLE_READY
Definition: level1a.c:26
int32 global_H_ID
Definition: level1a.c:27
char name[VU_MAX_NAME_LENGTH]
#define VU_MAX_NAME_LENGTH