File: naco_spc.h

package info (click to toggle)
cpl-plugin-naco 4.4.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 7,512 kB
  • sloc: ansic: 45,092; sh: 12,405; makefile: 550; python: 296
file content (89 lines) | stat: -rw-r--r-- 3,502 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/* $Id: naco_spc.h,v 1.23 2008-09-12 09:17:51 llundin Exp $
 *
 * This file is part of the NACO Pipeline
 * Copyright (C) 2002,2003 European Southern Observatory
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA
 */

/*
 * $Author: llundin $
 * $Date: 2008-09-12 09:17:51 $
 * $Revision: 1.23 $
 * $Name: not supported by cvs2svn $
 */

#ifndef NACO_SPC_H
#define NACO_SPC_H

/*-----------------------------------------------------------------------------
                                   Includes
 -----------------------------------------------------------------------------*/

#include <cpl.h>
#include <irplib_framelist.h>

#include "naco_pfits.h"


/*-----------------------------------------------------------------------------
                                   Define
 -----------------------------------------------------------------------------*/

#define NACO_SPC_MODEL_COEFFS       4
/* The number of columns is 5 + NACO_SPC_MODEL_COEFFS */
#define NACO_SPC_MODEL_COLS         9

#define NACO_SPC_LAB_MODE           "SpecMode"
#define NACO_SPC_LAB_RESID          "Residual"
#define NACO_SPC_LAB_ORDER          "Fit_Order"
#define NACO_SPC_LAB_XMIN           "XMin"
#define NACO_SPC_LAB_XMAX           "XMax"
#define NACO_SPC_LAB_C1             "C_1"
#define NACO_SPC_LAB_C2             "C_2"
#define NACO_SPC_LAB_C3             "C_3"
#define NACO_SPC_LAB_C4             "C_4"

#define NACO_SPC_LAB_WAVE           "WAVELENGTH"
#define NACO_SPC_LAB_INTENS         "INTENSITY"

#define NACO_SPC_MAN_MODESPLIT                                          \
    "The input frames are split into groups with identical values of '" \
    NACO_PFITS_DOUBLE_DIT      "', '"                                   \
    NACO_PFITS_STRING_SLITNAME "', '"                                   \
    NACO_PFITS_DOUBLE_CWLEN    "' and '"                                \
    NACO_PFITS_STRING_SPECMODE "'."

/*-----------------------------------------------------------------------------
                                   Function Prototypes
 -----------------------------------------------------------------------------*/

char * naco_spc_make_tag(const cpl_frame*, const cpl_propertylist *, int);

cpl_error_code naco_imagelist_load_diff(cpl_imagelist *,
                                        const irplib_framelist *,
                                        const cpl_propertylist *);

cpl_error_code naco_imagelist_split(cpl_imagelist *);

cpl_error_code naco_imagelist_add_split(cpl_imagelist *);

cpl_error_code naco_imagelist_append_invert(cpl_imagelist *);

cpl_error_code naco_vector_correlate_imagelist_1d(cpl_vector *,
                                                  const cpl_vector *,
                                                  cpl_boolean,
                                                  const cpl_imagelist *);
#endif