00001 #ifndef TWIFLAT_H 00002 #define TWIFLAT_H 00003 /***************************************************************************** 00004 * E.S.O. - VLT project 00005 * 00006 * "@(#) $Id: twiflat.h,v 1.7 2005/04/29 12:18:59 amodigli Exp $" 00007 * 00008 * who when what 00009 * -------- -------- ---------------------------------------------- 00010 * amodigli 17/09/03 created 00011 */ 00012 00013 /************************************************************************ 00014 * twiflat.h 00015 * routines to create a master flat frame using twilight flat frames 00016 *---------------------------------------------------------------------- 00017 */ 00018 00019 /* 00020 * header files 00021 */ 00022 00023 /* 00024 #include <stdio.h> 00025 #include <math.h> 00026 #include <cxmessages.h> 00027 #include <cxstrutils.h> 00028 */ 00029 00030 #include <cpl.h> 00031 00032 /* 00033 #include "eclipse.h" 00034 #include "spiffi.h" 00035 #include "utilities.h" 00036 #include "sinfoni_pfits.h" 00037 #include "sinfoni_dfs.h" 00038 */ 00039 #include "sinfoni_pro_save.h" 00040 #include "twiflat_ini_by_cpl.h" 00041 void change_header_twiflat (fits_header * head, char* out_name, int n_frames); 00042 void twiflat_free(twiflat_config * cfg); 00043 00044 00045 /*---------------------------------------------------------------------------- 00046 * Function ANSI C prototypes 00047 *--------------------------------------------------------------------------*/ 00048 00049 /*---------------------------------------------------------------------------- 00050 Function : twiflat() 00051 In : ini_file: file name of according .ini file 00052 Out : integer (0 if it worked, -1 if it doesn't) 00053 Job : 00054 00055 this recipe handles stacks of twilight sky frames, that means it generates 00056 a spatial and spectral flat field by means of an additional flatfield of an 00057 integrating sphere. First, a dark frame is subtracted from the twilight frame 00058 and an off frame from the integrating sphere flat. Then the available images 00059 are stacked in data cube and the clean mean is taken along the z-axis. The 00060 static bad pixels are indicated, then a clean mean of each image column is 00061 taken by leaving the bad pixels. The result is one row of the twilight flat. 00062 Each column of the integrating sphere flat is normalized by its clean mean to 00063 get a spectral flat. Finally, each row of this frame is multiplied by the 00064 twilight flat row. 00065 00066 00067 ---------------------------------------------------------------------------*/ 00068 int twiflat ( cpl_parameterlist* config,cpl_frameset* sof) ; 00069 00070 00071 #endif 00072 00073 /*--------------------------------------------------------------------------*/
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001