NAME:
  logmanip
 PURPOSE:
  Widget for editing and manipulating photometry log files.
 DESCRIPTION:
 CATEGORY:
  Widgets
 CALLING SEQUENCE:
  logmanip,logfile
 INPUTS:
  logfile - String, file name of log file to work on.
 OPTIONAL INPUT PARAMETERS:
 KEYWORD INPUT PARAMETERS:
  GROUP:  The widget ID of the widget that calls LOGMANIP.  When this
          ID is specified, a death of the caller results in the death of
          the LOGMANIP widget application.

  TITLE:  A scalar string to be used for the window title.  If it is
          not specified, the default title is "Photometry Log File Editor"
  JUSTCLEAN: Flag, if set supresses the interactive widget operation.  All
                that is done is to scan for duplications and remove them.
                Output is also sorted.
  DELETEFILE: If supplied, will mark the first batch of observations in this
                file for deletion.  (Remember, first column in log file is
                the file name where the observation came from.)

 OUTPUTS:
  modified log file is written out to logfile
 KEYWORD OUTPUT PARAMETERS:
 COMMON BLOCKS:
 SIDE EFFECTS:
  This function initiates the XMANAGER if it is not already running.
 RESTRICTIONS:
 PROCEDURE:
 MODIFICATION HISTORY:
  96/11/2 - Written by Marc W. Buie
  97/04/06, MWB, added DELETEFILE keyword
  00/08/30, MWB, extracted wrphalt portion of program.
  2003/10/01, MWB, converted my Delfile call to system file_delete routine
  2006/5/22,  Peter L. Collins, Lowell Observatory
                added phot parameter for CCD readout noise (rdnoise)