IIINSTRUMENT Pipeline Reference Manual 4.4.13
naco_spc.h
1/* $Id: naco_spc.h,v 1.23 2008-09-12 09:17:51 llundin Exp $
2 *
3 * This file is part of the NACO Pipeline
4 * Copyright (C) 2002,2003 European Southern Observatory
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
19 */
20
21/*
22 * $Author: llundin $
23 * $Date: 2008-09-12 09:17:51 $
24 * $Revision: 1.23 $
25 * $Name: not supported by cvs2svn $
26 */
27
28#ifndef NACO_SPC_H
29#define NACO_SPC_H
30
31/*-----------------------------------------------------------------------------
32 Includes
33 -----------------------------------------------------------------------------*/
34
35#include <cpl.h>
36#include <irplib_framelist.h>
37
38#include "naco_pfits.h"
39
40
41/*-----------------------------------------------------------------------------
42 Define
43 -----------------------------------------------------------------------------*/
44
45#define NACO_SPC_MODEL_COEFFS 4
46/* The number of columns is 5 + NACO_SPC_MODEL_COEFFS */
47#define NACO_SPC_MODEL_COLS 9
48
49#define NACO_SPC_LAB_MODE "SpecMode"
50#define NACO_SPC_LAB_RESID "Residual"
51#define NACO_SPC_LAB_ORDER "Fit_Order"
52#define NACO_SPC_LAB_XMIN "XMin"
53#define NACO_SPC_LAB_XMAX "XMax"
54#define NACO_SPC_LAB_C1 "C_1"
55#define NACO_SPC_LAB_C2 "C_2"
56#define NACO_SPC_LAB_C3 "C_3"
57#define NACO_SPC_LAB_C4 "C_4"
58
59#define NACO_SPC_LAB_WAVE "WAVELENGTH"
60#define NACO_SPC_LAB_INTENS "INTENSITY"
61
62#define NACO_SPC_MAN_MODESPLIT \
63 "The input frames are split into groups with identical values of '" \
64 NACO_PFITS_DOUBLE_DIT "', '" \
65 NACO_PFITS_STRING_SLITNAME "', '" \
66 NACO_PFITS_DOUBLE_CWLEN "' and '" \
67 NACO_PFITS_STRING_SPECMODE "'."
68
69/*-----------------------------------------------------------------------------
70 Function Prototypes
71 -----------------------------------------------------------------------------*/
72
73char * naco_spc_make_tag(const cpl_frame*, const cpl_propertylist *, int);
74
75cpl_error_code naco_imagelist_load_diff(cpl_imagelist *,
76 const irplib_framelist *,
77 const cpl_propertylist *);
78
79cpl_error_code naco_imagelist_split(cpl_imagelist *);
80
81cpl_error_code naco_imagelist_add_split(cpl_imagelist *);
82
83cpl_error_code naco_imagelist_append_invert(cpl_imagelist *);
84
85cpl_error_code naco_vector_correlate_imagelist_1d(cpl_vector *,
86 const cpl_vector *,
87 cpl_boolean,
88 const cpl_imagelist *);
89#endif
cpl_error_code naco_vector_correlate_imagelist_1d(cpl_vector *, const cpl_vector *, cpl_boolean, const cpl_imagelist *)
Use 1D cross-correlation to recompute the offsets in one direction.
Definition: naco_spc.c:96
cpl_error_code naco_imagelist_split(cpl_imagelist *)
Split the images in an imagelist into positive and negative images.
Definition: naco_spc.c:340
char * naco_spc_make_tag(const cpl_frame *, const cpl_propertylist *, int)
Create a string suitable for frame comparison in spectroscopy.
Definition: naco_spc.c:407
cpl_error_code naco_imagelist_append_invert(cpl_imagelist *)
Fo each image append also its inverted.
Definition: naco_spc.c:300
cpl_error_code naco_imagelist_load_diff(cpl_imagelist *, const irplib_framelist *, const cpl_propertylist *)
Fill the list of difference images from on/off frames.
Definition: naco_spc.c:482
cpl_error_code naco_imagelist_add_split(cpl_imagelist *)
Readd all the pairs, preserving the number of images.
Definition: naco_spc.c:256