GRAVI Pipeline Reference Manual 1.9.0
Loading...
Searching...
No Matches
gravi_preproc.h
Go to the documentation of this file.
1/* $Id: gravi_utils.h,v 1.12 2011/05/31 06:10:40 nazouaoui Exp $
2 *
3 * This file is part of the GRAVI 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21#ifndef GRAVI_PREPROC_H_
22#define GRAVI_PREPROC_H_
23
24/*-----------------------------------------------------------------------------
25 Includes
26 -----------------------------------------------------------------------------*/
27
28#include <cpl.h>
29#include "gravi_data.h"
30#include "gravi_pfits.h"
31
32/*-----------------------------------------------------------------------------
33 Public prototypes
34 -----------------------------------------------------------------------------*/
35
36int gravi_pixel_is_good (cpl_image * bad_img, int x, int y);
37
38cpl_error_code gravi_remove_badpixel_sc (cpl_imagelist * imglist_sc, cpl_image * bad_img);
39
41 gravi_data * profile_map,
42 gravi_data * dark_map,
43 gravi_data * bad_map,
44 gravi_data * sky_map,
45 const cpl_parameterlist * parlist,
46 enum gravi_detector_type det_type);
47
48cpl_error_code gravi_align_spectrum (gravi_data * spectrum_data,
49 gravi_data * wave_map,
50 gravi_data * p2vm_map,
51 enum gravi_detector_type det_type);
52
53cpl_error_code gravi_subtract_met_dark (gravi_data * preproc_data,
54 gravi_data * dark_map);
55
56#endif /* GRAVI_CALIB_H_ */
typedefCPL_BEGIN_DECLS struct _gravi_data_ gravi_data
Definition: gravi_data.h:39
gravi_detector_type
Definition: gravi_pfits.h:170
int gravi_pixel_is_good(cpl_image *bad_img, int x, int y)
Check if the pixel in the BADPIX map is a good pixel.
Definition: gravi_preproc.c:98
cpl_error_code gravi_align_spectrum(gravi_data *spectrum_data, gravi_data *wave_map, gravi_data *p2vm_map, enum gravi_detector_type det_type)
Regrid the regions into a common wavelength (in-place)
cpl_error_code gravi_remove_badpixel_sc(cpl_imagelist *imglist_sc, cpl_image *bad_img)
Remove the badpixel of the SC.
gravi_data * gravi_extract_spectrum(gravi_data *raw_data, gravi_data *profile_map, gravi_data *dark_map, gravi_data *bad_map, gravi_data *sky_map, const cpl_parameterlist *parlist, enum gravi_detector_type det_type)
Create the SPECTRUM gravi_data with extracted spectrum per region.
cpl_error_code gravi_subtract_met_dark(gravi_data *preproc_data, gravi_data *dark_map)
Substract metrology dark.