general/misc/
bytescale.pro
Routines
top source bytescale
result = bytescale(array, RANGE=RANGE, ZERO=ZERO, TOP=TOP, BOTTOM=BOTTOM, MIN_VALUE=MIN_VALUE, MAX_VALUE=MAX_VALUE, MISSING=MISSING, pure_color=pure_color, LOG=LOG)
FUNCTION: bytescale(array) PURPOSE: Takes an array or image and scales it to bytes INPUT: array of numeric values. KEYWORDS: RANGE: Two element vector specifying the range of array to be used. Defaults to the min and max values in the array. ZERO: Forces range(0) to zero TOP: Maximum byte value (default is !d.table_size-2) BOTTOM: Minimum byte value (default is 1) MIN_VALUE: autoranging ignores all numbers below this value MAX_VALUE: autoranging ignores all numbers above this value MISSING: Byte value for missing data. (values outside of MIN_VALUE, MAX_VALUE range) If the value is less than 0 then !p.background is used. LOG: sets logrithmic scaling CREATED BY: Davin Larson LAST MODIFICATION: @(#)bytescale.pro 1.22 02/04/17
Parameters
- array
Keywords
- RANGE
- ZERO
- TOP
- BOTTOM
- MIN_VALUE
- MAX_VALUE
- MISSING
- pure_color
- LOG
File attributes
Modification date: | Thu Feb 13 16:43:46 2014 |
Lines: | 53 |