flatfield.h

00001 
00002 /*----------------------------------------------------------------------------
00003  *                                  E.S.O.
00004  *----------------------------------------------------------------------------
00005  * File name    :   flatfield.h
00006  * Author       :   Nicolas Devillard
00007  * Created on   :   Feb 26, 1996    
00008  * Hardware     :   Sun Sparc 20
00009  * Software     :   ANSI C under Solaris Unix
00010  *                  Part of ECLIPSE library for Adonis
00011  * Description  :   create gain images from flatfield cubes
00012  *--------------------------------------------------------------------------*/
00013 
00014 /*
00015 
00016  $Id: flatfield.h,v 1.1 2003/09/03 12:50:47 amodigli Exp $
00017  $Author: amodigli $
00018  $Date: 2003/09/03 12:50:47 $
00019  $Revision: 1.1 $
00020 
00021  */
00022 
00023 #ifndef _FLAT_FIELD_H_
00024 #define _FLAT_FIELD_H_
00025 
00026 
00027 /*----------------------------------------------------------------------------
00028  *                              Includes
00029  *--------------------------------------------------------------------------*/
00030 
00031 #include <stdlib.h>
00032 #include <limits.h>
00033 #include <math.h>
00034 #include "memory.h"
00035 #include "cube_handling.h"
00036 #include "fit_curve.h"
00037 #include "image_arith.h"
00038 #include "image_stats.h"
00039 
00040 
00041 /*----------------------------------------------------------------------------
00042  *                      Function ANSI C prototypes  
00043  *--------------------------------------------------------------------------*/
00044 
00045 /*----------------------------------------------------------------------------
00046  * Function :   create_gain_map()
00047  * In       :   1 cube
00048  * Out      :   1 image ** (pointer to an array of 3 images)
00049  * Job      :   create a regression map from a set of sky exposures
00050  * Notice   :   see "observing procedures definition"
00051  *              sorry for double precision, it is much needed here!
00052  *--------------------------------------------------------------------------*/
00053 
00054 OneImage **
00055 create_gain_map(OneCube * cube_in) ;
00056 
00057 
00058 /*---------------------------------------------------------------------------
00059    Function :   create_gain_map_robust()
00060    In       :   1 cube
00061    Out      :   a pointer to 3 images
00062    Job      :   compute a gain map (flat-field)
00063    Notice   :   output images contain
00064                 result[0] the gain map
00065                 result[1] the y-intercepts map
00066                 result[2] the squared error map
00067  ---------------------------------------------------------------------------*/
00068 
00069 OneImage **
00070 create_gain_map_robust(OneCube * twilight);
00071 
00072 
00073 /*---------------------------------------------------------------------------
00074    Function :   create_gain_map_proportional()
00075    In       :   1 cube
00076    Out      :   a pointer to 2 images
00077    Job      :   compute a gain map (flat-field)
00078    Notice   :   output images contain
00079                 result[0] the gain map
00080                 result[1] the squared error map
00081                 The fit is proportional, i.e. y=ax
00082  ---------------------------------------------------------------------------*/
00083 
00084 
00085 OneImage **
00086 create_gain_map_proportional(OneCube * twilight);
00087 
00088 #endif
00089 /*--------------------------------------------------------------------------*/

Generated on Wed Oct 26 13:08:52 2005 for SINFONI Pipeline Reference Manual by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001