visir_inputs.h

00001 /* $Id: visir_inputs.h,v 1.41 2011/02/03 13:19:43 llundin 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: llundin $
00023  * $Date: 2011/02/03 13:19:43 $
00024  * $Revision: 1.41 $
00025  * $Name: HEAD $
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 /* Due to a inconsistency in the chosen VISIR FITS-format the pixels in
00046    the half-cycle image are offset, such that the lowest pixel value is
00047    -32768 (or perhaps -32767?). This is fixed by adding 32768 to each
00048    pixel value */
00049 #define VISIR_HCYCLE_OFFSET  32768.0
00050 
00051 typedef enum {
00052     /* VISIR nod/chopping mode detection */
00053 
00054     /* Mode can be assumed to be: PERPENDICULAR */
00055     VISIR_CHOPNOD_PERPENDICULAR,
00056 
00057     /* Mode can be assumed to be: PARALLEL */
00058     VISIR_CHOPNOD_PARALLEL,
00059     
00060     /* Mode is determined from FITS header */
00061     VISIR_CHOPNOD_AUTO
00062 
00063 } visir_chopnod_mode;
00064 
00065 
00066 /*-----------------------------------------------------------------------------
00067                                    Functions prototypes
00068  -----------------------------------------------------------------------------*/
00069 
00070 cpl_imagelist * visir_inputs_combine(const char *, const cpl_parameterlist *,
00071                                      const irplib_framelist *, const char *,
00072                                      const char *,  int *, cpl_boolean,
00073                                      double, visir_spc_resol);
00074 cpl_image ** visir_img_recombine(const char *, const cpl_parameterlist *,
00075                                  const irplib_framelist *, const char *,
00076                                  const char *, cpl_geom_combine, cpl_boolean *,
00077                                  cpl_boolean, double, visir_spc_resol);
00078 cpl_imagelist * visir_load_imagelist(const irplib_framelist *, int,
00079                                      cpl_boolean);
00080 cpl_imagelist * visir_load_hcycle(const irplib_framelist *, int);
00081 cpl_error_code visir_image_reject_hot(cpl_image *, const char *);
00082 
00083 cpl_imagelist * visir_imagelist_load_last(const irplib_framelist *);
00084 
00085 cpl_image ** visir_img_collapse_beam(cpl_propertylist        *,
00086                                      const cpl_image         *,
00087                                      const cpl_parameterlist *,
00088                                      const char              *,
00089                                      visir_chopnod_mode,
00090                                      const cpl_propertylist *);
00091 
00092 double visir_img_check_box(const cpl_apertures *, int, int,
00093                            const cpl_apertures *, int, int,
00094                            double, cpl_boolean *, cpl_boolean *);
00095 
00096 double visir_img_check_align(const cpl_apertures *, int,
00097                              const cpl_apertures *, int, int,
00098                              double, cpl_boolean,
00099                              cpl_boolean *);
00100 
00101 cpl_image * visir_load_cube2_split(cpl_imagelist *, cpl_imagelist *,
00102                                    const irplib_framelist *, int);
00103 
00104 #endif

Generated on Thu Mar 24 11:59:39 2011 for VISIR Pipeline Reference Manual by  doxygen 1.5.8