MOONS Pipeline Reference Manual 0.13.1
moo_sub_sky_stare.h
1/*
2 * This file is part of the MOONS Pipeline
3 * Copyright (C) 2002-2016 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 Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20#ifndef MOO_SUB_SKY_STARE_H
21#define MOO_SUB_SKY_STARE_H
22
23
24/*-----------------------------------------------------------------------------
25 Includes
26 -----------------------------------------------------------------------------*/
27#include <cpl.h>
28#include <hdrl.h>
29#include "moo_params.h"
30#include "moo_rbn.h"
31#include "moo_target_table.h"
32#include "moo_f2f.h"
33#include "moo_sci.h"
34
35#define MOO_DEBUG_SKY 0
36
37#define MOO_SKY_STARE_INDEXTARG "INDEXTARG"
38#define MOO_SKY_STARE_TARGNAME "TARGNAME"
39#define MOO_SKY_STARE_INDEXRBN "INDEXRBN"
40#define MOO_SKY_STARE_SKYINDEXRBN "SKY_INDEXRBN"
41#define MOO_SKY_STARE_SKYDSLIT "SKY_DSLIT"
42#define MOO_SKY_STARE_SKYTRANS "SKY_TRANS"
43#define MOO_SKY_STARE_RADIUS "RADIUS"
44#define MOO_SKY_STARE_SKYDIST "SKY_DISTANCE"
45
46#define MOO_SCI1D_NOT_PAIRED 0
47#define MOO_SCI1D_PAIRED 1
48/*-----------------------------------------------------------------------------
49 Functions prototypes
50 -----------------------------------------------------------------------------*/
51moo_sci *moo_sub_sky_stare(moo_rbn *rbn,
52 moo_target_table *target_table,
53 moo_rbn *sky_rbn,
54 moo_f2f *f2f,
55 const cpl_frame *solflux_frame,
56 const cpl_frame *airglow_group_frame,
57 const cpl_frame *airglow_var_frame,
58 moo_sub_sky_stare_params *params,
59 const char *filename,
60 int ispaired);
61
62cpl_array *moo_select_sky(const char *targname,
63 int indextarg,
64 int indexrbn,
65 double obj_targalpha,
66 double obj_targdelta,
67 cpl_table *target_table,
68 const char *index_colname,
69 cpl_table *sky_stare_table,
71 int maxdistslit,
72 double mintrans,
73 int min_sky,
74 double radius,
75 double step_r,
76 int target_table_idx,
77 moo_f2f *f2f,
78 cpl_array *allsky_indexes);
79#endif
enum _moo_detector_type_ moo_detector_type
The type code type.
Definition: moo_detector.h:64
cpl_array * moo_select_sky(const char *targname, int indextarg, int indexrbn, double obj_targalpha, double obj_targdelta, cpl_table *target_table, const char *index_colname, cpl_table *sky_stare_table, moo_detector_type type, int maxdistslit, double mintrans, int min_sky, double radius, double step_r, int target_table_idx, moo_f2f *f2f, cpl_array *allsky_indexes)
This function selects sky fibres around a target object.
moo_sci * moo_sub_sky_stare(moo_rbn *rbn, moo_target_table *target_table, moo_rbn *sky_rbn, moo_f2f *f2f, const cpl_frame *solflux_frame, const cpl_frame *airglow_group_frame, const cpl_frame *airglow_var_frame, moo_sub_sky_stare_params *params, const char *filename, int ispaired)
This function subtracts the sky in wavelength calibrated and extracted science frames obtain in Stare...
the different type of detectors