; Comments added by Erik Johnson 7/6/07
; flag.pro, compiles and runs with idl
; called by step_view.pro (which is used in the manual step of removing spikes)
function Flag,inarr
;raise flag levels to fit into MAXLEVEL
outarr=(inarr NE !BAD)*inarr+(inarr EQ !BAD)*1E23
return,outarr
end

