GRAVI Pipeline Reference Manual 1.9.0
Loading...
Searching...
No Matches
Macros | Functions
gravi_wave.c File Reference
#include <cpl.h>
#include "cpl_wlcalib.h"
#include "irplib_wavecal.h"
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <math.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_ellipse.h"
#include "gravi_signal.h"
#include "gravi_preproc.h"
#include "gravi_calib.h"
#include "gravi_wave.h"
#include "gravi_metrology.h"

Go to the source code of this file.

Macros

#define PLOT_WAVE_PHASE_VS_OPD   0
 
#define WAVE_TO_PLOT   5
 

Functions

cpl_table * gravi_opds_compute_guess (cpl_table *spectrumsc_table, cpl_table *ft_table, cpl_table *vismet_table, double dit_sc, double lbd_met)
 Compute a guess of the OPD modulation of SC from FT and MET.
 
cpl_table * gravi_opds_calibration (cpl_table *spectrum_table, cpl_table *detector_table, cpl_table *guess_table)
 Compute the mean opd of each baseline from spectrum.
 
cpl_error_code gravi_opds_correct_closures (cpl_table *phase_table, const char *name)
 Correct the input table to ensure constant closure phase.
 
cpl_vector * gravi_opds_fit_opdmet (cpl_table *ft_table, double lbd_met)
 Compute the absolute scaling coefficients of SC and FT OPDs.
 
cpl_table * gravi_wave_fibre (cpl_table *spectrum_table, cpl_table *detector_table, cpl_table *opd_table)
 Compute the wavelength of each channel for each 6 baselines.
 
cpl_table * gravi_wave_fit_2d (cpl_table *wavefibre_table, cpl_table *detector_table, gravi_data *wave_param, cpl_size fullstartx, int spatial_order, int spectral_order, double *rms_residuals)
 Compute the WAVE_DATA table (1 wavelength per region) from the WAVE_FIBRE table (1 wavelength per baseline)
 
cpl_table * gravi_wave_fit_individual (cpl_table *wave_individual_table, cpl_table *weight_individual_table, cpl_table *wave_fitted_table, cpl_table *opd_table, cpl_table *spectrum_table, cpl_table *detector_table, double n0, double n1, double n2)
 
cpl_error_code gravi_wave_correct_dispersion (cpl_table *wave_fibre, double n0, double n1, double n2)
 Correct the WAVE_FIBRE table from a harcoded dispersion model.
 
cpl_imagelist * gravi_wave_test_image (cpl_table *wavedata_table, cpl_table *wavefibre_table, cpl_table *profile_table, cpl_table *detector_table)
 Compute the (useless) TEST_WAVE table from the WAVE_FIBRE and the PROFILE maps.
 
cpl_table * gravi_compute_argon_wave (cpl_table *spectrum_table)
 Compute a WAVE calibration from the ARGON data (SC only)
 
cpl_error_code gravi_wave_compute_opds (gravi_data *spectrum_data, cpl_table *met_table, const cpl_parameterlist *parlist)
 Recover the OPD modulation from a spectrum_data and vismet_table.
 
cpl_error_code gravi_wave_correct_color (gravi_data *vis_data)
 Create a OI_WAVELENGTH_CORR table with color corrected wavelength.
 
cpl_error_code gravi_wave_qc (gravi_data *wave_map, gravi_data *profile_map)
 Compute the QC parameters of the WAVE product.
 
cpl_error_code gravi_compute_wave (gravi_data *wave_map, gravi_data *spectrum_data, int type_data, const cpl_parameterlist *parlist, gravi_data *wave_param)
 Create the WAVE calibration map.