GEMINI (March2006)      Gemini IRAF package v1.9 Beta      GEMINI (March2006)

Beta-release date: March 24, 2006

This document describes the revisions relative to the Gemini IRAF package v1.8.

WARNING:  This is a beta release distributed only to the NIFS SV PIs.  The
          routines included in this beta release, especially the non-NIFS 
          routines, have NOT been fully tested.
          
          This beta release should only be used to reduce NIFS data.  See the
          'gemini.readme' or 'gemini-beta.readme' file for installation 
          instructions.

This version of the Gemini IRAF package is compatible with, and requires, the
IRAF patch release V2.12.2a (http://iraf.net).

Also, the August 2005 version of FITSUTIL is mandatory.  Note that the external
packages have not yet been moved to IRAF.net.  They can be obtained from the
former IRAF website (http://iraf.noao.edu).


PRIMARY REVISIONS:
1) New package for the reduction of NIFS data (gemini.nifs)
2) Support for Michelle polarimetry imaging data reduction
3) New mid-IR spectroscopy routines
4) More new tasks
5) More new functionalities and parameter changes
6) Bug fixes

DETAILS OF THE REVISIONS:

1) New package for NIFS data (gemini.nifs).

   The current package offers support for the processing of NIFS IFU data.
   The gemini.nifs packages uses some of the GNIRS spectroscopy tasks:  
   the NIFS package automatically loads the GNIRS package to obtain access to
   those tasks.  The NIFS package itself contains the NIFS specific tasks.
   
   The NIFSINFO task offers an overview of the tasks found in the package.
   Data reduction examples for the baseline calibration, the telluric standards,
   and the science observations are available by invoking NIFSEXAMPLES.

   (i) New tasks in NIFS:
   
       - nifs.nfacquire   -- Collapse flip-mirror frame into an image of the 
                             field for acquisition.
       - nifs.nfdispc     -- Display a series of channel maps from a data cube.
       - nifs.nfextract   -- Extract a 1-D spectrum from a transformed frame.
       - nifs.nffitcoords -- Compute 2-D dispersion and distortion maps.
       - nifs.nffixbad    -- Fix bad pixels in NIFS frames.
       - nifs.nfimage     -- Collapse unprocessed disperse spectral frame into
                             a 2-D image.
       - nifs.nfmap       -- Extract a channel map from a NIFS data cube.
       - nifs.nfprepare   -- Prepare NIFS data for reduction.
       - nifs.nfsdist     -- Establish S-distortion calibration.
       - nifs.nftelluric  -- Correct telluric absorption in transformed frame.
       - nifs.nftransform -- Rectify 2-D NIFS spectra.
       - nifs.nifcube     -- Create data cubes from NIFS format files.
       
       Documentation:
       - nifs.nifsinfo     -- Overview of the NIFS package.
       - nifs.nifsexamples -- Print data reduction examples to the screen.
       
       Utility tasks:
       - nifs.nfcheck  (hidden task)
       - nifs.nfckcal  (hidden task)
       - nifs.nfpad    (hidden task)
       - nifs.nfwcs    (hidden task)



2) Support for the new Michelle imaging polarimetry mode.

   The Michelle imaging polarimetry mode has recently been commissioned at
   Gemini North.  This release includes new tasks for the data reduction of
   such data.
   
   The MIDIRINFO task offers a section with information specific to imaging
   polarimetry with Michelle.  A data reduction example for imaging 
   polarimetry is available by invoking MIDIREXAMPLES.
   
   (i) New polarimetry tasks in MIDIR
   
       - midir.mipsplit  -- Write polarimetry waveplate images to series of
                            simple FITS file.
       - midir.mipsstk   -- Combine individual Stokes images from MIPSTOKES
                            into a single set of images.
       - midir.mipstack  -- Straight average of nod images.
       - midir.mipstokes -- Calculate Stokes parameters for each nod pair.
       - midir.miptrans  -- Calculate Stokes parameters form stacked
                            polarimetry file.
   
   (ii) New functionalities/parameters in MIDIR for polarimetry support
   
       midir.mireduce:
       midir.mprepare:
         - New functionalities:
             * Recognize polarimetry data based on header content
             * Process polarimetry data



3) New mid-IR spectroscopy routines for Michelle and T-ReCS.

   Several new tasks have been added to the MIDIR package for the reduction
   of Michelle and T-ReCS spectroscopy data.  Those tasks address such issues
   as flat field correction, de-fringing, and telluric correction.  A 'wrapper'
   spectroscopy reduction task is now available in MSREDUCE.
   
   (i) New spectroscopy tasks in MIDIR
   
       - midir.msabsflux  -- Telluric correction and absolute calibration
       - midir.msdefringe -- Defringing of T-ReCS or Michelle 1-D spectra
       - midir.msflatcor  -- Bias and flat corrections for Michelle spectra 
       - midir.msreduce   -- Wrapper routine for reduction of T-ReCS or 
                             Michelle spectra
   
   (ii) New functionalities/parameters in MIDIR for spectroscopy support
   
        A large suite of spectral energy distribution files for spectrum 
        calibration has been added in midir$data/.  Please refer to the README 
        file in midir$data/.
        
        midir.mistack:
          - New functionalities:
              * The "frametype" option will work with Michelle NOD mode 
                spectroscopic observations.  If frametype is either "src" or
                "ref" one gets the stacked sky frames for the nods, while if
                the value is "dif" one gets the difference between NOD A and
                NOD B, which shows the source spectrum in positive and negative
                forms as is usual for near-IR observations dithered along the
                slit.
   
************************************************
************************************************
***** Revision note incomplete below this ******
************************************************
************************************************
4) More new tasks.

   (i) GEMTOOLS
       
       - gemtools.gemcube -- Build data cube.  Used by nifs.nifcube.
       
   
   (ii) MIDIR
   
       - midir.mcheckheader -- Make Michelle headers GSA-compatible 
                               (GSA=Gemini Science Archive)

5) More new functionalities and parameter changes.

   (i) MIDIR
          
       midir.mireduce:
          - New functionalities:
              * Ability to "rescue" incomplete raw data files.
              * Output a variance frame.
              * Ability to define the region to use for registration.
          - New parameters
              * fl_rescue
              * fl_variance
              * region
              
       midir.miregister:
          - New functionalities:
              * Write World Coordinate System header keywords to the science
                extension.  (Instead of just the Primary Header Unit.)
              * Output a variance frame.
              * Ability to define the region to use for registration.
          - New parameters:
              * fl_variance
              * regions
              
       midir.mistack:
          - New functionalities:
              * Write World Coordinate System header keywords to the science
                extension.  (Instead of just the Primary Header Unit.)
              * Output a variance frame.
          - New parameter:
              * fl_variance
    
       midir.mprepare:
          - New functionality:
              * Ability to "rescue" incomplete raw data files.
          - New parameter:
              * fl_rescue

6) Bug fixes.

   This list is not exhaustive.

     midir.miregister:
        * The tmp files were not deleted properly resulting in all frames in
          for all images a list of files, up to the current file, being stacked.
        * Number of files that can be processed in one call set to 100.
        
     midir.mistack:
        * The tmp files were not deleted properly resulting in all frames in
          for all images a list of files, up to the current file, being stacked.
        * Number of files that can be processed in one call set to 100.
        * Remove system dependence on the command "sed".  This was problem for
          some Unix users. 

     midir.mprepare:
        * Remove system dependence on the command "sed".  This was problem for
          some Unix users. 
        * Make EXTVER (the extension version) increment correctly for the 
          science extensions.
        * Actually handle already prepared images instead fo just flagging them.
