|
GRAVI Pipeline Reference Manual
1.2.3
|
Functions | |
| cpl_table * | gravi_create_oitarget_table (const cpl_propertylist *header, const char *mode) |
| Create the OI_TARGET table from the main header. More... | |
| cpl_table * | gravi_create_oiarray_table (const cpl_table *array_geometry, int is_cal) |
| Create the OI_ARRAY table from the ARRAY_GEOMETRY. More... | |
| gravi_data * | gravi_compute_p2vmred (gravi_data *preproc_data, gravi_data *p2vm_map, const char *mode, const cpl_parameterlist *parlist, enum gravi_detector_type det_type) |
| Converts preprocessed data into coherent fluxes using the P2VM. More... | |
| cpl_error_code | gravi_compute_opdc_state (gravi_data *p2vmred_data) |
| Compute the real-time tracking state from OPDC. More... | |
| cpl_error_code | gravi_compute_tau0 (gravi_data *data) |
| Compute the QC TAU0 parameter. More... | |
| cpl_error_code | gravi_compute_qc_injection (gravi_data *data) |
| Compute the QC for the injection stability. More... | |
| cpl_error_code | gravi_compute_qc_ft_opd_estimator (gravi_data *p2vmred_data) |
| Compute the QC for the FT linearity. More... | |
This module implement the functions to compute the coherent flux of all the frames of the beam combiners (FT and SC). The main function is gravi_compute_p2vmred(). The algorithms involved in these fonction are description in the sections :
| cpl_error_code gravi_compute_opdc_state | ( | gravi_data * | p2vmred_data | ) |
Compute the real-time tracking state from OPDC.
| p2vmred_data | The input/output gravi_data |
Compute the FT tracking state per baseline (saved in the existing OI_VIS extension) and telescope (saved in the existing OI_FLUX table). It also computes the the target phase of the OPDC per baeline (saved in the existing OI_VIS table). Compute various QC parameters related to tracking quality.
Definition at line 870 of file gravi_p2vmred.c.
References gravi_data_get_table().
| gravi_data* gravi_compute_p2vmred | ( | gravi_data * | preproc_data, |
| gravi_data * | p2vm_map, | ||
| const char * | mode, | ||
| const cpl_parameterlist * | parlist, | ||
| enum gravi_detector_type | det_type | ||
| ) |
Converts preprocessed data into coherent fluxes using the P2VM.
| preproc_data | The spectrum data input |
| p2vm_map | The p2vm table with with the values of the transmission, phase and coherence |
| mode | gravi_single / gravi_dual |
| parlist | The parameter list containing the variables defining the size of the profile |
| det_type | The detector to process. If GRAVI_DET_SC, then only the science detector extensions will be processed. GRAVI_DET_FT will do the same for FT detector and GRAVI_DET_ALL will do it for both. |
| CPL_ERROR_NULL_INPUT | input data is missing |
| CPL_ERROR_ILLEGAL_INPUT | input data are not compatible |
It inverts the v2pm with a singular value decomposition, and compute the product spectrum_values*p2vm. The P2VM algorithm is applied for each SPECTRUM DIT and each wavelength. The coherence fluxes are saved in OI_VIS tables, and the photometric fluxes are saved in OI_FLUX tables. This function also computes the u,v vectors, TIME... This function also creates the OI_TARGET and OI_ARRAY tables.
IMPORTANT NOTE: To save memory space, the data in preproc_data are deleted by the routine, while looping on the rows.
Definition at line 330 of file gravi_p2vmred.c.
References gravi_create_oiarray_table(), gravi_create_oitarget_table(), gravi_data_add_table(), gravi_data_copy_ext(), gravi_data_get_plist(), gravi_data_get_table(), gravi_data_has_extension(), gravi_data_new(), gravi_matrix_invertSV_create(), gravi_region_get_pol(), gravi_sta_index(), and gravi_table_oi_create().
| cpl_error_code gravi_compute_qc_ft_opd_estimator | ( | gravi_data * | p2vmred_data | ) |
Compute the QC for the FT linearity.
| data | The input data, shall contain an OI_VIS and OPDC table |
For each baseline, the linearity is calculated between the OPD measured by the P2VM (from the pipeline), and the OPD measured by the FT (in the OPDC table). Biases as a function of OPD phase is measured and stored as QC parameters
Definition at line 1275 of file gravi_p2vmred.c.
References gravi_data_get_table().
| cpl_error_code gravi_compute_qc_injection | ( | gravi_data * | data | ) |
Compute the QC for the injection stability.
| data | The input data, shall contain an OI_FLUX table |
For each telescope, the injection stability is calculated as the ratio between the polarisation-averaged 9 percentile and 95 percentile of the inejcted flux for each telescope.
Definition at line 1175 of file gravi_p2vmred.c.
| cpl_error_code gravi_compute_tau0 | ( | gravi_data * | data | ) |
Compute the QC TAU0 parameter.
| data | The input gravi_data, shall contain an OPDC table |
This function computes the QC TAU0 OPDC## parameters from the PIEZO signal stored in the OPDC table. The parameter are added to the main primary header of the data.
Definition at line 1094 of file gravi_p2vmred.c.
References gravi_data_get_table().
| cpl_table * gravi_create_oiarray_table | ( | const cpl_table * | array_geometry, |
| int | is_cal | ||
| ) |
Create the OI_ARRAY table from the ARRAY_GEOMETRY.
| array_geometry | The input ARRAY_GEOMETRY table |
| is_cal | 0/1, to select the verbosity level |
This function duplicate the ARRAY_GEOMETRY table into a OI_ARRAY table and makes several checks of OIFITS standart. It also ensures that the constructed OI_ARRAY has four rows, one per beam. Missing beam are built as T1, T2...
Definition at line 238 of file gravi_p2vmred.c.
References gravi_table_set_string_fixlen().
Referenced by gravi_compute_p2vmred().
| cpl_table * gravi_create_oitarget_table | ( | const cpl_propertylist * | header, |
| const char * | mode | ||
| ) |
Create the OI_TARGET table from the main header.
| header | Main header of an observation |
The SC refers to TARGET_ID 1 is mode 'single' and to TARGET_ID 2 in mode 'dual'. The FT refers to TARGET_ID 1 is all cases.
Definition at line 90 of file gravi_p2vmred.c.
References gravi_table_set_string_fixlen().
Referenced by gravi_compute_p2vmred().
1.8.11