|
GRAVI Pipeline Reference Manual
1.2.3
|
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. More... | |
| 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. More... | |
| 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) |
| Compute real-time mean phasor of a VISDATA by averaging all spectral elements. More... | |
| cpl_error_code | gravi_vis_compute_interspectre (cpl_table *oi_vis, const char *name_vis, const char *name_is) |
| Compute the real-time interspectra. More... | |
| 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. More... | |
| 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. More... | |
| cpl_error_code | gravi_vis_create_pfactor_sc (cpl_table *vis_SC, cpl_table *flux_FT) |
| Compute the PFACTOR for the SC. More... | |
| cpl_error_code | gravi_vis_create_f1f2_sc (cpl_table *vis_SC, cpl_table *flux_SC) |
| Compute the photometric normalisation for the SC. More... | |
| cpl_error_code | gravi_vis_create_f1f2_ft (cpl_table *vis_FT, cpl_table *flux_FT) |
| Compute the photometric normalisation for the FT. More... | |
| cpl_error_code | gravi_vis_create_phaseref_ft (cpl_table *vis_FT) |
| Compute the self-reference phase for each FT DIT. More... | |
| cpl_error_code | gravi_vis_create_met_sc (cpl_table *vis_SC, cpl_table *vis_MET) |
| Compute the averaged MET signal for each SC DIT per base. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| cpl_error_code | gravi_vis_create_phaseref_sc (cpl_table *vis_SC, cpl_table *wavesc_table, cpl_table *waveft_table) |
| Compute the reference phase for each SC DIT. More... | |
| 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. More... | |
| 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. More... | |
| cpl_error_code | gravi_compute_snr (gravi_data *p2vmred_data, const cpl_parameterlist *parlist) |
| Compute real-time SNR and Group-Delay of the observation. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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]. More... | |
| 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. More... | |
| cpl_error_code | gravi_compute_rejection (gravi_data *p2vmred_data, const cpl_parameterlist *parlist) |
| Create rejection flags P2VMREDUCED file. More... | |
This module computes all the quantities from the individual coherent flux measurements that are useful for the final processing of the visibilities. It includes the signal synchronization, resampling and averaged over SC DIT, as well as qualitative parameters. The main function called by gravity_vis are :
gravi_compute_snr() : see Algorithms/Computation of SNRgravi_compute_signals() : see Algorithms/Computing the vFactor, Algorithms/Computing the pFactor, Algorithms/Phase referencing, Algorithms/Geometric fluxgravi_compute_rejection() : see Algorithms/Frame rejection | cpl_error_code gravi_compute_rejection | ( | gravi_data * | p2vmred_data, |
| const cpl_parameterlist * | parlist | ||
| ) |
Create rejection flags P2VMREDUCED file.
| p2vmred_data | the P2VMREDUCED data (modified in-place) |
| parlist | parameter list of the recipe |
Create the rejection flags in the P2VMREDUCED file... These computations are mandatory for the further averaging of the frames into an OIFITS file with gravi_compute_vis
Create column in vis_FT with the REJECTION_FLAT computed by comparing the SNR and STATE to thresholds provided in parlist.
Create column in vis_SC with the FRINGEDE_RATIO.
Create column in vis_SC with the REJECTION_FLAT computed by comparing the VFACTOR and the FRINGEDET_RATIO of each SC DIT to the specified thresholds in parlist.
Definition at line 2889 of file gravi_signal.c.
References gravi_data_has_type(), and gravi_vis_create_lockratio_sc().
| 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.
| p2vmred_data | the P2VMREDUCED data (modified in-place) |
| disp_data | DISP_PARAM file, to compute the OPD_DISP |
| parlist | parameter list of the recipe (unused so far) |
Create many intermediate signal in the P2VMREDUCED file, necesary for the further averaging of frames. Especially phase references, vFactor... These computations are mandatory for the further averaging of the frames into an OIFITS file with gravi_compute_vis
Definition at line 2656 of file gravi_signal.c.
References gravi_data_get_table(), gravi_data_has_extension(), gravi_flux_create_acq_sc(), gravi_flux_create_fddllin_sc(), gravi_flux_create_fddlpos_sc(), gravi_flux_create_met_sc(), gravi_flux_create_totalflux_sc(), gravi_signal_create_sync(), gravi_vis_create_acq_sc(), gravi_vis_create_f1f2_ft(), gravi_vis_create_f1f2_sc(), gravi_vis_create_imagingref_sc(), gravi_vis_create_met_sc(), gravi_vis_create_opddisp_sc(), gravi_vis_create_pfactor_sc(), gravi_vis_create_phaseref_ft(), gravi_vis_create_phaseref_sc(), and gravi_vis_create_vfactor_sc().
| cpl_error_code gravi_compute_snr | ( | gravi_data * | p2vmred_data, |
| const cpl_parameterlist * | parlist | ||
| ) |
Compute real-time SNR and Group-Delay of the observation.
| p2vmred_data | is the P2VMREDUCED data (modified in-place) |
Create the SNR_SMT and GDELAY_SMT columns in the P2VMREDUCED data These are the estimate considering both polarisation if any, all closing baseline and a running sum of the complex coherent flux. These quantities are computed for SC and FT.
Create column: SNR, SNR_BOOT, GDELAY_BOOT
Definition at line 511 of file gravi_signal.c.
References gravi_data_has_type(), gravi_vis_bootstrap_snr_and_delay(), gravi_vis_compute_interspectre(), gravi_vis_compute_isdelay(), gravi_vis_compute_mean_phasor(), gravi_vis_compute_snr(), and gravi_vis_correct_phasediff().
| 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.
| flux_SC | input/output OI_VIS table of the SC |
| vis_ACQ | input OI_VIS_ACQ table |
The averaged quantities are stored in new columns in the vis_SC table. The ACQ_CAM signals are averaged with flat weighting inside each SC DIT. The synchronisation info shall already be computed.
Definition at line 1150 of file gravi_signal.c.
Referenced by gravi_compute_signals().
| 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].
| flux_SC | input/output OI_FLUX table of the SC |
| disp_table | FDDL dispersion model |
Create new columns in flux_SC (FDDL)
Definition at line 2271 of file gravi_signal.c.
Referenced by gravi_compute_disp(), and gravi_compute_signals().
| 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.
| flux_SC | input/output OI_FLUX table of the SC |
| vis_MET | input OI_VIS_MET table |
| fddl_table | input FDDL table |
The averaged quantities are stored in new columns in the flux_SC table. The MET and FDDL signals are averaged with flat weighting inside each SC DIT. The synchronisation info shall already be computed.
Definition at line 1767 of file gravi_signal.c.
Referenced by gravi_compute_signals().
| 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.
| flux_SC | input/output OI_FLUX table of the SC |
| vis_MET | input OI_VIS_MET table |
The averaged quantities are stored in new columns in the vis_SC table. The metrology signals are averaged with flat weighting inside each SC DIT. The synchronisation info shall already be computed.
Definition at line 1614 of file gravi_signal.c.
Referenced by gravi_compute_signals().
| 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.
| flux_SC | input/output OI_FLUX table of the SC |
| flux_FT | input/output OI_FLUX table of the FT |
Create new columns for the total flux of the SC for each SC DIT, the total flux of the FT for each FT DIT, and the total flux of the FT inside each SC DIT. The synchronisation info shall already be computed.
Definition at line 1838 of file gravi_signal.c.
Referenced by gravi_compute_signals().
| 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.
| vis_SC | table for which to compute the indices (SC) |
| nbase_sc | integer, number of base (6 for SC) |
| dit_sc | double, search window for synch |
| vis_FT | table where to search for synch (FT, MET) |
| nbase_ft | integer, number of base (6 for FT, 1 for MET) |
| name | string, to define the LAST_## and FIRST_## column names |
Search for the first and last indices in VIS_FT for each frame in vis_SC, based on the TIME columns and the +-dit_sc/2 window, and creates the LAST_## and FIRST_## new columns with those index. The accepted frames are {first to last-1}
Definition at line 743 of file gravi_signal.c.
Referenced by gravi_compute_disp(), gravi_compute_signals(), and gravi_metrology_acq().
| 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.
| oi_vis | input OI_VIS table |
| name_snr | name of input/output SNR column |
| name_gdl | name of input/output group-delay column |
Compute a 'bootstraped' version of the SNR and GDELAY for each baseline, by looking at the information of other baselines forming closing triangles. Then update the SNR and Group-Delay of this baseline accordingly to the best combination found.
Definition at line 143 of file gravi_signal.c.
Referenced by gravi_compute_snr().
| cpl_error_code gravi_vis_compute_interspectre | ( | cpl_table * | oi_vis, |
| const char * | name_vis, | ||
| const char * | name_is | ||
| ) |
Compute the real-time interspectra.
| oi_vis | input OI_VIS table |
| name_vis | name of VISDATA column to be used |
| name_is | name of interspectra column to be created |
The real-time interspectral is computed by averaging the interspectra of all consecutive spectral channels pairs (for each DIT).
Definition at line 341 of file gravi_signal.c.
Referenced by gravi_compute_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.
| oi_vis | input/output OI_VIS table |
| name_isp | name of interspectra column to be used |
| name_gdl | name of output group-delay column to be created |
| oi_wavelength | wavelength table corresponding to OI_VIS |
The group-delay is computed as arg{isp} / 2pi / delta_sigma where delta_sigma = 1/lbd[n/2] - 1/lbd[n/2+1]
Definition at line 451 of file gravi_signal.c.
Referenced by gravi_compute_snr().
| 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 | ||
| ) |
Compute real-time mean phasor of a VISDATA by averaging all spectral elements.
| oi_vis | input OI_VIS table |
| name_vis | name of coherent flux column to be used (VISDATA) |
| name_err | corresponding error column |
| name_pha | name of the column to be created with mean phasor |
| name_var | corresponding variance column to be created |
Definition at line 272 of file gravi_signal.c.
Referenced by gravi_compute_snr().
| 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.
| oi_vis | input OI_VIS table |
| name_pha | name of phasor column to be used |
| name_var | name of variance column to be used |
| name_snr | name of output column for snr to be created |
The real-time SNR is computed as |pha| / sqrt{var}
Definition at line 401 of file gravi_signal.c.
Referenced by gravi_compute_snr().
| 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.
| oi_vis1 | first input OI_VIS table (modified inplace) |
| name1 | name of coherent flux in oi_vis1 |
| oi_vis2 | second input OI_VIS table (untouched) |
| name2 | name of coherent flux in oi_vis2 |
| phasedif | mean phase-difference measured |
Compute the mean phasor difference between the column name1 and name2. Multiply column name1 by the conjugate of this phasor. Note that name1 and name2 should be DOUBLE COMPLEX.
Definition at line 211 of file gravi_signal.c.
Referenced by gravi_compute_snr().
| 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.
| vis_SC | input/output OI_VIS table of the SC |
| vis_ACQ | input OI_VIS_ACQ table |
The averaged quantities are stored in new columns in the vis_SC table. The ACQ_CAM signals are averaged with flat weighting inside each SC DIT. The synchronisation info shall already be computed.
Definition at line 1072 of file gravi_signal.c.
Referenced by gravi_compute_signals().
| cpl_error_code gravi_vis_create_f1f2_ft | ( | cpl_table * | vis_FT, |
| cpl_table * | flux_FT | ||
| ) |
Compute the photometric normalisation for the FT.
| vis_FT | output OI_VIS table of the FT |
| flux_FT | input OI_FLUX table of the FT |
The normalisation is computed for each FT DIT and saved in a newly created column F1F2 in the vis_FT table. To enhance SNR and avoid division by zero, it uses a combination of time-averaged and channel-averaged signals to reconstruct the real-time per-channel photometric flux. The time averaged signal is from TOTALFLUX which shall thus be already computed.
Definition at line 941 of file gravi_signal.c.
Referenced by gravi_compute_signals().
| cpl_error_code gravi_vis_create_f1f2_sc | ( | cpl_table * | vis_SC, |
| cpl_table * | flux_SC | ||
| ) |
Compute the photometric normalisation for the SC.
| vis_SC | output OI_VIS table of the SC |
| flux_SC | input OI_FLUX table of the SC |
The normalisation is computed for each SC DIT and saved in a newly created column F1F2 in the vis_SC table. It is simply the product of the fluxes of the 2 telescopes corresponding to each base.
Definition at line 893 of file gravi_signal.c.
Referenced by gravi_compute_signals().
| 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.
| vis_SC | input/output OI_VIS table of the SC |
| wave_table | wavelength table corresponding to the OI_VIS above |
| header | main header |
Create IMAGING_REF column in vis_SC based on the following: IMAGING_REF = PHASE_REF - OPD_DISP * (2pi/EFF_WAVE)
Definition at line 2549 of file gravi_signal.c.
Referenced by gravi_compute_signals().
| 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.
| vis_SC | input/output OI_VIS table of the SC |
| vis_FT | input OI_VIS table of the FT |
Compute the fraction of FT DIT not-rejected inside each SC DIT, looking at the REJECTION_FLAG column in vis_FT. The result is saved in a newly created column column FRINGEDET_RATIO in the vis_SC column.
The synchronisation info shall already be computed.
Definition at line 2074 of file gravi_signal.c.
Referenced by gravi_compute_rejection().
| 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.
| vis_FT | input/output OI_VIS table of the FT |
| vis_MET | input OI_VIS_MET table |
| dit_ft | the FT DIT (exposure being TIME -> TIME+PERIOD |
The resampled quantities are stored in new columns in the vis_FT table. The routine doesn't need the synchronisation columns. The PERIOD of FT is computed as TIME[sample1] - TIME[sample0]. The TIME of the MET table is supposed to be the same for all beam.
If one or several MET sample are inside the FT DIT, they are averaged. If no MET samples are inside the FT DIT, the metrology is interpolated linearly at the time of FT.
Create table is PHASE_MET_FC (fiber coupler) in [rad]
Definition at line 1412 of file gravi_signal.c.
Referenced by gravi_compute_disp(), and gravi_wave_compute_opds().
| cpl_error_code gravi_vis_create_met_sc | ( | cpl_table * | vis_SC, |
| cpl_table * | vis_MET | ||
| ) |
Compute the averaged MET signal for each SC DIT per base.
| vis_SC | input/output OI_VIS table of the SC |
| vis_MET | input OI_VIS_MET table |
The averaged quantities are stored in new columns in the vis_SC table. The metrology signals are averaged with flat weighting inside each SC DIT. The synchronisation info shall already be computed.
Definition at line 1227 of file gravi_signal.c.
References gravi_array_add_phasors().
Referenced by gravi_compute_signals().
| 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.
| vis_SC | input/output OI_VIS table of the SC |
| flux_SC | input/output OI_FLUX table of the SC |
| wave_table | wavelength table corresponding to OI_VIS |
| disp_table | FDDL dispersion model |
| parlist | parameter list of the recipe |
Create new columns in vis_SC (OPD per base) and flux_SC (OPD per beam) by combining the already computed MET and FDDL signals averaged inside each SC DIT and the dispersion coefficient from disp_table.
Definition at line 2343 of file gravi_signal.c.
Referenced by gravi_compute_signals().
| 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.
| vis_FT | input/output OI_VIS table of the FT |
| vis_SC | input OI_VIS table of SC |
| dit_sc | the SC DIT (exposure being TIME-DIT/2 -> TIME+DIT/2) |
The resampled quantities are stored in new columns in the vis_FT table. The routine doesn't need the synchronisations columns. For all FT samples inside an SC DIT, the routine filled the PHASE_SC column with the value of PHASE column from vis_SC. Samples outside an SC DIT are filled with 0.0
Create table PHASE_SC [rad]
Definition at line 1538 of file gravi_signal.c.
Referenced by gravi_wave_compute_opds().
| cpl_error_code gravi_vis_create_pfactor_sc | ( | cpl_table * | vis_SC, |
| cpl_table * | flux_FT | ||
| ) |
Compute the PFACTOR for the SC.
| vis_SC | output OI_VIS table of the SC |
| flux_FT | input OI_FLUX table of the FT |
The PFACTOR is computed for each SC DIT and saved in a newly created column P_FACTOR in the vis_SC table. The synchronisation info shall be available.
Definition at line 830 of file gravi_signal.c.
Referenced by gravi_compute_signals().
| cpl_error_code gravi_vis_create_phaseref_ft | ( | cpl_table * | vis_FT | ) |
Compute the self-reference phase for each FT DIT.
| vis_FT | input/output OI_VIS table of the FT |
The reference phase is computed for each FT DIT and saved in a newly created column PHASE_REF in the vis_FT table. It is a running mean of few DITs, performed independently for each spectral channel.
Definition at line 1005 of file gravi_signal.c.
Referenced by gravi_compute_signals().
| cpl_error_code gravi_vis_create_phaseref_sc | ( | cpl_table * | vis_SC, |
| cpl_table * | wavesc_table, | ||
| cpl_table * | waveft_table | ||
| ) |
Compute the reference phase for each SC DIT.
| vis_SC | input/output OI_VIS table of the SC |
| wave_table_sc | wavelength table corresponding to OI_VIS |
| wave_table_ft | wavelength table corresponding to OI_VIS FT |
The reference phase is computed for each SC DIT and saved in a newly created column PHASE_REF in the vis_SC table. It is constructed from the coherent-flux of the FT, already averaged inside each SC DIT (VISDATA_FT). It is then interpolatated to the SC wavelength table.
The polynomial coefficients used to extrapolate the PHASE_REF from the FT wavelengths to the SC wavelengths are saved in column PHASE_REF_COEFF.
Definition at line 2137 of file gravi_signal.c.
References gravi_array_add_phase(), and gravi_array_multiply_phasor().
Referenced by gravi_compute_signals().
| 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.
| vis_SC | input/output OI_VIS table of the SC |
| wave_table_sc | wavelength table corresponding to vis_SC |
| vis_FT | input/output OI_VIS table of the FT |
| wave_table_ft | wavelength table corresponding to vis_FT |
Create new columns in vis_SC with the VFACTOR of each SC DIT computed from the ratio between coherence and incoherent integration of the FT fringes inside each DIT. The synchronisation info shall already be computed. The VFACTOR is measured for a pseudo-broad band light (averaging all FT channels) and then extrapolated to all SC wavelength with a theoretical model. The synchronisation info shall already be computed.
Definition at line 1906 of file gravi_signal.c.
Referenced by gravi_compute_signals().
1.8.11