Use an input list of images (like list.IMAGES or list.BIAS) and create a file that refeences the same images, but in a desired ./local_red subdirectory. For instance, if we want to view images that have been run through acm_process.sh, we want to see images in the subdirectory ./local_red/FIXUP. If we want to operate on images that have WCS installed, we reference ./local_red/WCS.
% image_fullpath_list list.in FIXUP list.out N Usage: image_fullpath_list list.in FIXUP list.out N arg1 - Name of FITS image list (should full path) arg2 - name of process we are preparing for arg3 - name of output file listing referenced images in the process subdirectoy arg4 - run in debug mode (Y/N) For the example above we would get three files: list.out = images with names for the process subdiretory list.out_version2 = same as above, except original name used if image does not exist in process subdirectory FITS.BaseNames = a listing of the image basenames
This routine creates two output files. The first, specified by arg3, contains the names of the images in the new process subdirectory. The second version has the arg3 name with a "_version2" appendix. In this file the process version is listed ONLY only if it exists. If not, then the original image name in the input file (arg1) is listed. The version2 file is made for cases where we might want to view processed images (in a table file) if they exist. If they do no exist, then we use the original input image so that the number of images in the original input file is preserved.