0. Start IRAF and load the tres package by typing ecl> tres [a banner appears] tres> If the banner message says *** Run trelearn to update parameters *** type tres> trelearn If this task crashes, run it again. I haven't figured out how to deal cleanly with deleted parameters. 1. Run trsdate yyyy.mmdd to put yourself in the correct working directory The date is saved as a parameter, so if you have to leave IRAF for some reason, or make sure that you are in the right directory, all you have to to is type tres> trsdate Date for images (now=today) (2009.0311): [return] tres> pwd /home/user/tresq/2009.0311 2. Run trsgroup to make lists of similarly configured files. Run this after several FLAT and COMP exposures have been made. If trsgroup.redo=yes, the default value, th old lists and data.db file will be deleted and new, updated lists will be written. 3. Run ftres on lists of similarly configured flat files (FLATmb12x40.list, for example) For the first night of a run or if the fibers have been moved, run this interactively: tres> ftres FLATmb12x40 sumspec+ makeref+ interact+ See tmakeref/ for an example of how to set up the aperture reference files. 4. Run ttres on multiple exposures at the beginning of the night to get night references for each configuration. To set a medium fiber binned standard from three exposures, for example tres> cat COMPmb12.list 0035.COMP.fits 0036.COMP.fits 0037.COMP.fits 0062.COMP.fits 0096.COMP.fits 0124.COMP.fits tres> ttres 35-37 compstd="sum" compid+ compstd="sum" will run tcal1 to fit dispersion functions for both apertures of the summed calibration file. compid+ should put you in interactive mode to examine the lines which are found and the fit the ecidentify task gets to them. If the cross-correlation program, pxcsao, crashes on one of the two fibers, the tcal1 program is really what is crashing. Run it on the individual fibers: tres> tcal1 0205.COMP_sum_0142_0143_f2.ec.fits interact+ If it runs through and the resulting wavelength solution looks offset when you plot it with tharplot, delete the two _f*.ec.fits files, and run textract on the image file tres> textract 0207.COMP_sum_0035_0124.fits Then run tcal1 to fit the dispersion function: tres> tcal1 0207.COMP_sum_0035_0124_f2.ec.fits interact+ and plot it with the ThAr lines labelled using tharplot: tres> tharplot 0207.COMP_sum_0035_0124_f2.ec.fits