MUSE Pipeline Reference Manual  2.1.1
muse_quadrants.h
1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set sw=2 sts=2 et cin: */
3 /*
4  * This file is part of the MUSE Instrument Pipeline
5  * Copyright (C) 2005-2014 European Southern Observatory
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  */
21 
22 #ifndef MUSE_QUADRANTS_H
23 #define MUSE_QUADRANTS_H
24 
25 /*----------------------------------------------------------------------------*
26  * Includes *
27  *----------------------------------------------------------------------------*/
28 #include <cpl.h>
29 
30 #include "muse_image.h"
31 
32 /*----------------------------------------------------------------------------*
33  * Function prototypes *
34  *----------------------------------------------------------------------------*/
35 cpl_error_code muse_quadrants_overscan_stats(muse_image *, const char *, unsigned int);
36 cpl_boolean muse_quadrants_overscan_check(muse_image *, muse_image *, double);
38 cpl_error_code muse_quadrants_overscan_polyfit_vertical(muse_image *, unsigned, unsigned char, double, double, double);
39 cpl_size *muse_quadrants_overscan_get_window(const muse_image *, unsigned char, unsigned int);
40 
42 cpl_error_code muse_quadrants_coords_to_raw(cpl_propertylist *, int *, int *);
43 cpl_boolean muse_quadrants_verify(cpl_propertylist *);
44 cpl_size *muse_quadrants_get_window(const muse_image *, unsigned char);
45 
46 #endif /* MUSE_QUADRANTS_H */
cpl_error_code muse_quadrants_overscan_correct(muse_image *, muse_image *)
Adapt bias level to reference image using overscan statistics.
cpl_size * muse_quadrants_get_window(const muse_image *, unsigned char)
Determine the data window of a given quadrant on the CCD.
Structure definition of MUSE three extension FITS file.
Definition: muse_image.h:40
cpl_error_code muse_quadrants_overscan_polyfit_vertical(muse_image *, unsigned, unsigned char, double, double, double)
Correct quadrants by polynomial representation of vertical overscan.
cpl_boolean muse_quadrants_verify(cpl_propertylist *)
Verify that quadrant locations and sizes meet the expectations.
cpl_boolean muse_quadrants_overscan_check(muse_image *, muse_image *, double)
Compare overscan statistics of all quadrants to those of reference image.
cpl_error_code muse_quadrants_overscan_stats(muse_image *, const char *, unsigned int)
Compute overscan statistics of all quadrants and save in FITS header.
cpl_error_code muse_quadrants_coords_to_raw(cpl_propertylist *, int *, int *)
Convert coordinates of a trimmed image to raw-image coordinates.
muse_image * muse_quadrants_trim_image(muse_image *)
Trim the input image of pre- and over-scan regions of all quadrants.
cpl_size * muse_quadrants_overscan_get_window(const muse_image *, unsigned char, unsigned int)
Determine the overscan windows of a given quadrant on the CCD.