>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  SCALEARRAY






      Linearly scale array values to specified range.


Calling Sequence

      b = scalearray( a, in1, in2, [out1, out2])


      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


      b = scaled array. out

Common Blocks


      Notes: Does not clip input to in1, in2, so outputs
      can also go beyond out1, and out2. This allows
      arrays of data to be linearly scaled.
      Also be careful using unsigned integers.

Modification History

      R. Sterner. 12 Nov, 1986.
      RES 30 Aug, 1989 --- converted to SUN.
      R. Sterner, 26 Feb, 1991 --- Renamed from scale_array.pro
  Copyright (C) 1986, 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.

© 2020 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us