Many approaches to astronomical data reduction and analysis cannot tolerate missing data: corrupted pixels must first have their values imputed. This paper presents astrofix, a robust flexible image imputation algorithm based on Gaussian process regression. Through an optimization process, astrofix chooses applies different interpolation kernel each image, using training set extracted automatic...