- Check input - Filter event file and Out-of-Time event file for GTI - Remove noisy MOS CCDs - Adjust bad pixels - Calculate sky coordinates - Create scaled images - Filter for events outside the FoV - for each energy band [ - for each used CCD: get exposure and counts in corners of the event- oot- and fwc- file (E_obs, E_fwc, C_obs, C_fwc, C_oot) - for each used CCD: calculate ratio of count rates w_ccd = (C_obs-f_oot*C_oot)/E_obs / (C_fwc/E_fwc) - calculate weight by averaging the count-rate ratios W=avg(w_ccd) - create image from the eventfile - create image from the OOT eventfile and scale it with f_oot - create image from the FWC eventfile and scale each CCD by W*E_obs/E_fwc ] - Create vignetted exposure maps - Create mask - Remove temporary files