MUSE Pipeline Reference Manual  0.18.1
muse_postproc.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_POSTPROC_H
23 #define MUSE_POSTPROC_H
24 
25 /*----------------------------------------------------------------------------*
26  * Includes *
27  *----------------------------------------------------------------------------*/
28 #include <cpl.h>
29 
30 #include "muse_flux.h"
31 #include "muse_pixtable.h"
32 #include "muse_processing.h"
33 #include "muse_resampling.h"
34 #include "muse_wcs.h"
35 #include "muse_sky.h"
36 #include "muse_xcombine.h"
37 
38 /*----------------------------------------------------------------------------*
39  * Defines *
40  *----------------------------------------------------------------------------*/
41 
42 /*----------------------------------------------------------------------------*
43  * Data structures *
44  *----------------------------------------------------------------------------*/
45 
49 /*----------------------------------------------------------------------------*/
53 /*----------------------------------------------------------------------------*/
54 typedef enum {
55  MUSE_POSTPROC_SCIPOST = 0,
56  MUSE_POSTPROC_STANDARD,
57  MUSE_POSTPROC_ASTROMETRY
59 
60 /*----------------------------------------------------------------------------*/
64 /*----------------------------------------------------------------------------*/
65 typedef enum {
66  MUSE_POSTPROC_SKYMETHOD_NONE = 0,
67  MUSE_POSTPROC_SKYMETHOD_MODEL,
68  MUSE_POSTPROC_SKYMETHOD_ROWBYROW
70 
71 /*----------------------------------------------------------------------------*/
75 /*----------------------------------------------------------------------------*/
76 typedef enum {
77  MUSE_POSTPROC_DARCHECK_NONE = 0,
78  MUSE_POSTPROC_DARCHECK_CHECK,
79  MUSE_POSTPROC_DARCHECK_CORRECT
81 
82 /*----------------------------------------------------------------------------*/
86 /*----------------------------------------------------------------------------*/
87 typedef struct {
89  cpl_table *exposures;
90  double lambdamin;
91  double lambdamax;
92  double lambdaref;
94  cpl_table *response;
95  cpl_table *extinction;
96  cpl_table *telluric;
97  cpl_propertylist *wcs;
102  cpl_frame *refframe;
104  cpl_table *tellregions;
106  double detsigma;
107  double radius;
109  double faccuracy;
111  double rejsigma;
112  int niter;
115  double crpix1, crpix2;
117 
120 /*----------------------------------------------------------------------------*
121  * Function prototypes *
122  *----------------------------------------------------------------------------*/
125 
130 
132 
136 
137 #endif /* MUSE_POSTPROC_H */
Structure definition of a MUSE datacube.
Definition: muse_datacube.h:48
cpl_propertylist * muse_postproc_cube_load_output_wcs(muse_processing *)
Find a file with a usable output WCS in the input frameset.
muse_postproc_properties * muse_postproc_properties_new(muse_postproc_type)
Create a post-processing properties object.
Definition: muse_postproc.c:66
muse_postproc_skymethod
Method of sky subtraction to apply.
Definition: muse_postproc.h:65
muse_wcs_centroid_type centroid
muse_xcombine_types muse_postproc_get_weight_type(const char *)
Select correct weighting type for weight string.
Structure to hold the MASTER SKY result.
Definition: muse_sky.h:59
muse_flux_profile_type
Type of optimal profile to use.
Definition: muse_flux.h:97
muse_resampling_crstats_type muse_postproc_get_cr_type(const char *)
Select correct cosmic ray rejection type for crtype string.
cpl_error_code muse_postproc_qc_fwhm(muse_processing *, muse_datacube *)
Compute QC1 parameters for datacubes and save them in the FITS header.
cpl_error_code muse_postproc_cube_resample_and_collapse(muse_processing *, muse_pixtable *, muse_cube_type, muse_resampling_params *, const char *)
High level function to resample to a datacube and collapse that to an image of the field of view and ...
muse_flux_profile_type profile
muse_postproc_skymethod skymethod
Definition: muse_postproc.h:98
muse_wcs_centroid_type
Type of centroiding algorithm to use.
Definition: muse_wcs.h:78
Structure definition of MUSE pixel table.
muse_cube_type muse_postproc_get_cube_format(const char *)
Select correct cube format for format string.
muse_resampling_crstats_type
Cosmic ray rejection statistics type.
muse_cube_type
cpl_propertylist * wcs
Definition: muse_postproc.h:97
Structure definition of the post-processing properties.
Definition: muse_postproc.h:87
Structure to define the major settable sky parameters.
Definition: muse_sky.h:76
void muse_postproc_properties_delete(muse_postproc_properties *)
Free memory taken by a post-processing properties object and all its components.
Definition: muse_postproc.c:92
muse_postproc_darcheck
Method of DAR checking/correction to do.
Definition: muse_postproc.h:76
muse_postproc_type
Type of per-exposure processing to run.
Definition: muse_postproc.h:54
muse_resampling_type muse_postproc_get_resampling_type(const char *)
Select correct resampling type for resample string.
Handling of "mask" files.
Definition: muse_mask.h:43
muse_sky_master * sky
Definition: muse_postproc.h:99
muse_postproc_type type
Definition: muse_postproc.h:88
muse_resampling_type
Resampling types.
Resampling parameters.
void * muse_postproc_process_exposure(muse_postproc_properties *, unsigned int)
Merge and process pixel tables from one exposure.
muse_sky_params skymodel_params
muse_postproc_darcheck darcheck
Definition: muse_postproc.h:93
muse_xcombine_types
Xposure combination types.
Definition: muse_xcombine.h:45