OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
HDF_Lib.h
Go to the documentation of this file.
1 #ifndef HDF_LIB_H
2 #define HDF_LIB_H
3 
4 #include "Granule.h" /* for SMF_ERROR, include "mfhdf.h", "hdf.h", "SMF_PGS.h"*/
5 
6 /*
7 !C-INC**********************************************************************
8 !Description: Header file HDF_Lib.h for HDF_Lib.c.
9  Prototypes to read/write science-data-sets (multidimensional
10  arrays), attributes, etc, from/to HDF files.
11 
12 !Revision History:
13  $Log: HDF_Lib.h,v $
14  Revision 1.4 2006-10-27 11:01:33-04 ltan
15  Changed for ANSI-C compliance. Correction for the generation of code change log.
16 
17  Revision 02.11, November 15, 1999
18  Added functions:
19  read_sds_rankn
20  Check_Valid_Range
21  Jim Rogers (rogers@mcst.gsfc.nasa.gov)
22 
23  Revision 02.10 April 9, 1998
24  Removed the prototypes for the following functions:
25  read_sds_rank2_float64.c,
26  read_sds_rank3_float32.c,
27  read_sds_rank4_float32.c,
28  read_sds_rank4_int16.c,
29  write_sds_rank1_float32.c,
30  write_sds_rank1_int8.c,
31  write_sds_rank4_float32.c
32  These aren't called anywhere in the L1B code, and we want
33  to phase these multiple pointer functions out. If any new
34  data structures shouldn't use the multiple pointers.
35  David Catozzi (cato@ltpmail.gsfc.nasa.gov)
36 
37  Revision 02.11 July 1998
38  Removed read_part_sds_rank3_int16_1p(), added read_part_sds_rank3()
39  Zhenying Gu (zgu@ltpmail.gsfc.nasa.gov)
40 
41  Revision 02.10 April 1998
42  Added read_sds_rank2(), read_sds_rank3(), read_sds_rank4(), write_sds_rank1(),
43  write_sds_rank2(), write_sds_rank3(), write_sds_rank4();
44  Zhenying Gu (zgu@gscmail.gsfc.nasa.gov)
45 
46  Revision 01.20 Aug 1997
47  Added read_vdata().
48  Zhidong Hao (hao@barebackride.gsfc.nasa.gov)
49 
50  Revision 01.10 March 1997
51  Added read_attributes and read_part_sds routines.
52  Zhidong Hao (hao@barebackride.gsfc.nasa.gov)
53 
54  Revision 01.00 Nov. 1996.
55  Initial development.
56  Zhidong Hao (hao@acrobat.gsfc.nasa.gov)
57 
58 !References and Credits
59  This software is developed by the MODIS Characterization Support
60  Team (MCST)for the National Aeronautics and Space Administration,
61  Goddard Space Flight Center, under contract NAS5-32373.
62 
63  HDF portions developed at the National Center for Supercomputing
64  Applications at the University of Illinois at Urbana-Champaign.
65 
66 !Design Notes:
67 
68 !END********************************************************************
69 */
70 
71 /*
72  * The following error messages are currently used in L1B_Tables.c and
73  * possibally used in other files in the future.
74  */
75 
76 extern char *invalidinputfile;
77 extern char *corruptinputfile;
78 
79 PGSt_SMF_status read_vdata (int32 v_id,
80  int32 start_record,
81  int32 records,
82  char *vname,
83  char *fname,
84  void *buffer);
85 
86 PGSt_SMF_status read_attribute (int32 s_id,
87  char *attr_name,
88  int32 TypeID,
89  void *buffer);
90 
91 PGSt_SMF_status read_part_sds_rank2 (int32 sd_id,
92  char *sds_name,
93  int32 start0,
94  int32 start1,
95  int32 edge0,
96  int32 edge1,
97  void *data);
98 
99 PGSt_SMF_status read_part_sds_rank3 (int32 sd_id,
100  char *sds_name,
101  int32 start0,
102  int32 start1,
103  int32 start2,
104  int32 edge0,
105  int32 edge1,
106  int32 edge2,
107  void *data);
108 
109 PGSt_SMF_status read_sds_rank1 (int32, char *, int32, void *);
110 
111 PGSt_SMF_status read_sds_rank2 (int32, char *, int32, int32, void *);
112 
113 PGSt_SMF_status read_sds_rank3 (int32, char *, int32, int32, int32, void *);
114 
115 PGSt_SMF_status read_sds_rank4 (int32, char *, int32, int32, int32, int32, void *);
116 
117 PGSt_SMF_status write_sds_rank1 (int32, char *, char *, int32, char *, void *);
118 
119 PGSt_SMF_status write_sds_rank2 (int32, char *, char *, char *, int32, int32, char *, void *);
120 
121 PGSt_SMF_status write_sds_rank3 (int32, char *, char *, char *, char *,
122  int32, int32, int32, char *, void *);
123 PGSt_SMF_status write_sds_rank4 (int32, char *, char *, char *, char *, char *,
124  int32, int32, int32, int32, char *, void *);
125 
126 PGSt_SMF_status read_sds_rankn (int32 sd_id,
127  char *sds_name,
128  int32 data_type,
129  int32 rank,
130  int32 *start,
131  int32 *edge,
132  void *data);
133 
134 PGSt_SMF_status write_sds_rankn (int32 file_id,
135  char *sds_name,
136  int32 data_type,
137  int32 rank,
138  int32 *edge,
139  char **dim_name,
140  void *data);
141 
142 PGSt_SMF_status Check_Valid_Range (char *data_name,
143  int32 data_type,
144  char *a_lb,
145  char *a_ub,
146  char *a_fillvalue,
147  int32 count,
148  void *buffer);
149 
150 #endif
151 
152 
153 
154 
155 
156 
PGSt_SMF_status write_sds_rank3(int32, char *, char *, char *, char *, int32, int32, int32, char *, void *)
Definition: HDF_Lib.c:1192
char * corruptinputfile
Definition: HDF_Lib.c:20
PGSt_SMF_status read_sds_rankn(int32 sd_id, char *sds_name, int32 data_type, int32 rank, int32 *start, int32 *edge, void *data)
Definition: HDF_Lib.c:1478
PGSt_SMF_status read_part_sds_rank2(int32 sd_id, char *sds_name, int32 start0, int32 start1, int32 edge0, int32 edge1, void *data)
Definition: HDF_Lib.c:150
PGSt_SMF_status read_sds_rank2(int32, char *, int32, int32, void *)
Definition: HDF_Lib.c:449
PGSt_SMF_status read_part_sds_rank3(int32 sd_id, char *sds_name, int32 start0, int32 start1, int32 start2, int32 edge0, int32 edge1, int32 edge2, void *data)
Definition: HDF_Lib.c:249
PGSt_SMF_status write_sds_rank2(int32, char *, char *, char *, int32, int32, char *, void *)
Definition: HDF_Lib.c:1062
PGSt_SMF_status write_sds_rank4(int32, char *, char *, char *, char *, char *, int32, int32, int32, int32, char *, void *)
Definition: HDF_Lib.c:1329
PGSt_SMF_status read_sds_rank1(int32, char *, int32, void *)
Definition: HDF_Lib.c:359
PGSt_SMF_status write_sds_rank1(int32, char *, char *, int32, char *, void *)
Definition: HDF_Lib.c:944
PGSt_SMF_status read_sds_rank3(int32, char *, int32, int32, int32, void *)
Definition: HDF_Lib.c:546
no change in intended resolving MODur00064 Corrected handling of bad ephemeris attitude data
Definition: HISTORY.txt:356
PGSt_SMF_status read_vdata(int32 v_id, int32 start_record, int32 records, char *vname, char *fname, void *buffer)
Definition: HDF_Lib.c:748
char * invalidinputfile
Definition: HDF_Lib.c:18
PGSt_SMF_status Check_Valid_Range(char *data_name, int32 data_type, char *a_lb, char *a_ub, char *a_fillvalue, int32 count, void *buffer)
Definition: HDF_Lib.c:1782
Extra metadata that will be written to the HDF4 file l2prod rank
PGSt_SMF_status read_sds_rank4(int32, char *, int32, int32, int32, int32, void *)
Definition: HDF_Lib.c:644
PGSt_SMF_status read_attribute(int32 s_id, char *attr_name, int32 TypeID, void *buffer)
Definition: HDF_Lib.c:33
PGSt_SMF_status write_sds_rankn(int32 file_id, char *sds_name, int32 data_type, int32 rank, int32 *edge, char **dim_name, void *data)
Definition: HDF_Lib.c:1648
int count
Definition: decode_rs.h:79