CR2RE Pipeline Reference Manual 1.6.8
cr2res_idp.h
1/*
2 * This file is part of the CR2RES Pipeline
3 * Copyright (C) 2002,2003 European Southern Observatory
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
18 */
19
20#ifndef CR2RES_IDP_H
21#define CR2RES_IDP_H
22
23/*-----------------------------------------------------------------------------
24 Includes
25-----------------------------------------------------------------------------*/
26
27#include <cpl.h>
28
29/*-----------------------------------------------------------------------------
30 Define
31-----------------------------------------------------------------------------*/
32
33#define SPEC_RESOL_SLIT02 86000.0
34#define SPEC_RESOL_SLIT04 43000.0
35
36
37/*-----------------------------------------------------------------------------
38 Functions prototypes
39-----------------------------------------------------------------------------*/
40int cr2res_wl_is_ghost(const char * setting, double wl);
41cpl_bivector * cr2res_get_ghosts(const char * setting);
42
44 const char * filename,
45 cpl_frameset * allframes,
46 cpl_frameset * rawframes,
47 const cpl_parameterlist * parlist,
48 cpl_table ** tables,
49 cpl_propertylist * main_qc_plist,
50 cpl_propertylist ** ext_plist,
51 const char * procatg,
52 const char * recipe) ;
53
54cpl_table * cr2res_idp_create_table(
55 cpl_table ** tables,
56 const char * recipe,
57 const char * setting,
58 int error_method,
59 int nab) ;
60
62 cpl_frameset * fset,
63 double * mjd_start,
64 double * mjd_end) ;
65
66#endif
67
int cr2res_idp_save(const char *filename, cpl_frameset *allframes, cpl_frameset *rawframes, const cpl_parameterlist *parlist, cpl_table **tables, cpl_propertylist *main_qc_plist, cpl_propertylist **ext_plist, const char *procatg, const char *recipe)
Save an IDP file.
Definition: cr2res_idp.c:84
int cr2res_idp_compute_mjd(cpl_frameset *fset, double *mjd_start, double *mjd_end)
Compute mjd start and end.
Definition: cr2res_idp.c:793
cpl_table * cr2res_idp_create_table(cpl_table **tables, const char *recipe, const char *setting, int error_method, int nab)
Convert EXTRACT_1D tables into IDP table.
Definition: cr2res_idp.c:583