[Back to Interface] [Prev] [Next]

DFSDsetdims/dssdims

intn DFSDsetdims (intn rank, int32 dimsizes[])

rank IN:

Number of dimensions

dimsizes IN:

Dimensions of the scientific dataset

Purpose

Sets the rank and dimension sizes for all subsequent scientific datasets written to the file.

Return value

Returns SUCCEED (or 0) if successful and FAIL (or -1) otherwise.

Description

This routine must be called before calling either DFSDsetdimstrs or DFSDsetdimscale. DFSDsetdims need not be called if other set routines are not called and the correct dimensions are supplied in DFSDputdata or DFSDadddata.

If the rank or dimension sizes change, all previous set calls are cleared, except for the data type, which is set by calling DFSDsetNT.

FORTRAN

integer function dssdims(rank, dimsizes)

integer rank

integer dimsizes(*)



[Back to Interface] [Prev] [Next]

hdfhelp@ncsa.uiuc.edu
HDF Reference Manual - 07/29/98, NCSA HDF Development Group.