This script extracts the object and filter name for the input image. These values are "cleaned up" if necarray and written to the image header. If a local "wcs_header.cards" is present (such as produced by wcs_getB), then these header cards are incorporated as well. Finally, the name of the image is assigned as: OBJECT-FILTER.fits.
% ls N4618.fits wcs_header.cards % % wcs_rename N4618.fits Object name will be = NGC4618 Filter name will be = R I am adding the wcs_header.cards Final image name = NGC4618-R.fits Writing FITS image: NGC4618-R.fits % ls N4618.fits NGC4618-R.fits S/ wcs_header.cardsThis routine can be used for lots of different images, but I developed it specifically to handle the registered "fstack" images. I solve wcs for one image, then install WCS headers and rename the other fstack filters.