Find an event file in the current directory Find the time of the start and end of the slew = tbegin and tend Set tdelta = 45 seconds for i = 0 to Number_subimages tstart = tbegin + i * tdelta tstop = tstart + tdelta extract an eventfile, largetimefile, from (tstart-tdelta) to (tstop+tdelta) Attitude correct largetimefile extract an eventfile, timfiltfile, from largetimefile with t between tstart and tstop Find the X,Y range present in timfiltfile = x1, x2, y1, y2 extract an eventfile, filtfile, from largetimefile in this X,Y range Attitude correct filtfile Find the X, Y ranges of events in filtfile extract images, for each E band, from filtfile with these X,Y boundaries create exposure maps for these images (bands 6,7,8) end loop