dofpiaat a range of elevations. Ask the telescope operator to slew. When the pupil is well collimated, note the filename. Make two lists, one for each side, of the names of these files with well-collimated pupils, e.g. bluecollimlist and redcollimlist
hsel @bluecollimlist mirrorx,mirrory,mirrorz,mirrorrx,mirrorry,telalt,lbttemp > bluecollimdata. There is an IRAF script, pcollim.cl which takes as input the list of fits files to be used for the collimation table and outputs the information, ready for input to the IDL fitting routine. The script adds 0.8mm to the mirrorZ values and it converts telescope elevation to decimal degrees. To run the script, define it as a task by giving the full pathname to the script file, i.e. at the IRAF prompt, type
task pcollim = /path/to/pcollim.cl. It requires as input the name of the list of files with well-collimated pupils and an output filename, e.g.
pcollim @bluecollimlist bluecollimdata.
mkcoll_lbc, "bluecollimdata". This will output a file called Collimation_lbc.dat which contains quadratic fits to X,Y,Z,RX,RY as functions of elevation and a set of plots.