GRAVI Pipeline Reference Manual 1.7.2
Loading...
Searching...
No Matches
gravi_vis.h
Go to the documentation of this file.
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
42 const cpl_parameterlist *,
43 cpl_size * current_frame);
44
45cpl_error_code gravi_compute_vis_qc (gravi_data * vis_data,
46 cpl_frameset * frameset);
47
48cpl_error_code gravi_vis_mjd_to_time (gravi_data * vis_data);
49
50cpl_error_code gravi_flat_flux (gravi_data * vis_calib, gravi_data * p2vm_data);
51cpl_error_code gravi_normalize_sc_to_ft (gravi_data * visdata);
52
53cpl_error_code gravi_average_vis (gravi_data * oi_merged);
54cpl_error_code gravi_vis_resamp (gravi_data * oi_merged, cpl_size nsamp);
55cpl_error_code gravi_vis_smooth (gravi_data * oi_data,
56 cpl_size nsamp_vis, cpl_size nsamp_flx,
57 cpl_size maxdeg);
58
59cpl_error_code gravi_vis_flag_threshold (cpl_table * oi_table, const char * data, const char *flag, double value);
60cpl_error_code gravi_vis_flag_relative_threshold (cpl_table * oi_table, const char * err, const char * data, const char *flag, double value);
61cpl_error_code gravi_vis_flag_lower (cpl_table * oi_table, const char * data, const char *flag, double value);
62
63cpl_error_code gravi_force_uncertainties (gravi_data * oi_data,
64 const cpl_parameterlist * parlist);
65
66cpl_error_code gravi_vis_copy_fluxdata (gravi_data * oi_data, int delete_flux);
67
68cpl_error_code gravi_vis_erase_obs (cpl_table * oi_table, cpl_array *flag_array, cpl_size ntel);
69cpl_error_code gravi_vis_force_time (gravi_data * oi_data);
70cpl_error_code gravi_data_get_minmax_uvcoord(const cpl_table *oi_vis2,
71 double * min_uvcoord,
72 double * max_uvcoord);
73
74#endif /* GRAVI_VIS_H_ */
typedefCPL_BEGIN_DECLS struct _gravi_data_ gravi_data
Definition: gravi_data.h:39
const cpl_size ntel
cpl_error_code gravi_normalize_sc_to_ft(gravi_data *visdata)
Align the SC visibilities on the FT visibilities.
Definition: gravi_vis.c:2564
cpl_error_code gravi_force_uncertainties(gravi_data *oi_data, const cpl_parameterlist *parlist)
Force uncertainties.
Definition: gravi_vis.c:2908
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:1675
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:3363
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:4123
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:2650
cpl_error_code gravi_vis_copy_fluxdata(gravi_data *oi_data, int delete_flux)
Duplicate the column FLUX into FLUXDATA, for OIFITS2 compliance.
Definition: gravi_vis.c:3635
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:3538
cpl_error_code gravi_data_get_minmax_uvcoord(const cpl_table *oi_vis2, double *min_uvcoord, double *max_uvcoord)
Compute the minimum and maximum values of sqrt(ucoord**2 + vcoord**2)
Definition: gravi_vis.c:2509
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:2704
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:3753
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:3905
cpl_error_code gravi_vis_flag_lower(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:3799
cpl_error_code gravi_average_vis(gravi_data *oi_merged)
Coadd the observations together.
Definition: gravi_vis.c:2998
cpl_error_code gravi_compute_vis_qc(gravi_data *vis_data, cpl_frameset *frameset)
The function compute the QC parameters for a VIS (averaged) data.
Definition: gravi_vis.c:2234
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:3955