MOONS Pipeline Reference Manual 0.13.1
moo_skycorr.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_SKYCORR_H
21#define MOO_SKYCORR_H
22
23#include <cpl.h>
24#include <hdrl.h>
25#include "moo_params.h"
26
27#define MOO_SC_FWHM 5.0
28#define MOO_SC_VARFWHM 0
29
30#define MOO_DEBUG_SKYCORR 0
31/*-----------------------------------------------------------------------------
32 Includes
33 -----------------------------------------------------------------------------*/
34cpl_error_code moo_skycorr(hdrl_image *rbn,
35 hdrl_image *sky,
36 int indextarg,
37 int indexrbn,
38 double crpix1,
39 double crval1,
40 double cd1_1,
41 cpl_propertylist *header,
42 const cpl_frame *solflux_frame,
43 const cpl_frame *airglow_group_frame,
44 const cpl_frame *airglow_var_frame,
45 moo_skycorr_params *params,
46 hdrl_image *sci,
47 cpl_image *sci_sky);
48//char* moo_string_encode(const char* s);
49#endif
cpl_error_code moo_skycorr(hdrl_image *rbn, hdrl_image *sky, int indextarg, int indexrbn, double crpix1, double crval1, double cd1_1, cpl_propertylist *header, const cpl_frame *solflux_frame, const cpl_frame *airglow_group_frame, const cpl_frame *airglow_var_frame, moo_skycorr_params *params, hdrl_image *sci, cpl_image *sci_sky)
call the skycorr subtract sky function
Definition: moo_skycorr.c:939