idtype

 IDTYPE -- identify type of data, ARC, FLAT or DATA. This is useful
           for automated processing of data.

 IDTYPE collapses a frame in X and Y and then searches for peaks.
 Depending upon what it finds it classifies the frame as an ARC, 
 FLAT or DATA. The dispersion should run along the Y direction and
 the frame should have been debiassed. Thus if it finds no object
 but some lines it will identify the type as ARC. If it finds an
 object it will always return DATA. If it finds neither lines nor
 object it will return FLAT. There are both mulitplicative and
 additive thresholds that the peak height must pass to count.

 To be any use, IDTYPE must be carried out before any other operation.
 However, iuts operation can be affected by severely tilted data, therefore
 it can operate with a trace file which need not be perfect but can be used
 to remove gross distortions.

 IDTYPE recognises bad pixels.

 Parameters:

  IMAGE     -- Image name

  FLAT      -- Flat field name

  TRACE     -- Load a spectrum track?

  TRACK     -- If TRACE, name of track.

  XSTART, XEND, YSTART, YEND -- Region of frame to consider.

  NXWIDTH   -- Width of median filter to apply in X direction; must be 
               odd = 1 will have no effect.

  NYWIDTH   -- Width of median filter to apply in Y direction; must be 
               odd = 1 will have no effect.

  TOBJM -- For a peak to be detected in the spatial direction it
           must be TOBJM times the median.

  TOBJA -- For a peak to be detected in the spatial direction it
           must also be TOBJA above the median.

  TLINM -- For a peak to be detected in the dispersion direction it
           must be TLINM times the median.

  TLINA -- For a peak to be detected in the dispersion direction it
           must also be TLINA above the median.

  FLIM  -- If a frame fails the object and arc tests then it is classified
           as a FLAT or JUNK. FLIM is the dividing limit in terms of
           mean counts. i.e. above FLIM, it counts as FLAT.

This command belongs to the classes: miscellaneous , tilted , examine


Tom Marsh, Warwick