[Top] [Prev] [Next] [Bottom]

DFSDsetNT/dssnt

intn DFSDsetNT(int32 data_type)
data_type

IN:

Data type

Purpose

Sets the data type of the data to be written in the next write operation.

Return value

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

Description

DFSDsetNT must be called if a data type other than float32 is to be stored. DFSDsetNT and DFSDsetdims can be called in any order, but they should be called before any other DFSDset* functions and before DFSDputdata or DFSDadddata.

The following symbolic names can be used as the value of data_type:

32-bit float DFNT_FLOAT32 5
64-bit float DFNT_FLOAT64 6
8-bit signed int DFNT_INT8 20
8-bit unsigned int DFNT_UINT8 21
16-bit signed int DFNT_INT16 22
16-bit unsigned int DFNT_UINT16 23
32-bit signed int DFNT_INT32 24
32-bit unsigned int DFNT_UINT32 25
8-bit character DFNT_CHAR8 4
Example

Assuming that DFNT_INT8 has been defined and i8data is an array with 8-bit integer data, the following code fragment writes out 8-bit integers to a scientific dataset.


     DFSDsetNT(DFNT_INT8);      
     DFSDadddata("myfile.hdf", rank, dims, i8data);
 
FORTRAN

integer function dssnt(num_type)

integer num_type



[Top] [Prev] [Next] [Bottom]

hdfhelp@ncsa.uiuc.edu
HDF User's Reference Manual, Draft 06/09/97, NCSA HDF Development Group.