Skip to content

Commit

Permalink
Keep HDRNAME consistent with WCSNAME (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
stsci-hack authored Feb 4, 2020
1 parent 5193735 commit 1209cd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drizzlepac/hlautils/align_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1209cd5

Please sign in to comment.