Comments in italics are from Lindsey Davis, from the NOAO staff.
Steps 1-4 look fine. My only additional comment is that it may not be necessary to delete everything to the right of the declination coordinate as ccfind will append the x / y columns to the end of each input coordinate line and ccmap can be programmed to use any ra / dec / x / y columns. It is necessary to delete this data if any of the columns trailing the declination column may be blank as this will confuse the simple text file decoding routines.You're done getting the catalog data. Now go back to IRAF. Assume that your image is called fred.imh ...
hedit fred epoch 2000.49
If the EPOCH keyword isn't in the header at all, you have to add it.
If this is the case, append "add+" to the end of the above command.
If I understand your cookbook correctly I think step 6 should only be neccessary if:It is probably better to use equinox (new FITS convention) rather than epoch (old FITS convention above) in step 6 since IRAF will use equinox in preference to epoch if both are present.
- you need to define the epoch (actually the equinox) of prexisting CRVAL[1/2] keywords which are not in the J2000 system and which are used by the ccfind task to transform the catalog coordinate system to the image coordinate system in order to locate objects if usewcs=yes.
- you set the ccmap parameter refpoint to "user" and set refsystem, lngref, latref to user values. You are using refpoint=coords which is usually ok so this may not matter but see note under step 11.
wcsreset fred physical
wcsreset fred world
Resetting the physical coordinate system is a good idea if you don't want to retain information about the coordinate system of any parent image. People dealing with mosaic data might not want to do with this however. Resetting the world coordinate system should not necessary as this should get overwritten by the ccmap or ccsetwcs tasks ...
A quick note about refpoint. If you use refpoint=coords then the tangent point is set to the mean of the input ra and dec columns. If these quantities are scattered more or less uniformly around the true tangent point (usually the center of the image) then everything is probably ok. This is not ok if the tangent point is actually off the image as it may be for mosaic data, or all the coordinates are in one part of a large image. Then you should set refpoint=user and set lngref, latref and maybe refsystem to known quantities.
Alternate method to steps 9-13 ? I have a couple of suggestions here which may make it unnecessary to run ccfind at all and requires only one run of ccmap. In step 9 set the starfind detection threshold so as to detect most of the USNO stars. In step 10 determine the ra / dec / x / y of 3 well separated stars, create a tie point file which looks likera1 dec1 ra2 dec2 ra3 dec3 x1 y1 x2 y2 x3 y3and match up the celestial and pixel coordinates using the ccxymatch and the method illustrated in example 4. The reference coordinate file in this case would be fred.usno and the input coordinate file the output of starfind. Then go directly to step 14 and run ccmap on the output of ccxymatch. The starfind coordinate should be accurate enough to give reasonable astrometry ...
My experience with the USNO catalog is that the rms is usually around 0.20-0.30" and that the main source of scatter is in the catalog rather than the x / y centers assuming reasonable sampling.
If you want the higher order terms of any fit recorded in the image header by ccmap or ccsetwcs then set projection=tnx in ccmap and this will be done. Any IRAF task will understand tnx although non-IRAF software will not. This avoids the necessity of keeping the database file around. The tasks wcsctran / skyctran can transfrom from pixel to celesitial coordinates and vice versa using the image header ...