aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get-healpix-patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/get-healpix-patch b/bin/get-healpix-patch
index 2fa21c6..9d82ffd 100755
--- a/bin/get-healpix-patch
+++ b/bin/get-healpix-patch
@@ -101,7 +101,7 @@ def main():
image = scipy.ndimage.gaussian_filter(image, sigma=sigma)
logger.info("Smoothed sky patch using Gaussian filter of " +
"sigma = %.2f [pixel]" % sigma)
- sky.header = hpheader.copy(strip=True)
+ sky.merge_header(hpheader.copy(strip=True))
sky.add_history(" ".join(sys.argv))
sky.data = image
sky.write(args.outfile, clobber=args.clobber)