NAME:
  hsteditmask
 PURPOSE:   (one line only)
  Edit the bad pixel mask for a WFC3 image
 DESCRIPTION:
 CATEGORY:
  Astrometry
 CALLING SEQUENCE:
  hsteditmask,idx,hidx
 INPUTS:
  idx   - index number of star or target to be fitted
 OPTIONAL INPUT PARAMETERS:
 KEYWORD INPUT PARAMETERS:
  STAR - Flag, if set then the idx input applies to a star, otherwise
           idx applies is for a target (pos table)
  RESETPOS - Flag, if set will reset xmax,ymax,imax based on the fitted
               x,y position.  The values for xmax,ymax come from rounding
               the fitted position and the value for imax is then taken
               from that image pixel.  This flag will be honored only if
               info equals 'auto' or 'autopdf' at the start.  If this
               is modified then info will be reset to 'refit' even if you
               do not edit any pixels.
  NEWDW - Use this to change the DW value for this object in the database.
            Default = no change.  If the values does change, the info
            flag is set to 'refit' when done even if no other changes are
            made by this tool.
 OUTPUTS:
   the mask file is modified and the status of the target or star is changed
     in the database
 KEYWORD OUTPUT PARAMETERS:
 CONFIGURATION: (optional, overrides xtrack.in)
   File: config.ini
   [global]
     subdir   - naem of sub-directory  added to base path to find data
     satur    - Saturation signal level, default=80000L
     filetype - type of file to read ('flt' or 'flc'), default='flc'
   [ddir]   - section to list potential root directories to find data
     XXX - 
       XXX is a unique string (eg., D01)
        is a directory path
       for additional details see getddir.pro
 COMMON BLOCKS:
 SIDE EFFECTS:
 RESTRICTIONS:
 PROCEDURE:
 MODIFICATION HISTORY:
  2020/06/29, Written by Marc W. Buie, Southwest Research Institute, cloned
                 from the 15405 reduction directory.
  2020/07/15, MWB, added RESETPOS and NEWDW keywords