From 8da5833dcb8365568673944afdea7d1a9c334bff Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 19 Jun 2017 17:32:31 +0800 Subject: sky.py: Write PIXELSIZE, RA0, and DEC0 to header for patch sky --- fg21sim/sky.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fg21sim/sky.py b/fg21sim/sky.py index 9187777..637c990 100644 --- a/fg21sim/sky.py +++ b/fg21sim/sky.py @@ -175,6 +175,9 @@ class SkyPatch: header = self.header.copy(strip=True) wcs_header = self.wcs.to_header() header.extend(wcs_header, update=True) + header["PIXSIZE"] = (self.pixelsize, "Pixel size [arcmin]") + header["RA0"] = (self.center[0], "R.A. of patch center [deg]") + header["DEC0"] = (self.center[1], "Dec. of patch center [deg]") hdu = fits.PrimaryHDU(data=image, header=header) hdu.writeto(outfile, clobber=clobber, checksum=checksum) logger.info("Write sky map to file: %s" % outfile) -- cgit v1.2.2