GRAVI Pipeline Reference Manual 1.9.2
Loading...
Searching...
No Matches
Functions
gravi_signal.c File Reference
#include <cpl.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <complex.h>
#include "gravi_data.h"
#include "gravi_dfs.h"
#include "gravi_pfits.h"
#include "gravi_cpl.h"
#include "gravi_utils.h"
#include "gravi_signal.h"

Go to the source code of this file.

Functions

cpl_error_code gravi_vis_bootstrap_snr_and_delay (cpl_table *oi_vis, const char *name_snr, const char *name_gdl)
 Boostrap real-time SNR and GDELAY.
 
cpl_error_code gravi_vis_correct_phasediff (cpl_table *oi_vis1, const char *name1, cpl_table *oi_vis2, const char *name2, double *phasediff)
 Correct for mean phase-difference between coherent fluxes.
 
cpl_error_code gravi_vis_compute_mean_phasor (cpl_table *oi_vis, const char *name_vis, const char *name_err, const char *name_pha, const char *name_var, const char *name_flag)
 Compute real-time mean phasor of a VISDATA by averaging all spectral elements.
 
cpl_error_code gravi_vis_compute_interspectre (cpl_table *oi_vis, const char *name_vis, const char *name_is, const char *name_flag)
 Compute the real-time interspectra.
 
cpl_error_code gravi_vis_compute_snr (cpl_table *oi_vis, const char *name_pha, const char *name_var, const char *name_snr)
 Compute the real-time SNR.
 
cpl_error_code gravi_vis_compute_isdelay (cpl_table *oi_vis, const char *name_isp, const char *name_gdl, cpl_table *oi_wavelength)
 Compute the group-delay from interspectra.
 
cpl_error_code gravi_vis_create_pfactor_sc (cpl_table *vis_SC, cpl_table *t3_SC, cpl_table *flux_FT)
 Compute the PFACTOR for the SC.
 
cpl_error_code gravi_vis_create_pfactor_ft (cpl_table *vis_FT, cpl_table *flux_FT, cpl_size window_width)
 Compute the PFACTOR for the FT.
 
cpl_error_code gravi_vis_create_f1f2_sc (cpl_table *vis_SC, cpl_table *flux_SC)
 Compute the photometric normalisation for the SC.
 
cpl_error_code gravi_vis_create_f1f2_ft (cpl_table *vis_FT, cpl_table *flux_FT)
 Compute the photometric normalisation for the FT.
 
cpl_error_code gravi_vis_create_phaseref_ft (cpl_table *vis_FT)
 Compute the self-reference phase for each FT DIT.
 
cpl_error_code gravi_vis_create_met_sc (cpl_table *vis_SC, cpl_table *vis_MET, cpl_table *wave_table)
 Compute the averaged MET signal for each SC DIT per base.
 
cpl_error_code gravi_create_outlier_flag_sc (cpl_table *flux_SC, cpl_table *vis_SC, double chi2r_threshold, double chi2r_sigma)
 Create the list of outlier based on the values of the chi2.
 
cpl_error_code gravi_create_outlier_flag_ft (cpl_table *flux_FT, cpl_table *vis_FT)
 Create the list of outlier. For the FT, this is filled with 0.
 
cpl_error_code gravi_flux_create_fddlpos_sc (cpl_table *flux_SC, cpl_table *fddl_table)
 Compute the averaged FDDL signal for each SC DIT per beam.
 
cpl_error_code gravi_flux_create_totalflux_sc (cpl_table *flux_SC, cpl_table *flux_FT)
 Compute total flux of each DIT for the SC and of the FT.
 
cpl_error_code gravi_flux_create_met_sc (cpl_table *flux_SC, cpl_table *vis_MET)
 Compute the averaged MET signal for each SC DIT per beam.
 
cpl_error_code gravi_flux_create_acq_sc (cpl_table *flux_SC, cpl_table *vis_ACQ)
 Compute the averaged ACQ signal for each SC DIT per beam.
 
cpl_error_code gravi_vis_create_acq_sc (cpl_table *vis_SC, cpl_table *vis_ACQ)
 Compute the averaged ACQ signal for each SC DIT per base.
 
cpl_error_code gravi_vis_create_vfactor_sc (cpl_table *vis_SC, cpl_table *wave_table_sc, cpl_table *vis_FT, cpl_table *wave_table_ft)
 Compute the VFACTOR for each SC DIT based on real-time FT.
 
cpl_error_code gravi_vis_create_lockratio_sc (cpl_table *vis_SC, cpl_table *vis_FT)
 Create the clockratio for each SC DIT and baseline.
 
cpl_error_code gravi_vis_create_phaseref_sc (cpl_table *vis_SC, cpl_table *wavesc_table, cpl_table *waveft_table, cpl_propertylist *header, const cpl_parameterlist *parlist)
 Compute the reference phase for each SC DIT.
 
cpl_error_code gravi_vis_create_opddisp_sc (cpl_table *vis_SC, cpl_table *flux_SC, cpl_table *wave_table, cpl_table *disp_table, cpl_propertylist *header, const cpl_parameterlist *parlist)
 Compute the MET opd including the dispersion from the FDDL.
 
cpl_error_code gravi_vis_create_imagingref_sc (cpl_table *vis_SC, cpl_table *wave_table, cpl_propertylist *header, const cpl_parameterlist *parlist)
 Create phase-referenced imaging data in the P2VMREDUCED file.
 
cpl_error_code gravi_compute_outliers (gravi_data *p2vmred_data, const cpl_parameterlist *parlist)
 Compute the outliers flags.
 
cpl_error_code gravi_compute_snr (gravi_data *p2vmred_data, const cpl_parameterlist *parlist)
 Compute real-time SNR and Group-Delay of the observation.
 
cpl_error_code gravi_signal_create_sync (cpl_table *vis_SC, int nbase_sc, double dit_sc, cpl_table *vis_FT, int nbase_ft, const char *name)
 Compute synchronisation indices between OIFITS tables.
 
cpl_error_code gravi_vis_create_met_ft (cpl_table *vis_FT, cpl_table *vis_MET)
 Compute the resampled MET signal for each FT DIT per base.
 
cpl_error_code gravi_vis_create_opdsc_ft (cpl_table *vis_FT, cpl_table *vis_SC, double dit_sc)
 Compute the resampled SC signal for each FT DIT per base.
 
cpl_error_code gravi_flux_create_fddllin_sc (cpl_table *flux_SC, cpl_table *disp_table)
 Compute the (FDDL_SC + FDDL_FT)/2 position in [m].
 
cpl_error_code gravi_compute_signals (gravi_data *p2vmred_data, gravi_data *disp_data, const cpl_parameterlist *parlist)
 Create intermediate signal in the P2VMREDUCED file.
 
cpl_error_code gravi_compute_rejection (gravi_data *p2vmred_data, const cpl_parameterlist *parlist)
 Create rejection flags P2VMREDUCED file.