00001 #ifndef CUBE_CREATE_FROM_RESAMPLED_H 00002 #define CUBE_CREATE_FROM_RESAMPLED_H 00003 /******************************************************************************* 00004 * E.S.O. - VLT project 00005 * 00006 * "@(#) $Id: cube_create_from_resampled.h,v 1.5 2005/04/29 12:18:58 amodigli Exp $" 00007 * 00008 * who when what 00009 * -------- -------- ---------------------------------------------- 00010 * schreib 06/05/03 created 00011 */ 00012 00013 /************************************************************************ 00014 * cube_create_from_resampled.h 00015 * routines to create a data cube 00016 *---------------------------------------------------------------------- 00017 */ 00018 00019 /* 00020 * header files 00021 */ 00022 00023 /* 00024 #include <stdio.h> 00025 #include <math.h> 00026 #include <string.h> 00027 */ 00028 #include <cpl.h> 00029 #include "sinfoni_dfs.h" 00030 #include "cubecreate_ini_by_cpl.h" 00031 00032 00033 /* 00034 #include "eclipse.h" 00035 #include "spiffi.h" 00036 */ 00037 00038 /*---------------------------------------------------------------------------- 00039 * Function ANSI C prototypes 00040 *--------------------------------------------------------------------------*/ 00041 00042 /*---------------------------------------------------------------------------- 00043 Function : change_header() 00044 In : many needed inputs 00045 Out : nothing 00046 Job : this routine changes the fits header for the data cube 00047 file using appropriate values. 00048 ---------------------------------------------------------------------------*/ 00049 void change_header (fits_header * head, 00050 char * ini_name, 00051 char * name, 00052 char * outname, 00053 float cenLambda, 00054 float dispersion, 00055 int cenpix, 00056 float center_x, 00057 float center_y ) ; 00058 00059 /*---------------------------------------------------------------------------- 00060 Function : cube_create_from_resampled() 00061 In : ini_file: file name of according .ini file 00062 Out : integer (0 if it worked, -1 if it doesn't) 00063 Job : this routine does the resampling of an offset-corrected, 00064 flatfielded, bad pixel corrected and 00065 eventually interleaved data frame. Additionally, an intensity 00066 calibration is carried through by using 00067 a standard star or a black body measurement. 00068 The spectral features of the flatfield halogen lamp are corrected. 00069 Afterwards a data cube is created out of the resampled image. 00070 It is the users choice to use either 00071 the fitted edge positions of the slitlets or the distances 00072 of the slitlets gained from a north-south-test. 00073 ---------------------------------------------------------------------------*/ 00074 int cube_create_from_resampled (cpl_parameterlist*, cpl_frameset* sof) ; 00075 00076 #endif 00078 /*--------------------------------------------------------------------------*/
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001