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

SDgetrange/sfgrange

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

IN:

Dataset identifier returned from SDselect

max

OUT:

Highest value in the range

min

OUT:

Lowest value in the range

Purpose

Retrieves the maximum and minimum values as they are stored with the scientific dataset.

Return value

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

Description

The maximum and minimum values must be set via a call to SDsetrange. They are not automatically stored when a dataset is written to a file. As the max imumand minimum values are supposed to relate to the data itself, it is assumed that they are of the same data type as the data itself. One implication of this is that in the C version of SDgetrange the arguments are pointers, rather than simple variables, whereas in the Fortran-77 version they are simple variables of the same data type as the data array.

FORTRAN

integer function sfgrange(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.