MUSE Pipeline Reference Manual  0.18.1
muse_resampling.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  *
5  * This file is part of the MUSE Instrument Pipeline
6  * Copyright (C) 2005-2011 European Southern Observatory
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  */
22 
23 #ifndef MUSE_RESAMPLING_H
24 #define MUSE_RESAMPLING_H
25 
26 /*----------------------------------------------------------------------------*
27  * Includes *
28  *----------------------------------------------------------------------------*/
29 #include <cpl.h>
30 
31 #include "muse_cplwrappers.h"
32 #include "muse_datacube.h"
33 #include "muse_image.h"
34 #include "muse_pixgrid.h"
35 #include "muse_pixtable.h"
36 
37 /*----------------------------------------------------------------------------*
38  * Defines *
39  *----------------------------------------------------------------------------*/
40 
44 /*----------------------------------------------------------------------------*/
48 /*----------------------------------------------------------------------------*/
49 typedef enum {
65 
66 /*----------------------------------------------------------------------------*/
70 /*----------------------------------------------------------------------------*/
71 /* keep this in sync with crtypestring[] in muse_resampling.c! */
72 typedef enum {
81 
82 typedef enum {
88 
89 /*----------------------------------------------------------------------------*/
93 /*----------------------------------------------------------------------------*/
94 typedef struct {
100  double crsigma;
101 
103  int ld;
107  double pfx, pfy, pfl;
109  double rc;
110 
113  double dx, dy, dlambda;
115  cpl_wcs *wcs;
119 
122 /*----------------------------------------------------------------------------*
123  * Function prototypes *
124  *----------------------------------------------------------------------------*/
126 cpl_error_code muse_resampling_params_set_wcs(muse_resampling_params *, const cpl_propertylist *);
128 
132 
134 cpl_table *muse_resampling_spectrum(muse_pixtable *, double);
135 
136 #endif /* MUSE_RESAMPLING_H */
Structure definition of a MUSE datacube.
Definition: muse_datacube.h:48
muse_image * muse_resampling_image(muse_pixtable *, muse_resampling_type, double, double)
Resample a pixel table onto a two-dimensional regular grid.
cpl_error_code muse_resampling_params_set_wcs(muse_resampling_params *, const cpl_propertylist *)
Set an output WCS (and wavelength scale) in the resampling parameters.
The pixel grid.
Definition: muse_pixgrid.h:56
Structure definition of MUSE three extension FITS file.
Definition: muse_image.h:41
muse_resampling_crstats_type crtype
Structure definition of MUSE pixel table.
muse_resampling_crstats_type
Cosmic ray rejection statistics type.
muse_resampling_params * muse_resampling_params_new(muse_resampling_type)
Create the resampling parameters structure.
Structure definition of a Euro3D datacube.
Definition: muse_datacube.h:97
muse_resampling_dispersion_type
muse_datacube * muse_resampling_cube(muse_pixtable *, muse_resampling_params *, muse_pixgrid **)
Resample a pixel table onto a regular grid structure representing a FITS NAXIS=3 datacube.
muse_resampling_dispersion_type tlambda
muse_image * muse_resampling_collapse_pixgrid(muse_pixtable *, muse_pixgrid *, muse_datacube *, cpl_table *, muse_resampling_params *)
Integrate a pixel table / pixel grid along the wavelength direction.
muse_resampling_type
Resampling types.
muse_euro3dcube * muse_resampling_euro3d(muse_pixtable *, muse_resampling_params *)
Resample a pixel table onto a regular grid structure representing a Euro3D format file...
Resampling parameters.
void muse_resampling_params_delete(muse_resampling_params *)
Delete a resampling parameters structure.
muse_resampling_type method
cpl_table * muse_resampling_spectrum(muse_pixtable *, double)
Resample the selected pixels of a pixel table into a spectrum.