diff options
author | Aaron LI <aly@aaronly.me> | 2017-06-19 17:32:31 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-06-19 17:32:31 +0800 |
commit | 8da5833dcb8365568673944afdea7d1a9c334bff (patch) | |
tree | d93820c0a9f9403cf9a81634fdf18abb6669b4b9 /fg21sim/sky.py | |
parent | c0a4a548fcad249051da3ee41131a547940f1e7c (diff) | |
download | fg21sim-8da5833dcb8365568673944afdea7d1a9c334bff.tar.bz2 |
sky.py: Write PIXELSIZE, RA0, and DEC0 to header for patch sky
Diffstat (limited to 'fg21sim/sky.py')
-rw-r--r-- | fg21sim/sky.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) |