The following steps assume that the image coordinates are transformed into right ascension and declination. If you want to do it in arcseconds or pixels, you have to change the used programs to fit your coordinate system.
awk -f dpexample.awk dp.crd > dpexample.crdthe fiber positions in arcseconds (dp.crd) are rotated by 45° and offset to the positions mentioned above. The new positions are saved in the file dpexample.crd, which has six columns (ra, dec for first DensePak, ra, dec for second DensePak, ra, dec for third DensePak).
Important: You have to edit the program dpexample.awk, so that it fits your coordinates. This means, you have to change the position angle (the number 45 in line 2) and the offsets of the DensePak observations in lines 6-11. If you want to plot only one observation, delete lines 8-11 and replace line 12 by
printf ("%9.8f %9.7f \n",ra1,dec1)
y = (8.5 * 0.7 * number of pixels in y) / (11 * number of pixels in x)For our example of a 1007x1005 pixels image section, we get y=0.53983, thus a range for the y-axis of .3 to .83983.
st>igi < dpexample.igi st>gflushA postscript file psk....eps will be created in the same directory where the image etc. are.
diameter = (137.5mm * 3") / (3' 18") = 2.1mmAn expanding factor of .6 (line 21 in dpexample.igi) yielded a fiber diameter of 3mm in the plot. Thus, we need an expanding factor of
expand = (0.6 * 2.1mm) / 3mm = 0.4