GRAVI Pipeline Reference Manual  1.2.3
gravi_vis.h
1 /* $Id: gravi_vis.h,v 1.12 2014/11/12 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 /*
22  * $Author: nazouaoui $
23  * $Date: 2011/05/31 06:10:40 $
24  * $Revision: 1.12 $
25  * $Name: $
26  */
27 
28 #ifndef GRAVI_VIS_H_
29 #define GRAVI_VIS_H_
30 
31 /*-----------------------------------------------------------------------------
32  Includes
33  -----------------------------------------------------------------------------*/
34 
35 #include <cpl.h>
36 
37 /*-----------------------------------------------------------------------------
38  Prototypes
39  -----------------------------------------------------------------------------*/
40 
41 gravi_data * gravi_compute_vis (gravi_data *p2vmred_data,
42  const cpl_parameterlist *,
43  cpl_size * current_frame);
44 
45 cpl_error_code gravi_compute_vis_qc (gravi_data * vis_data);
46 
47 cpl_error_code gravi_vis_mjd_to_time (gravi_data * vis_data);
48 
49 cpl_error_code gravi_flat_flux (gravi_data * vis_calib, gravi_data * p2vm_data);
50 cpl_error_code gravi_normalize_sc_to_ft (gravi_data * visdata);
51 
52 cpl_error_code gravi_average_vis (gravi_data * oi_merged);
53 cpl_error_code gravi_vis_resamp (gravi_data * oi_merged, cpl_size nsamp);
54 cpl_error_code gravi_vis_smooth (gravi_data * oi_data,
55  cpl_size nsamp_vis, cpl_size nsamp_flx,
56  cpl_size maxdeg);
57 
58 cpl_error_code gravi_vis_flag_threshold (cpl_table * oi_table, const char * data, const char *flag, double value);
59 cpl_error_code gravi_vis_flag_relative_threshold (cpl_table * oi_table, const char * err, const char * data, const char *flag, double value);
60 
61 cpl_error_code gravi_force_uncertainties (gravi_data * oi_data,
62  const cpl_parameterlist * parlist);
63 
64 
65 cpl_error_code gravi_vis_erase_obs (cpl_table * oi_table, cpl_array *flag_array, cpl_size ntel);
66 cpl_error_code gravi_vis_force_time (gravi_data * oi_data);
67 
68 #endif /* GRAVI_VIS_H_ */
cpl_error_code gravi_vis_resamp(gravi_data *oi_merged, cpl_size nsamp)
Re-bin the SC table by nsamp consecutive spectral bins.
Definition: gravi_vis.c:3273
cpl_error_code gravi_compute_vis_qc(gravi_data *vis_data)
The function compute the QC parameters for a VIS (averaged) data.
Definition: gravi_vis.c:2048
gravi_data * gravi_compute_vis(gravi_data *p2vmred_data, const cpl_parameterlist *, cpl_size *current_frame)
The function average the individual frames of a P2VMREDUCED file into a final, single observation per...
Definition: gravi_vis.c:1509
cpl_error_code gravi_vis_erase_obs(cpl_table *oi_table, cpl_array *flag_array, cpl_size ntel)
Erase observation from an OIFITS table.
Definition: gravi_vis.c:3593
cpl_error_code gravi_vis_mjd_to_time(gravi_data *vis_data)
Recompute the TIME column of all OIFITS extension from the MJD column, following the OIFITS standard ...
Definition: gravi_vis.c:2403
cpl_error_code gravi_vis_flag_threshold(cpl_table *oi_table, const char *data, const char *flag, double value)
Flag samples of OIFITS table based on absolute threshold.
Definition: gravi_vis.c:3437
cpl_error_code gravi_vis_smooth(gravi_data *oi_data, cpl_size nsamp_vis, cpl_size nsamp_flx, cpl_size maxdeg)
Smooth the SC table by nsamp consecutive spectral bins.
Definition: gravi_vis.c:3102
cpl_error_code gravi_average_vis(gravi_data *oi_merged)
Coadd the observations together.
Definition: gravi_vis.c:2750
cpl_error_code gravi_vis_force_time(gravi_data *oi_data)
Force all data in OI_TABLE to have the same TIME and MJD.
Definition: gravi_vis.c:3761
cpl_error_code gravi_normalize_sc_to_ft(gravi_data *visdata)
Align the SC visibilities on the FT visibilities.
Definition: gravi_vis.c:2317
cpl_error_code gravi_flat_flux(gravi_data *vis_calib, gravi_data *p2vm_data)
Divide the OI_FLUX by OI_FLUX from the P2VM (no checks, no time distance...)
Definition: gravi_vis.c:2457
cpl_error_code gravi_force_uncertainties(gravi_data *oi_data, const cpl_parameterlist *parlist)
Force uncertainties.
Definition: gravi_vis.c:2660
cpl_error_code gravi_vis_flag_relative_threshold(cpl_table *oi_table, const char *err, const char *data, const char *flag, double value)
Flag samples of OIFITS table based on relative threshold.
Definition: gravi_vis.c:3543