The kmo_sky_tweak recipe
===============================================================

.. data:: kmo_sky_tweak

Synopsis
--------

Removal of OH sky lines

Description
-----------

 This recipes is an advanced tool to remove OH sky lines.


Input files
^^^^^^^^^^^^
::

   DO                    KMOS                                                  
   category              Type   Explanation                    Required #Frames
   --------              -----  -----------                    -------- -------
   CUBE_OBJECT           F3I    object cubes                       Y      >=1  
   CUBE_SKY              F3I    sky cube                           Y       1   

Output files
^^^^^^^^^^^^
::

   DO                    KMOS
   category              Type   Explanation
   --------              -----  -----------
   OBJECT_S              F3I    Corrected object cubes


Constructor
-----------

.. method:: cpl.Recipe("kmo_sky_tweak")
   :noindex:

   Create an object for the recipe kmo_sky_tweak.

::

   import cpl
   kmo_sky_tweak = cpl.Recipe("kmo_sky_tweak")

Parameters
----------

.. py:attribute:: kmo_sky_tweak.param.tbsub

    Subtract thermal background from input cube.(TRUE (apply) or FALSE  (don't apply) (bool; default: True) [default=True].


The following code snippet shows the default settings for the available 
parameters.

::

   import cpl
   kmo_sky_tweak = cpl.Recipe("kmo_sky_tweak")

   kmo_sky_tweak.param.tbsub = True


You may also set or overwrite some or all parameters by the recipe 
parameter `param`, as shown in the following example:

::

   import cpl
   kmo_sky_tweak = cpl.Recipe("kmo_sky_tweak")
   [...]
   res = kmo_sky_tweak( ..., param = {"tbsub":True})


.. seealso:: `cpl.Recipe <http://packages.python.org/python-cpl/recipe.html>`_
   for more information about the recipe object.

Bug reports
-----------

Please report any problems to `Erich Wiezorrek <kmos-spark@mpe.mpg.de>`_. Alternatively, you may 
send a report to the `ESO User Support Department <usd-help@eso.org>`_.

Copyright
---------

This file is part of the KMOS Instrument Pipeline
Copyright (C) 2002,2003 European Southern Observatory

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, 51 Franklin Street, Suite 500, Boston, MA  02110-1335  USA

.. codeauthor:: Erich Wiezorrek <kmos-spark@mpe.mpg.de>
