pro qView_Glitch, state @compile_opt.pro ; On error, return to caller ;+ ; NAME: ; qView_Glitch ; PURPOSE: ; Initiate removal of glitches ('cosmic rays') ; CATEGORY: ; Widget qView ; CALLING SEQUENCE: ; qView_Glitch, state ; INPUTS: ; state array[1]; type: structure ; qView state structure ; OPTIONAL OUTPUT PARAMETERS: ; (modifications to the image cube stored as user value to the state.wid_data widget) ; CALLS: ; qGlitch, qView_ImageInfo, qView_GetInfo ; RESTRICTIONS: ; For the time being this is only set up for the SMEI CCD images: the SMEI field of ; view is excluded. ; PROCEDURE: ; The pGlitch widget is called with the widget ID state.wid_data as keyword argument. ; When pGlitch removes glitches it modifies the user value of this widget. Also passed are ; the image offset and the file indices for the image cube. This accomplishes that the ; numbers (pixel coordinates, image numbers) in qView and pGlitch match. ; MODIFICATION HISTORY: ; FEB-2000, Paul Hick (UCSD/CASS; pphick@ucsd.edu) ;- if qView_GetInfo(state, offset=offset) then $ qGlitch, group=state.wid_data, wid_frames=state.wid_data, img_offset=offset, $ img_id=qView_ImageInfo(state, /list), /mask_smei_fov return & end