[Back to Interface] [Prev] [Next]

SDsetdimscale/sfsdscale

intn SDsetdimscale(int32 dim_id, int32 count, int32 data_type, VOIDP data)

dim_id IN:

Dimension identifier returned by SDgetdimid

count IN:

Total number of values along the dimension

data_type IN:

Data type of the values along the dimension

data IN:

Value of each increment along the dimension

Purpose

Stores the values of a dimension.

Return value

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

Description

SDsetdimscale stores scale information for the dimension identified by the parameter dim_id. Note that it is possible to store dimension scale values without naming the dimension.

For fixed-size arrays, the value of count must be equal to the the dimension size or the routine will fail.

Note that, due to the existence of the parameter data_type, the dimension scales need not have the same data type as the data set.

FORTRAN

integer function sfsdscale(dim_id, count, data_type, data)

integer dim_id, count, data_type

<valid data type> data(*)



[Back to Interface] [Prev] [Next]

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