IRAF tasks are grouped into packages which contain a number of subpackages. Each task has its own parameter file which can be be edited according to your requirements. The edited parameter files are stored in the parameter file directory, defined in the command file 'login.cl'. For every task the exhaustive on-line help facility is available, i.e. if you encounter any problems, you can type 'help taskname' to see what is going wrong.
The first step at the beginning of work with an IRAF is to create your IRAF environment. For this purpose serves the file 'login.cl'. In this file you define the names of your working directory, data directory and parameters directory, set the graphic device and image display. Now, you can start the IRAF session by typing 'sir', which is already present in your directories. You will see the image display window arriving on your monitor and the inviting message <cl.
<cl files /home/norfa99/ser/algis/BI*.fts $>$ biaslistfor the files that names begin from the letters 'BI'. Then, by typing
<cl rfits @biaslist "" BIASyou will get a full set of IRAF images BIAS0001, BIAS0002,... with the extensions .imh in your working directory and extensions .pix in your data directory.
Now, typing '?' you will have a list of image header's translators available. If you choose 'direct', i.e. direct CCD photometry, you will go to the editor of 'ccdred'. You can change the translator's table to your own if you have it (there is an example file thx.dat in the image directory). Then typing 'Cntrl D' you will finish this editor and go to the editor of task 'ccdproc', which is the main task in this package. Now, if you want to overscan and trim the BIAS images, you should set the parameters as follows:
input= BI*.imh(or list of your BIAS files - you know, how to do it)
   imagetype=  zero 
   ....... 
   overscan=   yes 
   trim=       yes 
   zerocor=     no
   darkcor=     no 
   flatcor=     no
      ...... 
   interactive= yes
   (or no if you are not interested in the overscan fit)
 quit editing by typing 'Cntrl D' and run ccdproc.  
<cd epar= zerocombine input= @biaslist (or B*.imh) output = ZERO combine= average (or median, whatever you prefer) reject= minmax ...... scale = none ....(see the help imcombine for rejecting algorithms) and you will get the averaged BIAS image. Display it by typing
<cd disp BIAS 1and see how it looks.
      zerocor=     yes 
      zero=       ZERO
and set parameters in 'darkcombine': 
      input=     darks 
      output=     DARK 
      combine=  average 
      reject=    minmax 
      process=      yes 
      scale=   exposure
      .....
 Now, run  
   <cd darkcorand you will get a combined image DARK.
     input =  list of flat frames  (say, @flatlist) 
     darkcor= yes 
     dark=    DARK
     
     and run 
     input=   list of DOME images 
     output=  Flat 
     ccdtype= flat 
     combine= average 
     reject=  crreject 
     subsets= yes 
     scale=   mode 
     ....
   As a result you will have the combined DOME flats, with the subset value
   added to the name of your output, i.e. Flatu, Flatv, etc. Be careful with
   naming: subsets want, that Flat fields were named as Flat. 
   
  <cd imarit sky01 / sky02 ts12 <cd display ts12 1 <cd imexamIf you will see serious gradients of severel percents in resulting image, you should decide, which images to use in the combining. The procedure is identical to the previous one, if you have the bright twilight flats, but usually you don't have a lot of SKY flats, so maybe you will change the parameter reject= avsigclip (consult help imcombine for the details).
     input=   list of SKY images 
     output=  SKYf 
     ccdtype= "" 
     combine= average 
     reject=  avsigclip 
     scale=   mode 
     weight=  mode
 In the output you will have the averaged flats SKYf. There are no subsets
 in this task.
 
  
     input= SKY* 
     ... 
     flatcor=yes 
     flat= Flat 
     ...
 (If you want to check what goes, make a copy of SKY before processing).
   Now set the parameters of 'mkskyflat' 
     input = SKY 
     output= Sflat 
     .....
  This task creates an 'improved' SKY flat by extensively smoothing it and
  correcting for large scale gradients. Divide the resulting image by the
  uncorrected one to see for improvement.
     By the way, you can do it in another way, by using the procedure 
     'mkskycor'. Consult help for this task.
  
 Change the parameters of 'ccdproc': 
     input= list of scientific images 
     .... 
     zerocor=  yes 
     darkcor=  yes 
     flatcor=  yes 
     ... 
     zero=    Zero 
     dark=    Dark
     flat=    Sflat
   and run 'ccdproc' once again.   
   You are done. Congratulations!