SCALEDATA
Name
SCALEDATA
Purpose
Linearly scale data from one range to another (allow missing).
Category
Calling Sequence
b = scaledata( a, in1, in2, out1, out2)
Inputs
a = Array to scale. in
in1 = array value to scale to out1. in
in2 = array value to scale to out2. in
out1 = value in1 gets scaled to (def=0). in
out2 = value in2 gets scaled to (def=255). in
Keyword Parameters
Keywords
MISSING=miss Missing data value. Anything less than
out1 or greater than out2 is set to miss if given.
/SBYTE The input array is a signed byte.
IDL does not have signed bytes so signed byte data will
be in a byte with values from 0 to 255 but anything
over 127 represents a negative value. This keyword
corrects the values into a signed integer before
applying the scaling.
Outputs
b = scaled array. out
Common Blocks
Notes
Modification History
R. Sterner, 2012 Nov 27
Copyright (C) 2012, Johns Hopkins University/Applied Physics Laboratory
This software may be used, copied, or redistributed as long as it is not
sold and this copyright notice is reproduced on each copy made. This
routine is provided as is without any express or implied warranties
whatsoever. Other limitations apply as described in the file disclaimer.txt.