HDF_DFSD_GETSLICE

The HDF_DFSD_GETSLICE procedure reads a slice of data from the current Hierarchical Data Format file.

Note: Before calling HDF_DFSD_GETSLICE, call HDF_DFSD_GETINFO with the DIMS and TYPE keywords to get the dimensions and type of the next data slice. Failure to get the dimensions and type will cause the HDF interface to attempt to read the data incorrectly, and may cause unexpected results.

Calling Sequence

HDF_DFSD_GETSLICE, Filename, Data

Arguments

Filename

A scalar string containing the name of the file to be read.

Data

A named variable in which the data, read from the SDS, is returned.

Keywords

COUNT

An optional vector containing the counts to be used in reading Value . The default is to read all elements in each record taking the value of OFFSET into account.

OFFSET

A vector specifying the array indices within the specified record at which to begin reading. OFFSET is a 1-dimensional array containing one element per HDF dimension. The default value is zero for each dimension.

Example

See the example in the documentation for HDF_DFSD_STARTSLICE .

See Also

HDF_DFSD_ENDSLICE , HDF_DFSD_GETINFO , HDF_DFSD_PUTSLICE , HDF_DFSD_SETINFO , HDF_DFSD_STARTSLICE