head 1.1; access; symbols; locks http:1.1; strict; comment @# @; expand @b@; 1.1 date 2002.12.11.17.13.10; author MarkusDolensky; state Exp; branches; next ; desc @none @ 1.1 log @script to fix CD matrix of WFI by A. Wicenec @ text @#!/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() @