;;-----------------------------------------------------------------------------
;; PURPOSE:
;;	Specifies the flags that exist in the flag map that accompanies a 
;;	calibrated image. To extract a flag, use the AND operator. To set a
;;	flag, use the OR operator.
;;
;; MODIFICATION HISTORY:
;;   2004-08-19  M. Desnoyer    Created
;;   2005-06-07  M. Desnoyer    Added ULTRACOMPRESS
;;
;;-----------------------------------------------------------------------------

FLAG_BAD = ishft(1,0) ;; This is a known bad pixel
FLAG_GAP = ishft(1,1) ;; The pixel is missing data
FLAG_SPIKE = ishft(1,2) ;; The pixel was found by the despiking routine
FLAG_INTERP = ishft(1,3) ;; The pixel has been interpolated from neighbours
FLAG_SOMEFULLWELL = ishft(1,4) ;; The pixel is above the threshold where some pixels are out of the linear regime
FLAG_MOSTFULLWELL = ishft(1,5) ;; The pixel is above the threshold where most pixels are out of the linear regime
FLAG_ADCSAT = ishft(1,6) ;; The pixel value caused the ADC encoder to saturate
FLAG_ULTRACOMPRESS = ishft(1,7) ;; The pixel has been so compressed it's value is almost worthless (very large bin)