NAME: 
  flagspec
 PURPOSE: 
  Interactive marking of bad pixels in an OSIRIS XD spectrum.
 DESCRIPTION:
  Plots one order at a time and allows marking bad pixels.  See MARKDATA
    for operation of the widget used to mark data.  No attempt is made to
    repair the spectrum.  MARKDATA is called on each order.
 CATEGORY:
  Spectroscopy
 CALLING SEQUENCE:
  flagspec,calib,root,fileno
 INPUTS:
  calib- Anonymous structure containing all pertinent calibration
           information.  This structure is usually loaded beforehand using
           the routine, "ldcalir"
  root   - Root of file name(s) (no . at the end, may include path).
  fileno - Number of spectrum (suffix).
 OPTIONAL INPUT PARAMETERS:
 KEYWORD INPUT PARAMETERS:
 OUTPUTS:
  The bad flags file for this spectrum is potentially modified.
 KEYWORD OUTPUT PARAMETERS:
 COMMON BLOCKS:
 SIDE EFFECTS:
 RESTRICTIONS:
 PROCEDURE:
 MODIFICATION HISTORY:
  97/03/23, Written by Marc W. Buie, Lowell Observatory