The visir_util_spc_txt2fits recipe
===============================================================

.. data:: visir_util_spc_txt2fits

Synopsis
--------

Generate spectrum calibration FITS tables

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

This recipe shall be used to generate spectrum calibration tables.

The sof file shall consist of 1 line with the name of an ASCII-file
currently tagged with either SPC_LINES_ASCII or SPC_QEFF_ASCII.

The file must comprise two columns:
1st: Must be wavelengths in increasing order in units of meter
2nd: For SPC_LINES_ASCII-files must be the atmospheric emission, while
     for SPC_QEFF_ASCII-files must be the quantum efficiency of the detector.

A SPC_LINES_ASCII-file will generate a SPEC_CAL_LINES-file, and 
a SPC_QEFF_ASCII-file will generate a SPEC_CAL_QEFF-file.

The current SPEC_CAL_LINES- and SPEC_CAL_QEFF-files are
generated using the ASCII-files in the catalogs/ directory of the VISIR
source-code distribution.


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

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

   Create an object for the recipe visir_util_spc_txt2fits.

::

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

Parameters
----------

.. py:attribute:: visir_util_spc_txt2fits.param.qeff

    Ignored (float; default: 1.0) [default=1.0].


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

::

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

   visir_util_spc_txt2fits.param.qeff = 1.0


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

::

   import cpl
   visir_util_spc_txt2fits = cpl.Recipe("visir_util_spc_txt2fits")
   [...]
   res = visir_util_spc_txt2fits( ..., param = {"qeff":1.0})


.. 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 `Lars Lundin <llundin@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 VISIR Instrument Pipeline
Copyright (C) 2004, 2005 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 <llundin@eso.org>
