From 1209cd54dbb78574db5fefd4b0c31becb5d9fc20 Mon Sep 17 00:00:00 2001 From: "Warren J. Hack" Date: Tue, 4 Feb 2020 09:24:15 -0500 Subject: [PATCH] Keep HDRNAME consistent with WCSNAME (#581) --- drizzlepac/hlautils/align_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drizzlepac/hlautils/align_utils.py b/drizzlepac/hlautils/align_utils.py index 425705550..17e7ff46c 100644 --- a/drizzlepac/hlautils/align_utils.py +++ b/drizzlepac/hlautils/align_utils.py @@ -821,7 +821,8 @@ def update_image_wcs_info(tweakwcs_output, headerlet_filenames=None, fit_label=N hdulist[sci_extn].header['CRDER1'] = item.meta['fit_info']['RMS_RA'].value hdulist[sci_extn].header['CRDER2'] = item.meta['fit_info']['RMS_DEC'].value hdulist[sci_extn].header['NMATCHES'] = len(item.meta['fit_info']['ref_mag']) - + hdulist[sci_extn].header['HDRNAME'] = "{}_{}".format(image_name.rstrip(".fits"), wcs_name) + if chipctr == num_sci_ext: # Close updated flc.fits or flt.fits file hdulist.flush()