## Processing all a directory

The easiest MRTCAL session is:

    MRTCAL> index build      ! Build the index of IMB-FITS files in the current directory
    MRTCAL> mfind            ! Select all the files for calibration
    MRTCAL> mlist            ! Optionally list the files to be calibrated
    MRTCAL> file out myclassfile.30m single  ! Open a new Class output file
    MRTCAL> pipeline         ! Calibrate all the files

This calibrates all the IMB-FITS files present in the current directory. The command MFIND is used to build the current index from all the files in the input index. The command PIPELINE processes all, and only, the entries in the current index. It chooses automatically how the calibration and science scans are paired. As a result, the calibrated spectra are saved in the named CLASS file and the index is updated to reflect the calibration status of the IMB-FITS files.