IDL Help for ESIRedux

This page was created by the IDL library routine make_html_help. For more information on this routine, refer to the IDL Online Help Navigator or type:

     ? make_html_help

at the IDL command line prompt.

Last modified: Fri Sep 24 08:02:08 2004.


List of Routines


Routine Descriptions

ESI_ADDTWO

[Next Routine] [List of Routines]
 NAME:
 esi_addtwo
   Version 1.0

 PURPOSE:
    Combines two flats, rejecting Cosmic Rays

 CALLING SEQUENCE:
   
   img = esi_addtwo(esi, indx, VAR=var)

 INPUTS:
   esi
   indx

 RETURNS:
   img       - Combine image

 OUTPUTS:

 OPTIONAL KEYWORDS:

 OPTIONAL OUTPUTS:
   VAR       - Variance

 COMMENTS:

 EXAMPLES:
   img = esi_addtwo(esi, indx)


 PROCEDURES CALLED:

 REVISION HISTORY:
   28-Aug-2002 Written by JXP

(See pro/General/esi_addtwo.pro)


ESI_AR

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_ar   
     Version 1.1

 PURPOSE:
   Reads in the first file in the directory with 'esi*fits'

 CALLING SEQUENCE:
   
  esi = esi_ar(file)

 INPUTS:
    [file] - Filename (default: first file in list ./esi_*fits*)

 RETURNS:
    esi -  ESI structure

 OUTPUTS:

 OPTIONAL KEYWORDS:

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi = esi_ar()


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   13-Nov-2001 Written by JXP
   03-Feb-2003 Polished (JXP)

(See pro/General/esi_ar.pro)


ESI_DELFIN

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_delfin   
     Version 1.0

 PURPOSE:
    Deletes Final images

 CALLING SEQUENCE:
   
  esi_delfin, esi, indx

 INPUTS:
   esi   -  ESI structure
   indx  -  Index numbers of frames to delete

 RETURNS:

 OUTPUTS:

 OPTIONAL KEYWORDS:

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_delfin, esi, indx


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   05-Sep-2002 Written by JXP

(See pro/General/esi_delfin.pro)


ESI_DELOV

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_delov   
     Version 1.0

 PURPOSE:
    Deletes OV images

 CALLING SEQUENCE:
   
  esi_delov, esi, indx

 INPUTS:
   esi   -  ESI structure
   indx  -  Index numbers of frames to delete

 RETURNS:

 OUTPUTS:

 OPTIONAL KEYWORDS:

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_delov, esi, indx


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   18-Jul-2002 Written by JXP

(See pro/General/esi_delov.pro)


ESI_EDITSTRCT

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_editstrct   
   Version 1.1

 PURPOSE:
    Launches a gui to edit the ESI structure

 CALLING SEQUENCE:
   
   esi_editstrct, esi

 INPUTS:
  esi  --  ESI structure

 RETURNS:

 OUTPUTS:

 OPTIONAL KEYWORDS:

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_editstrct, esi


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   04-Jan-2002 Written by JXP
   29-Jan-2003 Polished by JXP

(See pro/General/esi_editstrct.pro)


ESI_GETFIL

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_getfil   
     Version 1.0

 PURPOSE:
   Pass back a structure (or filename) given simple inputs

 CALLING SEQUENCE:
   
  rslt = esi_getfil('file', setup, side)

 INPUTS:
   setup     -  
   [side]    -  

 RETURNS:

 OUTPUTS:
  Structure, image, name, etc.

 OPTIONAL KEYWORDS:
   /name   - Only return resolved name (string)
   CHKFIL  - Value equal to the number of files matching name

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   ordr_str = esi_getfil('ordr_str', 1, 1)


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   18-Aug-2003 Written by JXP

(See pro/General/esi_getfil.pro)


ESI_IMGDFLAT

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_imgdflat   
  Version 1.1

 PURPOSE:
    Creates dome flats given the image list structure

 CALLING SEQUENCE:
   
   esi_imgdflat, struct, /SVOV, OUTROOT=

 INPUTS:
   struct -- dimg_strct defining the images of interest

 RETURNS:

 OUTPUTS:
   flats - fits files in the dir Flats; 1 per filter

 OPTIONAL KEYWORDS:
   SVOV - save ov files
   OUTROOT - Root name of Dome flats (default is 'Flats/DFlat')
   ALLOUT - Output unnormalized frame too

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_imgdflat, nght1_strct


 PROCEDURES/FUNCTIONS CALLED:
  XDIMG_OVER
  XCOMBINE
  MWRFITS
  XDIMG_DELOV
  X_FILTERS

 REVISION HISTORY:
   30-July-2002 Written by JXP

(See pro/IMG/esi_imgdflat.pro)


ESI_IMGPROC

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_imgproc   
    Version 1.0

 PURPOSE:
    Processes a set of images  (OV, TRIM, FLAT)

 CALLING SEQUENCE:
   
   esi_imgproc, esi, img, flat, OUTPTH=, /INTER, /DELOV, /NOGAIN

 INPUTS:
   esi -- dimg_strct defining the images of interest
   img    -- intarr of images to process
   flatnm -- Flat root to use (e.g. 'Flats/SkyFltN')

 RETURNS:

 OUTPUTS:
   Processed image (e.g. Final/f_ccd001.fits)

 OPTIONAL KEYWORDS:
  OUTPTH =  Output directory (default = 'Final/')
  INTER  =  Interactive OV fitting
  DELOV  =  Delete ov files when through
  MSK    =  Default name for mask file
  NOGAIN =  Do not apply the gain

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_imgproc, dimg, STDS, 'Flats/SkyFltN'


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   30-Jul-2002 Written by JXP

(See pro/IMG/esi_imgproc.pro)


ESI_IMGSETUP

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_imgsetup   
     Version 1.0

 PURPOSE:
    Creates and outputs a structure for a series of ESI
    spectroscopic images

 CALLING SEQUENCE:
   
  esi_imgsetup, struct, LIST=list, MKDIR=mkdir, 
               NOFILE=nofile, NOLIST=nolist

 INPUTS:

 RETURNS:

 OUTPUTS:
   struct     -  Creates an IDL structure for direct images 
         -  ASCII file summarizing the structure

 OPTIONAL KEYWORDS:
   LIST       - Image list
   MKDIR      - Make directories

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_imgsetup, nght1_strct, /MKDIR


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   17-Jul-2002 Written by JXP

(See pro/IMG/esi_imgsetup.pro)


ESI_IMGSKYFLAT

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_imgskyflat   
   Version 1.1

 PURPOSE:
    Creates Super-sky flat given the image list esiure.  
    The routine first OV subtracts each image as necessary.
    It then calls esi_imgskymask create masks for each of the images.
    It then calls xcombine which: (1) scales each image 
    by the median calculated for the OV image (2) does a median
    combine with 3sigma/2.5sigma (low/high) clipping.

 CALLING SEQUENCE:
   
   esi_imgskyflat, esi, MMEM=, /NOMSK, /INTER

 INPUTS:
   esi -- dimg_strct defining the images of interest

 RETURNS:

 OUTPUTS:
   skyflat - fits files; 1 per filter

 OPTIONAL KEYWORDS:
  MMEM - Max memory to use with this routine (default = 200M)
  NOMSK - Don't create new masks
  OUTROOT - Root name of Sky flats (default is 'Flats/SkyFlt')
  INTER - Interactive OV subtraction

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_imgskyflat, nght1_strct


 PROCEDURES/FUNCTIONS CALLED:
  XDIMG_OVER
  XCOMBINE
  MWRFITS
  XDIMG_DELOV
  X_FILTERS
  XDIMG_SKYMASK

 REVISION HISTORY:
   26-July-2001 Written by JXP
   24-Apr-2002 Added nonlinearity correction

(See pro/IMG/esi_imgskyflat.pro)


ESI_IMGTWIFLAT

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_imgtwiflat   
  Version 1.1

 PURPOSE:
    Creates dome flats given the image list structure

 CALLING SEQUENCE:
   
   esi_imgtwiflat, struct, /SVOV, OUTROOT=

 INPUTS:
   struct -- dimg_strct defining the images of interest

 RETURNS:

 OUTPUTS:
   flats - fits files in the dir Flats; 1 per filter

 OPTIONAL KEYWORDS:
   SVOV - save ov files
   OUTROOT - Root name of Twilight flats (default is 'Flats/DFlat')
   ALLOUT - Output unnormalized frame too

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_imgtwiflat, nght1_strct


 PROCEDURES/FUNCTIONS CALLED:
  XDIMG_OVER
  XCOMBINE
  MWRFITS
  XDIMG_DELOV
  X_FILTERS

 REVISION HISTORY:
   30-July-2002 Written by JXP

(See pro/IMG/esi_imgtwiflat.pro)


ESI_LWDCHKSPEC

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_lwdchkspec
    Version 1.0

 PURPOSE:
   Plots a series of spectra to allow a quick check

 CALLING SEQUENCE:
   
   esi_lwdchkspec, esi, maskid, expsr, XSIZE=, YSIZE=

 INPUTS:

 RETURNS:

 OUTPUTS:

 OPTIONAL KEYWORDS:
   XSIZE      - Size of gui in screen x-pixels (default = 1000)
   YSIZE      - Size of gui in screen y-pixels (default = 600)

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_lwdchkspec, esi, maskid, expsr


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   30-Jul-2002 Written by JXP

(See pro/LWD/esi_lwdchkspec.pro)


ESI_LWDCOMB

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_lwdcomb
    Version 1.0

 PURPOSE:
   Combines multiple spectral exposures of the same obj

 CALLING SEQUENCE:
   
   esi_lwdcomb, esi, obj_id, exp_id

 INPUTS:
   esi     - WFCCD structure

 RETURNS:

 OUTPUTS:
   lwdfspec      -  WFCCD fspec structure (fits file)

 OPTIONAL KEYWORDS:

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_lwdcomb, esi, obj_id, exp_id


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   02-Aug-2002 Written by JXP

(See pro/LWD/esi_lwdcomb.pro)


ESI_LWDCOMBIMG

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_lwdcombimg   
     Version 1.0

 PURPOSE:
    Process a data frame

 CALLING SEQUENCE:
   
  esi_lwdcombimg, esi, indx, /DFLAT, /REDDOV

 INPUTS:
   esi     -  ESI structure
   indx    -  Index values

 RETURNS:

 OUTPUTS:
  Fully combimgessed image

 OPTIONAL KEYWORDS:
   DFLAT      - Use Dome flats where possible

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_lwdcombimg, esi, indx


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   28-Aug-2002 Written by JXP

(See pro/LWD/esi_lwdcombimg.pro)


ESI_LWDEXTOBJ

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_lwdextobj   
     Version 1.0

 PURPOSE:
    Sky Subtract image

 CALLING SEQUENCE:
   
  esi_lwdextobj, esi, obj_id

 INPUTS:
   esi   -  ESI structure
   indx  -  Indices of objects to process

 RETURNS:

 OUTPUTS:

 OPTIONAL KEYWORDS:

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_lwdextobj, esi 


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   23-Jul-2002 Written by JXP
   28-Aug-2002 Revised (uses trace)

(See pro/LWD/esi_lwdextobj.pro)


ESI_LWDFITARC

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_lwdfitarc
     Version 1.0

 PURPOSE:
    Fits an Arc file to prepare for the wavelength map

 CALLING SEQUENCE:
   
  esi_lwdfitarc, esi, slit, /INTER, LINLIST=, REFROW=, CHK=

 INPUTS:
   esi   -  ESI structure
   indx  -  Indices of objects to process

 RETURNS:

 OUTPUTS:

 OPTIONAL KEYWORDS:
   FLAT  - Flat file
   BIAS  - Bias frame

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_lwdfitarc, esi 


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   19-Jul-2002 Written by JXP

(See pro/LWD/esi_lwdfitarc.pro)


ESI_LWDFLUX

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_lwdflux
    Version 1.0

 PURPOSE:
   Fluxes esi data.  Puts in flambda units by default

 CALLING SEQUENCE:
   
   esi_lwdflux, esi, obj_id, [exp_id]

 INPUTS:
   esi     - WFCCD structure
   obj_id     - WFCCD structure
   [exp_id]     - WFCCD structure

 RETURNS:

 OUTPUTS:

 OPTIONAL KEYWORDS:

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_lwdflux, esi, obj_id, exp_id


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   01-Aug-2002 Written by JXP

(See pro/LWD/esi_lwdflux.pro)


ESI_LWDFNDOBJ

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_lwdfndobj   
     Version 1.0

 PURPOSE:
    Finds all objects and traces them

 CALLING SEQUENCE:
   
  esi_lwdfndobj, esi, obj_id

 INPUTS:
   esi   -  ESI structure
   indx  -  Indices of objects to process

 RETURNS:

 OUTPUTS:

 OPTIONAL KEYWORDS:
   FLAT  - Flat file
   BIAS  - Bias frame

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_lwdfndobj, esi 


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   22-Jul-2002 Written by JXP

(See pro/LWD/esi_lwdfndobj.pro)


ESI_LWDMKAIMG

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_lwdmkaimg   
     Version 1.0

 PURPOSE:
    Trace an Arc Image

 CALLING SEQUENCE:
   
  esi_lwdmkaimg, esi, slit

 INPUTS:
   esi   -  ESI structure
   slit  -  Slit size

 RETURNS:

 OUTPUTS:

 OPTIONAL KEYWORDS:

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_lwdmkaimg, esi, slit


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   19-Jul-2002 Written by JXP

(See pro/LWD/esi_lwdmkaimg.pro)


ESI_LWDMKARC

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_lwdmkarc   
     Version 1.0

 PURPOSE:
    Process arc file

 CALLING SEQUENCE:
   
  esi_lwdmkarc, esi, slit

 INPUTS:
   esi     -  ESI structure

 RETURNS:

 OUTPUTS:
  One normalized flat per slit width

 OPTIONAL KEYWORDS:
   DFLAT      - Use Dome flats where possible

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_lwdmkarc, esi


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   27-Aug-2002 Written by JXP

(See pro/LWD/esi_lwdmkarc.pro)


ESI_LWDMKFLAT

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_lwdmkflat   
     Version 1.0

 PURPOSE:
    Create a bias subtracted, median FLAT
      Defaults to Dome Flat

 CALLING SEQUENCE:
   
  esi_lwdmkflat, esi, /INTERNAL

 INPUTS:

 RETURNS:

 OUTPUTS:
   esi   -  Creates a combined ZRO frame for data reduction

 OPTIONAL KEYWORDS:
  FLAT_FIL= -- 

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_lwdmkflat, esi 


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   18-Jul-2002 Written by JXP

(See pro/LWD/esi_lwdmkflat.pro)


ESI_LWDPLTOBJ

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_lwdpltobj
    Version 1.0

 PURPOSE:
   Calls x_pltobj after gathering the relevant data

 CALLING SEQUENCE:
   
   esi_lwdpltobj, esi, objid, expsr, XSIZE=, YSIZE=

 INPUTS:

 RETURNS:

 OUTPUTS:

 OPTIONAL KEYWORDS:
   XSIZE      - Size of gui in screen x-pixels (default = 1000)
   YSIZE      - Size of gui in screen y-pixels (default = 600)

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_lwdpltobj, esi, objid, expsr


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   30-Jul-2002 Written by JXP

(See pro/LWD/esi_lwdpltobj.pro)


ESI_LWDPROC

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_lwdproc   
     Version 1.0

 PURPOSE:
    Process an image (bias subtract + flatten)
      WARNING! Assumes 1 bias and 1 flat for all images

 CALLING SEQUENCE:
   
  esi_lwdproc, esi, /INTERNAL

 INPUTS:
   esi   -  ESI structure
   indx  -  Indices of objects to process

 RETURNS:

 OUTPUTS:

 OPTIONAL KEYWORDS:
   FLAT  - Flat file
   BIAS  - Bias frame

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_lwdproc, esi 


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   18-Jul-2002 Written by JXP

(See pro/LWD/esi_lwdproc.pro)


ESI_LWDSETUP

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_lwdsetup   
     Version 1.0

 PURPOSE:
    Creates and outputs a structure for a series of ESI
    spectroscopic images

 CALLING SEQUENCE:
   
  esi_lwdsetup, struct, LIST=list, MKDIR=mkdir, 
               NOFILE=nofile, NOLIST=nolist

 INPUTS:

 RETURNS:

 OUTPUTS:
   struct     -  Creates an IDL structure for direct images 
         -  ASCII file summarizing the structure

 OPTIONAL KEYWORDS:
   LIST       - Image list
   MKDIR      - Make directories

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_lwdsetup, nght1_strct, /MKDIR


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   17-Jul-2002 Written by JXP

(See pro/LWD/esi_lwdsetup.pro)


ESI_LWDSKYSUB

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_lwdskysub   
     Version 1.0

 PURPOSE:
    Sky Subtract image

 CALLING SEQUENCE:
   
  esi_lwdskysub, esi, obj_id

 INPUTS:
   esi   -  ESI structure
   indx  -  Indices of objects to process

 RETURNS:

 OUTPUTS:

 OPTIONAL KEYWORDS:
   FLAT  - Flat file
   BIAS  - Bias frame

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_lwdskysub, esi 


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   22-Jul-2002 Written by JXP

(See pro/LWD/esi_lwdskysub.pro)


ESI_LWDTRCARC

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_lwdtrcarc   
     Version 1.0

 PURPOSE:
    Trace an Arc Image

 CALLING SEQUENCE:
   
  esi_lwdtrcarc, esi, slit

 INPUTS:
   esi   -  ESI structure
   slit  -  Slit size

 RETURNS:

 OUTPUTS:

 OPTIONAL KEYWORDS:

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_lwdtrcarc, esi, slit


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   19-Jul-2002 Written by JXP

(See pro/LWD/esi_lwdtrcarc.pro)


ESI_LWDTRCOBJ

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_lwdtrcobj   
     Version 1.0 

 PURPOSE:
    Trace the obj [science only for now]

 CALLING SEQUENCE:
   
  esi_lwdtrcobj, esi, /DFLAT

 INPUTS:
   esi     -  ESI structure

 RETURNS:

 OUTPUTS:
  Image with trcobjered light removed

 OPTIONAL KEYWORDS:
   

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_lwdtrcobj, esi


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   28-Aug-2002 Written by JXP

(See pro/LWD/esi_lwdtrcobj.pro)


ESI_LWDTRCSTD

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_lwdtrcstd   
     Version 1.0

 PURPOSE:
    Trace a standard star in each ordrer

 CALLING SEQUENCE:
   
  esi_lwdtrcstd, esi, /DFLAT

 INPUTS:
   esi     -  ESI structure

 RETURNS:

 OUTPUTS:
  Image with trcstdered light removed

 OPTIONAL KEYWORDS:
   DFLAT      - Use Dome flats where possible

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_lwdtrcstd, esi


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   28-Aug-2002 Written by JXP

(See pro/LWD/esi_lwdtrcstd.pro)


ESI_MKZERO

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_mkzero   
     Version 1.1

 PURPOSE:
    Create bias frames from zero exposures
    Default is to create both IMG and SPEC bias frames

 CALLING SEQUENCE:
   
  esi_mkzero, esi, /NOSPEC, /NOIMG, MMEM=

 INPUTS:
   esi   -  ESI structure

 RETURNS:

 OUTPUTS:
   Creates bias frames in 'Bias/BiasS.fits' and 'Bias/BiasI.fits'
    for spectroscopy and imaging respectively

 OPTIONAL KEYWORDS:
    /NOSPEC -- Dont create spectroscopy bias
    /NOIMG -- Dont create image bias
    MMEM= -- Maximum memory to use in combining zero flats

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_mkzero, esi, /NOIMG


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   17-Jul-2002 Written by JXP
   29-Jan-2003 Polished by JXP

(See pro/General/esi_mkzero.pro)


ESI_SLITNM

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_slitnm   
     Version 1.0

 PURPOSE:
    Process an image (bias subtract + flatten)
      WARNING! Assumes 1 bias and 1 flat for all images

 CALLING SEQUENCE:
   
  nm = esi_slitnm( slit )

 INPUTS:
   slit   -  Slit size

 RETURNS:

 OUTPUTS:

 OPTIONAL KEYWORDS:

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   nm = esi_slitnm( slit ) 


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   19-Jul-2002 Written by JXP

(See pro/General/esi_slitnm.pro)


ESI_STRCT

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_strct   
     Version 1.1

 PURPOSE:
    Creates and outputs a structure for a series of ESI frames
    This structure organizes the data for the night and is used 
    to run most of the programs in the ESI package    

 CALLING SEQUENCE:
   
  esi_strct, struct, LIST=, /MKDIR, /NOFILE, OUTFIL=, /NOEDIT

 INPUTS:

 RETURNS:

 OUTPUTS:
   struct     -  IDL structure 

 OPTIONAL KEYWORDS:
   LIST       - Image list:  e.g.  'gd_files.lst'
              Default is 'Raw/esi*.fits'
   MKDIR      - Make directories
   NOEDIT     - Do not edit the hand
   OUTFIL     - Name of fits output file
   

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_strct, nght1_strct, /MKDIR


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   11-Jul-2002 Written by JXP
   29-Jan-2003 Polished by JXP

(See pro/General/esi_strct.pro)


ESI_SUBBIAS

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_subbias   
     Version 1.1

 PURPOSE:
    Median combine all ZRO frames (darks)
      WARNING!  Assumes images are all of 1 mode (e.g. IMG, ECH, LWD)!!

 CALLING SEQUENCE:
   
  esi_subbias, esi, indx

 INPUTS:
   esi   -  ESI structure
   indx  -  Index numbers of frame to subtract (default output is OV)

 RETURNS:

 OUTPUTS:

 OPTIONAL KEYWORDS:
  BIASFIL= - Name of bias file (default: Bias/BiasS[I].fits)
  OVROOT=  - Root name of OV file (default: OV/ov_ )
  /FORCE   - Overwrite existing OV files 

 OPTIONAL OUTPUTS:

 COMMENTS:
  Currently only good for 1x1 binning

 EXAMPLES:
   esi_subbias, esi, [47L,48L,49L]


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   17-Jul-2002 Written by JXP
   01-Feb-2003 Polished (JXP)

(See pro/General/esi_subbias.pro)


ESI_UPDSTRCT

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_updstrct   
     Version 1.0

 PURPOSE:
    Creates and outputs a structure for a series of ESI
    spectroscopic images

 CALLING SEQUENCE:
   
  esi_updstrct, struct, LIST=list, MKDIR=mkdir, 
               NOFILE=nofile, NOLIST=nolist

 INPUTS:

 RETURNS:

 OUTPUTS:
   struct     -  Creates an IDL structure for direct images 
         -  ASCII file summarizing the structure

 OPTIONAL KEYWORDS:
   LIST       - Image list
   MKDIR      - Make directories

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   esi_updstrct, nght1_strct, /MKDIR


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   01-Aug-2002 Written by JXP

(See pro/General/esi_updstrct.pro)


ESI_WRSTRCT

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 esi_wrstrct   
    Version 1.1

 PURPOSE:
    Write the esi structure to a FITS file and write an ASCII summary

 CALLING SEQUENCE:
   
  esi_wrstrct, esi, /ANONLY, OUTFIL=, FITS=

 INPUTS:
   esi   - An ESI structure

 RETURNS:

 OUTPUTS:

 OPTIONAL KEYWORDS:
   ANONLY - Only print files with flg_anly NE 0   

 OPTIONAL OUTPUTS:
   OUTFIL= - Output file (default: esi.list)
   FITS=   - Name of fits output file

 COMMENTS:

 EXAMPLES:
   esi_wrstrct, esi, FITS='esi_13oct02.fits'


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   13-Jul-2002 Written by JXP
   29-Jan-2003  Polished (JXP)

(See pro/General/esi_wrstrct.pro)


EXTRCT_ECH

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 extrct_ech   
     Version 1.0

 PURPOSE:
    Finds all objects and traces them

 CALLING SEQUENCE:
   
  procech_07apr00, esi, obj_id

 INPUTS:
   esi   -  ESI structure
   indx  -  Indices of objects to process

 RETURNS:

 OUTPUTS:

 OPTIONAL KEYWORDS:
   FLAT  - Flat file
   BIAS  - Bias frame

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   extract_ech


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   06-Sep-2002 Written by JXP

(See pro/redux/extrct_ech.pro)


EXT_LWD

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 ext_lwd
     Version 1.0

 PURPOSE:
    Finds all objects and traces them

 CALLING SEQUENCE:
   
  esi_lwdfndobj, esi, obj_id

 INPUTS:
   esi   -  ESI structure
   indx  -  Indices of objects to process

 RETURNS:

 OUTPUTS:

 OPTIONAL KEYWORDS:
   FLAT  - Flat file
   BIAS  - Bias frame

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   extlwd_11sep04


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   30-Jul-2002 Written by JXP
   29-Aug-2002 Modified by JXP

(See pro/redux/ext_lwd.pro)


PROCLWD_11SEP04

[Previous Routine] [Next Routine] [List of Routines]
 NAME:
 proclwd_11sep04   
     Version 1.0

 PURPOSE:
    Finds all objects and traces them

 CALLING SEQUENCE:
   
  esi_lwdfndobj, esi, obj_id

 INPUTS:
   esi   -  ESI structure
   indx  -  Indices of objects to process

 RETURNS:

 OUTPUTS:

 OPTIONAL KEYWORDS:
   FLAT  - Flat file
   BIAS  - Bias frame

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   proclwd_11sep04


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   30-Jul-2002 Written by JXP
   29-Aug-2002 Modified by JXP

(See pro/redux/proc_lwd.pro)


PROC_ECH

[Previous Routine] [List of Routines]
 NAME:
 proc_ech
     Version 1.0

 PURPOSE:
    Finds all objects and traces them

 CALLING SEQUENCE:
   
  proc_ech, esi, obj_id

 INPUTS:
   esi   -  ESI structure
   indx  -  Indices of objects to process

 RETURNS:

 OUTPUTS:

 OPTIONAL KEYWORDS:
   FLAT  - Flat file
   BIAS  - Bias frame

 OPTIONAL OUTPUTS:

 COMMENTS:

 EXAMPLES:
   proc_ech


 PROCEDURES/FUNCTIONS CALLED:

 REVISION HISTORY:
   30-Jul-2002 Written by JXP
   29-Aug-2002 Modified by JXP

(See pro/redux/proc_ech.pro)