The naco_img_dark recipe
===============================================================

.. data:: naco_img_dark

Synopsis
--------

Dark recipe

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

naco_img_dark -- NACO imaging dark recipe.

The files listed in the Set Of Frames (sof-file) must be tagged:
NACO-raw-file.fits CAL_DARK

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

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

   Create an object for the recipe naco_img_dark.

::

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

Parameters
----------

.. py:attribute:: naco_img_dark.param.r

    Rejected left right bottom and top border [pixel] (str; default: '200  200 200 200') [default="200 200 200 200"].
.. py:attribute:: naco_img_dark.param.hot_t

    Hot pixel map threshold (float; default: 10.0) [default=10.0].
.. py:attribute:: naco_img_dark.param.cold_t

    Cold pixel map threshold (float; default: 6.0) [default=6.0].
.. py:attribute:: naco_img_dark.param.dev_t

    Deviant pixel map threshold (float; default: 5.0) [default=5.0].
.. py:attribute:: naco_img_dark.param.nsamples

    Number of samples for RON computation (int; default: 100) [default=100].
.. py:attribute:: naco_img_dark.param.hsize

    Half size of the window for RON computation (int; default: 2) [default=2].


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

::

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

   naco_img_dark.param.r = "200 200 200 200"
   naco_img_dark.param.hot_t = 10.0
   naco_img_dark.param.cold_t = 6.0
   naco_img_dark.param.dev_t = 5.0
   naco_img_dark.param.nsamples = 100
   naco_img_dark.param.hsize = 2


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

::

   import cpl
   naco_img_dark = cpl.Recipe("naco_img_dark")
   [...]
   res = naco_img_dark( ..., param = {"r":"200 200 200 200", "hot_t":10.0})


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

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

Please report any problems to `Lars Lundin <usd-help@eso.org>`_. Alternatively, you may 
send a report to the `ESO User Support Department <usd-help@eso.org>`_.

Copyright
---------

This file is part of the NACO Instrument Pipeline
Copyright (C) 2002, 2003, 2005, 2008 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, Inc., 51 Franklin St, Fifth Floor, Boston, 
MA  02111-1307  USA

.. codeauthor:: Lars Lundin <usd-help@eso.org>
