A periodic 3% to 5% variation in detector response affecting both image and internal calibrator (IC) data has been observed in bands 5 and 7 of the Landsat-5 Thematic Mapper. The source for this variation is thought to be an interference effect due to buildup of an ice-like contaminant film on a ZnSe window, covered with an antireflective coating (ARC), of the cooled dewar containing these detectors. Periodic warming of the dewar is required in order to remove the contaminant and restore detector response to an uncontaminated level. These effects in the IC data have been characterized over four individual outgassing cycles using thin-film models to estimate transmittance of the window/ARC and ARC/contaminant film stack throughout the instrument lifetime. Based on the results obtained from this modeling, a lookup table procedure has been implemented that provides correction factors to improve the calibration accuracy of bands 5 and 7 by approximately 5%.