visir_inputs.h

00001 /* $Id: visir_inputs.h,v 1.49 2011/11/02 15:10:22 jtaylor Exp $
00002  *
00003  * This file is part of the VISIR Pipeline
00004  * Copyright (C) 2002,2003 European Southern Observatory
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA
00019  */
00020 
00021 /*
00022  * $Author: jtaylor $
00023  * $Date: 2011/11/02 15:10:22 $
00024  * $Revision: 1.49 $
00025  * $Name: visir-3_5_0 $
00026  */
00027 
00028 #ifndef VISIR_INPUTS_H
00029 #define VISIR_INPUTS_H
00030 
00031 /*-----------------------------------------------------------------------------
00032                                    Includes
00033  -----------------------------------------------------------------------------*/
00034 
00035 #include <cpl.h>
00036 
00037 #include "irplib_framelist.h"
00038 
00039 #include "visir_spc_optmod.h"
00040 
00041 /*-----------------------------------------------------------------------------
00042                                    Define
00043  -----------------------------------------------------------------------------*/
00044 
00045 /* The values range from 0 (or 1) to 2**16-1 (or 2**16) */
00046 #define VISIR_HCYCLE_BPM_THRESHOLD  65000.0
00047 
00048 /* Due to a inconsistency in the chosen VISIR FITS-format the pixels in
00049    the half-cycle image are offset, such that the lowest pixel value is
00050    -32768 (or perhaps -32767?). This is fixed by adding 32768 to each
00051    pixel value */
00052 #define VISIR_HCYCLE_OFFSET  32768.0
00053 
00054 typedef enum {
00055     /* VISIR nod/chopping mode detection */
00056 
00057     /* Mode can be assumed to be: PERPENDICULAR */
00058     VISIR_CHOPNOD_PERPENDICULAR,
00059 
00060     /* Mode can be assumed to be: PARALLEL */
00061     VISIR_CHOPNOD_PARALLEL,
00062     
00063     /* Mode is determined from FITS header */
00064     VISIR_CHOPNOD_AUTO
00065 
00066 } visir_chopnod_mode;
00067 
00068 
00069 /*-----------------------------------------------------------------------------
00070                                    Functions prototypes
00071  -----------------------------------------------------------------------------*/
00072 
00073 cpl_imagelist * visir_inputs_combine(const char *, const cpl_parameterlist *,
00074                                      const irplib_framelist *, const char *,
00075                                      const char *,  int *, cpl_boolean,
00076                                      double, visir_spc_resol);
00077 cpl_image ** visir_img_recombine(const char *, const cpl_parameterlist *,
00078                                  const irplib_framelist *, const char *,
00079                                  const char *, cpl_geom_combine, cpl_boolean *,
00080                                  cpl_boolean, double, visir_spc_resol);
00081 cpl_imagelist * visir_load_imagelist(const irplib_framelist *, int,
00082                                      cpl_boolean);
00083 cpl_imagelist * visir_load_hcycle(const irplib_framelist *, int);
00084 cpl_error_code visir_image_reject_hot(cpl_image *, const char *);
00085 
00086 cpl_imagelist * visir_imagelist_load_last(const irplib_framelist *);
00087 
00088 cpl_image ** visir_img_collapse_beam(cpl_propertylist        *,
00089                                      const cpl_image         *,
00090                                      const cpl_parameterlist *,
00091                                      const char              *,
00092                                      visir_chopnod_mode,
00093                                      const cpl_propertylist *);
00094 
00095 double visir_img_check_box(const cpl_apertures *, int, int,
00096                            const cpl_apertures *, int, int,
00097                            double, cpl_boolean *, cpl_boolean *);
00098 
00099 double visir_img_check_align(const cpl_apertures *, int,
00100                              const cpl_apertures *, int, int,
00101                              double, cpl_boolean,
00102                              cpl_boolean *);
00103 
00104 double visir_img_check_line(const cpl_apertures *, int,
00105                             const cpl_apertures *, int,
00106                             double, cpl_boolean);
00107 
00108 cpl_error_code visir_load_cube2_split(cpl_imagelist *, cpl_imagelist *,
00109                                       const irplib_framelist *, const int,
00110                                       const int, const int);
00111 
00112 cpl_error_code visir_load_burst(cpl_imagelist *, cpl_imagelist *,
00113                                 const cpl_frame *, const cpl_propertylist *,
00114                                 const int, const int, const int, const int,
00115                                 const int, const int);
00116 
00117 cpl_error_code visir_img_burst_find_delta_chop(const cpl_propertylist *,
00118                                                int *, int *);
00119 
00120 
00121 visir_chopnod_mode visir_img_find_beam(cpl_propertylist        *,
00122                                        const cpl_image         *,
00123                                        const cpl_image         *,
00124                                        const cpl_propertylist  *,
00125                                        const cpl_parameterlist *,
00126                                        const char              *,
00127                                        double                  [],
00128                                        double                  []);
00129 
00130 cpl_error_code visir_img_find_beam_two(cpl_propertylist *, const cpl_image  *,
00131                                        const cpl_image  *, double, double,
00132                                        double [], double []);
00133 
00134 #endif

Generated on Mon Feb 6 15:23:49 2012 for VISIR Pipeline Reference Manual by  doxygen 1.5.8