EIT Software Listings

 

anal
obsolete
response
util

 

Previous Routine
Next Routine

 

Listing of $SSW/soho/eit/idl/util/eit_rescale.pro

 


; EIT_RESCALE
; EIT_RESCALE drops the minimum value of a byte array movie sequence to 0, and
; rescales the movie sequence.
; D.M. fecit, 1996 June 2.
;
function eit_rescale, b0, minim = minim, maxim = maxim
;
if not keyword_set(minim) then minim = 0b
;
if keyword_set(maxim) then max_scale = float(maxim) else max_scale = 255.
;
offset = (min(b0) - minim) > 0b
;
b0 = b0 - min(b0) & scl = (max_scale - minim)/max(b0)
b0 = byte(scl*b0) + minim
;
return, b0 & end


Web curator: Frédéric Auchère
Responsible NASA official: Joseph B. Gurman, Facility Scientist, Solar Data Analysis Center
joseph.b.gurman@gsfc.nasa.gov
+1 301 286-4767
NASA Goddard Space Flight Center
Solar Physics Branch / Code 682

Last revised: - Wed May 9 21:45:20 2007- F. Auchère