RANGE Function
Computes the range of values in an array.
Usage
result = RANGE(array)
Input Parameters
array—An array of any data type except string.
Returned Value
result—The range of values in array.
Keywords
None.
Discussion
The range of an array is the maximum value in the array minus the minimum value of the array.
Example
; Read an image.
image = IMAGE_READ(!IP_Data + 'objects.tif')
; Find the range of the image.
image_range = RANGE(image('pixels'))
PRINT, image_range
See Also