Before proceeding any further, the integration frames must be divided by the flat frame in order to correct for the different sensitivity in each pixel (flat fielding). A flat is produced by co-adding the relevant integrations after bias subtraction and normalising the result using a polynomial fit.