SCALE_DB Name
SCALE_DB Purpose
Scale given data to db (meant for images).
Category
Calling Sequence
d = scale_db(p, db, pmax, minout, maxout)
Inputs
p = original data. in
db = Decibel range to cover. in
pmax = reference value to map to 0 db. in
minout = value to map -DB db to. in
maxout = value to map 0 db to. in
Keyword Parameters
Keywords
/NOCLIP means do not clip values to stay in
range -db to 0. This allows saturation for
pmax < max(p).
MAXDB=mxdb Returned max db. Useful with /NOCLIP.
Outputs
d = scaled values. out
Common Blocks
Notes
Modification History
R. Sterner. 3 Apr, 1987.
R. Sterner, 15 Jul, 1991 --- updated to IDL V2.
Johns Hopkins University Applied Physics Laboratory.
R. Sterner, 2010 Jun 04 --- Converted arrays from () to [].
Copyright (C) 1987, 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.