OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
mfsdff.f
Go to the documentation of this file.
1 C****************************************************************************
2 C* NCSA HDF *
3 C* Software Development Group *
4 C* National Center for Supercomputing Applications *
5 C* University of Illinois at Urbana-Champaign *
6 C* 605 E. Springfield, Champaign IL 61820 *
7 C* *
8 C* For conditions of distribution and use, see the accompanying *
9 C* hdf/COPYING file. *
10 C* *
11 C****************************************************************************
12 C
13 C mfsdff.f,v 1.6 1996/06/04 21:25:25 koziol Exp
14 C
15 
16 C----------------------------------------------------------------------
17 C Name: sdfstart
18 C Purpose: call scstart, open file
19 C Inputs: path: Name of file to be opened
20 C access: DFACC_READ, DFACC_WRITE, DFACC_CREATE,
21 C or any bitwise-or of the above.
22 C Returns: 0 on success, FAIL on failure with error set
23 C Users: Fortran stub routine
24 C----------------------------------------------------------------------
25 
26  integer function sfstart(filename, access)
27 
28  character*(*) filename
29  integer access, scstart
30 
31  sfstart = scstart(filename, access, len(filename))
32  return
33  end
34 
35 
36 C----------------------------------------------------------------------
37 C Name: sdfn2index
38 C Purpose: call scn2index to return an index
39 C Inputs: id: file
40 C name: name of data set
41 C Returns: 0 on success, FAIL on failure with error set
42 C Users: Fortran stub routine
43 C----------------------------------------------------------------------
44 
45  integer function sfn2index(id, name)
46 
47  character*(*) name
48  integer id, scn2index
49 
50  sfn2index = scn2index(id, name, len(name))
51  return
52  end
53 
54 
55 C----------------------------------------------------------------------
56 C Name: sfcreate
57 C Purpose: call sccreate to create a new dataset
58 C Inputs: id: file
59 C name: name of data set
60 C nt: number type
61 C rank: rank
62 C dims: sizes of dimensions
63 C Returns: 0 on success, FAIL on failure with error set
64 C Users: Fortran stub routine
65 C----------------------------------------------------------------------
66 
67  integer function sfcreate(id, name, nt, rank, dims)
68 
69  character*(*) name
70  integer id, nt, rank, sccreate
71  integer dims(*)
72 
73  sfcreate = sccreate(id, name, nt, rank, dims, len(name))
74  return
75  end
76 
77 
78 C----------------------------------------------------------------------
79 C Name: sfsdmstr
80 C Purpose: set strings for this dimension
81 C Inputs: id: dimension id
82 C label,unit,format: strings to be set
83 C Returns: 0 on success, -1 on failure with DFerror set
84 C Users: HDF Fortran programmers
85 C----------------------------------------------------------------------
86 
87  integer function sfsdmstr(id, label, unit, format)
88 
89  character*(*) label, unit, format
90  integer len, id
91  integer scsdimstr
92 
93  sfsdmstr = scsdimstr(id, label, unit, format,
94  + len(label), len(unit), len(format))
95 
96  return
97  end
98 
99 C----------------------------------------------------------------------
100 C Name: sfsdmname
101 C Purpose: set name of this dimension
102 C Inputs: id: dimension id
103 C name: the name
104 C Returns: 0 on success, -1 on failure with DFerror set
105 C Users: HDF Fortran programmers
106 C----------------------------------------------------------------------
107 
108  integer function sfsdmname(id, name)
109 
110  character*(*) name
111  integer len, id
112  integer scsdimname
113 
114  sfsdmname = scsdimname(id, name, len(name))
115 
116  return
117  end
118 
119 
120 C----------------------------------------------------------------------
121 C Name: sfsdtstr
122 C Purpose: set strings for this data set
123 C Inputs: id: dimension id
124 C label,unit,format,coordsys: strings to be set
125 C Returns: 0 on success, -1 on failure with DFerror set
126 C Users: HDF Fortran programmers
127 C----------------------------------------------------------------------
128 
129  integer function sfsdtstr(id, l, u, f, c)
130 
131  character*(*) l, u, f, c
132  integer len, id
133  integer scsdatstr
134 
135  sfsdtstr = scsdatstr(id, l, u, f, c,
136  + len(l), len(u), len(f), len(c))
137 
138  return
139  end
140 
141 
142 C----------------------------------------------------------------------
143 C Name: sfgdtstr
144 C Purpose: get strings for this data set
145 C Inputs: id: dimension id
146 C Outputs: label,unit,format,coordsys: strings to be gotten
147 C Returns: 0 on success, -1 on failure with DFerror set
148 C Users: HDF Fortran programmers
149 C----------------------------------------------------------------------
150 
151  integer function sfgdtstr(id, label, unit, format, coord, mlen)
152 
153  character*(*) label, unit, format, coord
154  integer len, id, mlen
155  integer scgdatstrs
156 
157  sfgdtstr = scgdatstrs(id, label, unit, format, coord,
158  + len(label), len(unit), len(format), len(coord), mlen)
159 
160  return
161  end
162 
163 C----------------------------------------------------------------------
164 C Name: sfgdmstr
165 C Purpose: get strings for this dimension
166 C Inputs: id: dimension id
167 C Outputs: label,unit,format: strings to be gotten
168 C Returns: 0 on success, -1 on failure with DFerror set
169 C Users: HDF Fortran programmers
170 C----------------------------------------------------------------------
171 
172  integer function sfgdmstr(id, label, unit, format, mlen)
173 
174  character*(*) label, unit, format
175  integer len, id
176  integer scgdimstrs
177 
178  sfgdmstr = scgdimstrs(id, label, unit, format,
179  + len(label), len(unit), len(format), mlen)
180 
181  return
182  end
183 
184 C----------------------------------------------------------------------
185 C Name: sfginfo
186 C Purpose: get basic info about this data set
187 C Inputs: id: dataset id
188 C Outputs: name, rank, nt, dims, nattrs
189 C Returns: 0 on success, -1 on failure with DFerror set
190 C Users: HDF Fortran programmers
191 C----------------------------------------------------------------------
192 
193  integer function sfginfo(id, name, rank, dims, nt, nattr)
194 
195  character*(*) name
196  integer rank, nt, nattr
197  integer dims(*)
198  integer scginfo, len
199 
200  sfginfo = scginfo(id, name, rank, dims, nt, nattr, len(name))
201 
202  return
203  end
204 
205 C----------------------------------------------------------------------
206 C Name: sfgainfo
207 C Purpose: get basic info about an attribute
208 C Inputs: id: dataset id
209 C number: attribute number
210 C Outputs: name, nt, count
211 C Returns: 0 on success, -1 on failure with DFerror set
212 C Users: HDF Fortran programmers
213 C----------------------------------------------------------------------
214 
215  integer function sfgainfo(id, number, name, nt, count)
216 
217  character*(*) name
218  integer nt, number
219  integer scgainfo, len
220 
221  sfgainfo = scgainfo(id, number, name, nt, count, len(name))
222 
223  return
224  end
225 
226 
227 C----------------------------------------------------------------------
228 C Name: sfgdinfo
229 C Purpose: get basic info about a dimension
230 C Inputs: id: dim id
231 C Outputs: name, nt, sz, nattr
232 C Returns: 0 on success, -1 on failure with DFerror set
233 C Users: HDF Fortran programmers
234 C----------------------------------------------------------------------
235 
236  integer function sfgdinfo(id, name, sz, nt, nattr)
237 
238  character*(*) name
239  integer sz, nt, nattr
240  integer scgdinfo, len
241 
242  sfgdinfo = scgdinfo(id, name, sz, nt, nattr, len(name))
243 
244  return
245  end
246 
247 C----------------------------------------------------------------------
248 C Name: sfscatt
249 C Purpose: create (or modify an existing) char attribute
250 C Inputs: id: id of object to attribute-ize
251 C Outputs: name, nt, count, data
252 C Returns: 0 on success, -1 on failure with DFerror set
253 C Users: HDF Fortran programmers
254 C----------------------------------------------------------------------
255 
256  integer function sfscatt(id,name,nt,count,data)
257 
258  character*(*) name, data
259  integer nt
260  integer scscatt, len
261 
262  sfscatt = scscatt(id,name,nt,count,data,len(name))
263 
264  return
265  end
266 
267 C----------------------------------------------------------------------
268 C Name: sfsnatt
269 C Purpose: create (or modify an existing) numeric attribute
270 C Inputs: id: id of object to attribute-ize
271 C Outputs: name, nt, count, data
272 C Returns: 0 on success, -1 on failure with DFerror set
273 C Users: HDF Fortran programmers
274 C----------------------------------------------------------------------
275 
276  integer function sfsnatt(id, name, nt, count, data)
277 
278  character*(*) name
279  integer nt, data
280  integer scsnatt, len
281 
282  sfsnatt = scsnatt(id, name, nt, count, data, len(name))
283 
284  return
285  end
286 
287 C----------------------------------------------------------------------
288 C Name: sfsattr
289 C Purpose: for backward compatability. Calls scsattr to
290 C create (or modify an existing) attribute
291 C Inputs: id: id of object to attribute-ize
292 C Outputs: name, nt, count, data
293 C Returns: 0 on success, -1 on failure with DFerror set
294 C Users: HDF Fortran programmers
295 C Remarks: This function should be phased out in the future.
296 C----------------------------------------------------------------------
297 
298  integer function sfsattr(id, name, nt, count, data)
299 
300  character*(*) name, data
301  integer nt
302  integer scsattr, len
303 
304  sfsattr = scsattr(id, name, nt, count, data, len(name))
305 
306  return
307  end
308 
309 C----------------------------------------------------------------------
310 C Name: sdffattr
311 C Purpose: call scfattr, find an attribute
312 C Inputs: id: Object to look at
313 C name: name of attribute
314 C Returns: attribute number on success, FAIL on failure with error set
315 C Users: Fortran stub routine
316 C----------------------------------------------------------------------
317 
318  integer function sffattr(id, name)
319 
320  character*(*) name
321  integer id, scfattr
322 
323  sffattr = scfattr(id, name, len(name))
324  return
325  end
326 
327 
328 C----------------------------------------------------------------------
329 C Name: sfsextf
330 C Purpose: call scsextf to store data in an external file
331 C Inputs: id: sds id
332 C fname: name of external file
333 C offset: Number of bytes from the beginning of the
334 C external file to where the data starts
335 C Returns: 0 on success, FAIL on failure with error set
336 C Users: Fortran stub routine
337 C----------------------------------------------------------------------
338 
339  integer function sfsextf(id, fname, offset)
340 
341  character*(*) fname
342  integer id, offset, scsextf
343 
344  sfsextf = scsextf(id, fname, offset, len(fname))
345  return
346  end
integer function sfsextf(id, fname, offset)
Definition: mfsdff.f:340
integer function sfsnatt(id, name, nt, count, data)
Definition: mfsdff.f:277
integer function sfstart(filename, access)
Definition: mfsdff.f:27
integer function sfsdmstr(id, label, unit, format)
Definition: mfsdff.f:88
integer function sfn2index(id, name)
Definition: mfsdff.f:46
integer function sffattr(id, name)
Definition: mfsdff.f:319
integer function sfgdmstr(id, label, unit, format, mlen)
Definition: mfsdff.f:173
integer function sfgdinfo(id, name, sz, nt, nattr)
Definition: mfsdff.f:237
integer function sfgdtstr(id, label, unit, format, coord, mlen)
Definition: mfsdff.f:152
integer function sfgainfo(id, number, name, nt, count)
Definition: mfsdff.f:216
integer function sfsattr(id, name, nt, count, data)
Definition: mfsdff.f:299
integer function sfscatt(id, name, nt, count, data)
Definition: mfsdff.f:257
integer function sfginfo(id, name, rank, dims, nt, nattr)
Definition: mfsdff.f:194
integer function sfcreate(id, name, nt, rank, dims)
Definition: mfsdff.f:68
#define f
Definition: l1_czcs_hdf.c:702
Definition: dataday.h:40
integer function sfsdmname(id, name)
Definition: mfsdff.f:109
integer function sfsdtstr(id, l, u, f, c)
Definition: mfsdff.f:130