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

SDsetrange/sfsrange

intn SDsetrange(int32 sds_id, VOIDP max, VOIDP min)
sds_id

IN:

Dataset identifier returned from SDselect

max

IN:

Highest value in the range

min

IN:

Lowest value in the range

Purpose

Sets the "valid" maximum and minimum values for the given dataset.

Return value

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

Description

It is assumed that the data type for the maximum and minimum values are the same as the data type of the data. One implication of this is that in the C version of SDsetrange the arguments are pointers, rather than simple variables, whereas in the Fortran-77 version they are simple variables of the same type as the data array.

This routine does not compute the maximum and minimum values; it merely stores the values it is given. As a result, the maximum and minimum values may not always reflect the actual maximum and minimum values in the data array.

FORTRAN

integer function sfsrange(sds_id, max, min)

integer sds_id

<valid numeric data type> max, min



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

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