> swarp -c swarp.gc t150sw.fits
t151sw.fits t152sw.fits t153sw.fits t154sw.fits
In this example, the swarp config file is "
swarp.gc"
and five images are reinterpolated. Each image can have its own TNX
solution, which in our example would be the combination of WCS and TNX
keyword values produced by imwcs and ccmap. Unless the fit to each
image is very good, it is advisable to use an average solution for the
higher order terms (and rotation and scale in this case). This can
easily be done in swarp by specifying an auxillary header file with the
FITS keywords and values. Cutting and pasting from the above solution
from the FITS header,
a file of the form t15?sw.head was made for each image. The file has
the following form and is identical for each image:
WAT0_001= 'system=image'
WAT1_001= 'wtype=tnx axtype=ra lngcor = "3. 4. 4. 1.
-0.09223848232288634 0.095'
WAT2_001= 'wtype=tnx axtype=dec latcor = "3. 4. 4. 1.
-0.09223848232288634 0.09'
CD1_1 = -8.4729762794223E-5
CD1_2 = 7.23448951262463E-7
CD2_1 = 7.40672424953437E-7
CD2_2 = 8.47678406227307E-5
WAT1_002= '30461739012073 -0.08294874238596413 0.086260218248302
-3.81821493608'
WAT1_003= '0989E-6 0.004201053595244364 0.004530606959289172
-0.722711400721411'
WAT1_004= '9 -5.887103279160741E-4 0.006853642315098468
0.0766861807819218 0. -'
WAT1_005= '0.005316483436707363 -0.4617939442868234 0. 0.
0.1156522538399243 0.'
WAT2_002= '530461739012073 -0.08294874238596413 0.086260218248302
4.34379162931'
WAT2_003= '0940E-6 -5.007423412969465E-4 6.003889063455503E-5
0.084985861670387'
WAT2_004= '73 0.003355387441743075 0.003754664665905738
-0.3911461579926636 0. '
WAT2_005= '0.001750656256554302 0.04350355226749533 0. 0.
-0.5986827241716564 0'
WAT1_006= ' 0. 0. "'
WAT2_006= '. 0. 0. "'
END
These lines were copied directly from the fits header of the image used
in our example to find the higher order solution. A tab follows the
keyword "END."