#!/usr/bin/env python # # change the deep2c WFI frames pixel scale to the original # WFI pixel scale. # # requires the pyfits package http://stsdas.stsci.edu/pyfits/ # # Andreas Wicenec [ESO], 2002-12-11 import pyfits from glob import glob fils = glob("deep*.fits") for f in fils: fits=pyfits.open(f,'update') fits[0].header['CD1_1']=-6.611111111111112E-05 fits[0].header['CD2_2']=6.611111111111112E-05 fits.close()