I use four primary codes for installing WCS into FITS image headers. incorporate four wcsf_ codes. Here I show quick examples of how to use this codes.m
---------------------------------------------------------------------------- Step 1 - Get a rough wcs zeropoint % cat list.Most_Current ./local_red/FIXUP/20190217T122456.6_acm_sci.fits % wcsf_rough list.Most_Current N ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Step 2 - Confirm the wcs is approximately correct % cat list.Most_Current ./local_red/ROUGHWCS/20190217T122456.6_acm_sci.fits NOTE: Unless a local version of the image is present at run time, this routine will process the version from ROUGHWCS and deposit the new version(s) into VISCAT. % wcsf_viscat list.Most_Current N The purpose here is to see the roughly calibrated image with USNO-B1.0 stars overplotted. If most of the plotted sources lie on top of detected stars in our acm image, then we have confirmed the validity of our rough WCS solution. At thsi stage, our current image is in: ./local_red/VISCAT/20190217T122456.6_acm_sci.fits Finally, it is worth noting that the USNO catalog for this image and a png image file of the field are also in this archival subdirectory. ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Step 3 - Create an image catalog. First, we want to specify that we'll use the viscat version of the as input to the moments catalog code: % cat list.wcs0 ./local_red/FIXUP/20190217T122456.6_acm_sci.fits % image_fullpath_list list.wcs0 VISCAT list.wcs1 N % cat list.wcs1 /home/sco/tmp1/w1/local_red/VISCAT/20190217T122456.6_acm_sci.fits Then we run the catalog code: % wcsf_imgcat list.wcs1 N ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Step 4 - Make the final fit % cat list.Most_Current ./local_red/FIXUP/20190217T122456.6_acm_sci.fits % wcsf_final list.wcs1 Y N Note: The input image and the initial detection catalog are taken from the IMGCAT0 archive. The user may elect to build a fresh CDFP catalog of USNO-B1.0 sources, or a pre-existing version from the VISCAT archive is extracted. The final calibrated image is: ./local_red/WCS/20190217T122456.6_acm_sci.fits ----------------------------------------------------------------------------