The PAS system produces a stream of images using time-stamp names. As of Jan2016, the header information in these images is either not present or incorrect. Hence, for many cases, the easiest solution is to simply clean the FITS headers of the cards containing the offending cards. I keep a running list of bad header keywords in a file (see below). The pasclean script takes one argument, the name of the image, and creates a local version of the image WITH A CLEAN HEADER here are some examples:
pasclean Usage: pasclean 20160124T064413.3_acm_sci.fits arg1 = image name (can be full path) pasclean ./20160124T064413.3_acm_sci.fits pasclean ../20160124T064413.3_acm_sci.fits pasclean /home/sco/ACAM/gstar_sets/20160124/Point1/Set1/20160124T064413.3_acm_sci.fitsIn the first case we simply get a usage message. In the second case we run on a local image, and this will result in that image being OVERWRITTEN with the cleaned version. A nice feature of pasclean is that the image name can be specified using a full path name. The image can be read fromone location, and then the cleaned version is written locally. I show two cases of this above.
Eventually, pasclean will be abandoned when the PAS FITS headers stabilize. For now this is a fairly useful utility. The list of keywords to be cleaned is maintained (and accessed by pasclean from) the following:
% ls $scobin/bini/B* /home/sco/sco/bin/bini/Bad.Cards Here is the list as of Jan30,2016: % cat /home/sco/sco/bin/bini/Bad.Cards TARGTEMP CYCLETIM COADDED NFLUSHES HWSUM SWSUM CCDSUM CCDSIZE HWSEC CCDSEC DATASEC BIASSEC PIXSCALE MAGZERO DTECTSIG MINPIXEL MAXPIXEL GAIN NANVALUE SATURAT SKYORDER SKYANNUL KRONAPT FIXEDAPT OBICX OBICY OBISOMAG OBIXX OBIYY OBIXY OBASYM OBFWHM OBIR1 OBA OBB OBPA OBPIXN OBSATUR OBGOOD KRNFLUX KRNDFLUX KRNMAG KRNDMAG KRNSKY KRNDSKY KRNSKYSB KRNAPER FIXFLUX FIXDFLUX FIXMAG FIXDMAG FIXSKY FIXDSKY FIXSKYSB FIXAPER FLNOSTAR FLAMBIGU FLBORDER FLBADIMG FLBADSKY FLTOOBIG PSFPAR1 PSFPAR2 PSFPAR3 PSFPAR4 PSFPAR5 PSFPAR6 PSFPAR7 PSFPARD1 PSFPARD2 PSFPARD3 PSFPARD4 PSFPARD5 PSFPARD6 PSFPARD7 PSFCHI2 PSFFLUX PSFDFLUX PSFMAG PSFDMAG PIXSCL_X PIXSCL_Y WCSDIM WAT0_001 WAT1_001 WAT2_001 CUNIT1 CUNIT2 CD2_2 CD1_1 CD1_2 CD2_1 CTYPE1 CRPIX1 CRVAL1 CTYPE2 CRPIX2 CRVAL2 CCDTEMP RA DEC ORIENT PARANGLE