Modify header cards in a single FITS image.
% single_hdfix --help Usage: single_hdfix A.fits cards.file B.fits arg1 - name of original image arg2 - file containing new header card lines arg3 - output FITS filename Additional options: -v = print verbose comments --help = view a help document Example: % cat a.1 NSTACK = 1 / number of image in stack NSTRAS = 221 / number of stars % imhead iset_1_stack.fits (last few lines) ACMBASE = 20190724T030410.8_ /FITS image basename FBPCOR = Y / fixed bias pattern correction applied (Y/N) BIASMEAN= 1400.0135 / mean bias subtracted BIASSIG = 1.0782 / stan.dev. of bias among images END % single_hdfix iset_1_stack.fits a.1 B.fits % imhead B.fits (last few lines) ACMBASE = 20190724T030410.8_ /FITS image basename FBPCOR = Y / fixed bias pattern correction applied (Y/N) BIASMEAN= 1400.0135 / mean bias subtracted BIASSIG = 1.0782 / stan.dev. of bias among images NSTACK = 1 / number of image in stack NSTRAS = 221 / number of stars ENDThis is not a very efficient code, but it is easy to use.