00001 /* $Id: naco_wavelength.h,v 1.5 2006/10/31 12:04:24 llundin Exp $ 00002 * 00003 * This file is part of the NACO 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: 2006/10/31 12:04:24 $ 00024 * $Revision: 1.5 $ 00025 * $Name: HEAD $ 00026 */ 00027 00028 #ifndef NACO_WAVELENGTH_H 00029 #define NACO_WAVELENGTH_H 00030 00031 /*----------------------------------------------------------------------------- 00032 Includes 00033 -----------------------------------------------------------------------------*/ 00034 00035 #include <cpl.h> 00036 00037 /*----------------------------------------------------------------------------- 00038 New types 00039 -----------------------------------------------------------------------------*/ 00040 00041 typedef struct _computed_disprel_ { 00042 double * poly; /* List of solution polynomial coefficients */ 00043 int degree; /* The degree of the polynomial (currently 3) */ 00044 double cc; /* Cross-correlation number, -1 <= cc <= 1 */ 00045 double mean; /* Mean line misaligment [pixel] of detected lines */ 00046 double rms; /* RMS Mean line misaligment [pixel] of detected lines */ 00047 double offset; /* Change in the constant term of the polynomial */ 00048 double scal1; /* Scaling of 1st degree coefficient */ 00049 double scal2; /* Scaling of 2nd degree coefficient */ 00050 double scal3; /* Scaling of 3rd degree coefficient */ 00051 int clines; /* Number of catalog lines used in the fit */ 00052 int dlines; /* Number of catalog lines detected in the image */ 00053 } computed_disprel; 00054 00055 /*----------------------------------------------------------------------------- 00056 Prototypes 00057 -----------------------------------------------------------------------------*/ 00058 00059 computed_disprel * naco_spectro_compute_disprel(const cpl_image *, int, int, 00060 int, int, int, const char *, 00061 double, int, int, double *); 00062 00063 #endif