|
GRAVI Pipeline Reference Manual 1.9.4
|
#include <cpl.h>#include <string.h>#include <stdio.h>#include <math.h>#include <time.h>#include <complex.h>#include <float.h>#include "gravi_data.h"#include "gravi_dfs.h"#include "gravi_pfits.h"#include "gravi_cpl.h"#include "gravi_utils.h"#include "gravi_vis.h"#include "gravi_eop.h"#include "gravi_tf.h"#include "gravi_idp.h"Go to the source code of this file.
Functions | |
| double | gravi_randn (void) |
| Normal distribution pseudo-random generator. | |
| cpl_error_code | gravi_array_online_variance (cpl_array *data, cpl_array *mean, cpl_array *variance, int n) |
| cpl_error_code | gravi_array_online_variance_res (cpl_array **data, int n, int rephase) |
| On-line variance of arrays. | |
| cpl_error_code | gravi_flux_average_bootstrap (cpl_table *oi_flux_avg, cpl_table *oi_flux, int nboot, double outlier_threshold) |
| Average the flux of all DITs into a final, averaged value. | |
| cpl_error_code | gravi_t3_average_bootstrap (cpl_table *oi_t3_avg, cpl_table *oi_vis, cpl_table *oi_flux, int nboot, int use_vFactor, int use_pFactor, double outlier_threshold) |
| Average the closure-phase of all DITs into a final, averaged value. | |
| cpl_error_code | gravi_vis_average_bootstrap (cpl_table *oi_vis_avg, cpl_table *oi_vis2_avg, cpl_table *oi_vis, int nboot, const char *phase_ref, int use_vFactor, int use_pFactor, int use_debiasing, double outlier_threshold) |
| Average the visibility of all DITs into a final, averaged value. | |
| cpl_error_code | gravi_vis_flag_nan (cpl_table *oi_table) |
| Flag samples of OIFITS table which are NAN or NULL. | |
| cpl_error_code | gravi_vis_average_amp (cpl_table *oi_table, const char *name, const char *err, int nbase) |
| Average amplitudes column of a multi-observation OIFITS table The averaged quantities are stored in the first nbase rows. | |
| cpl_error_code | gravi_vis_average_phi (cpl_table *oi_table, const char *name, const char *err, int nbase) |
| Average phases column of a multi-observation OIFITS table Phases are averaged with arg{<exp(i.phi)>} The averaged quantities are stored in the first nbase rows. | |
| cpl_error_code | gravi_vis_average_value (cpl_table *oi_table, const char *name, const char *err, int nbase) |
| Average scalar column of a multi-observation OIFITS table. The averaged quantities are stored in the first nbase rows. | |
| cpl_error_code | gravi_vis_resamp_amp (cpl_table *oi_table, const char *name, const char *err, cpl_size nsamp, cpl_size nwave_new) |
| Rebin amplitude column of OIFITS table. | |
| cpl_error_code | gravi_vis_resamp_phi (cpl_table *oi_table, const char *name, const char *err, cpl_size nsamp, cpl_size nwave_new) |
| Rebin phase column of OIFITS table (arg{<exp(i.phi)>}) | |
| cpl_error_code | gravi_vis_smooth_amp (cpl_table *oi_table, const char *name, const char *err, cpl_size nsamp) |
| Smooth amplitude column of OIFITS table. | |
| cpl_error_code | gravi_vis_smooth_phi (cpl_table *oi_table, const char *name, const char *err, cpl_size nsamp) |
| Smooth phase column of OIFITS table. | |
| cpl_error_code | gravi_vis_fit_amp (cpl_table *oi_table, const char *name, const char *err, cpl_size maxdeg) |
| Smooth amp column of OIFITS table. | |
| cpl_error_code | gravi_vis_compute_column_mean (cpl_table *out_table, cpl_table *in_table, const char *name, int ntel) |
| Compute the mean of a column in OIFITS table, and save the result in the specified output table. | |
| cpl_error_code | gravi_vis_flag_median (cpl_table *oi_table, const char *data, const char *flag, double value) |
| Flag samples of OIFITS table based on runnning median. | |
| cpl_error_code | gravi_average_self_visphi (cpl_table *oi_vis_avg, cpl_table *oi_vis, cpl_array *wavenumber, const char *phase_ref, int *cmin, int *cmax, int nrange) |
| Compute Averaged VISPHI in the manner described, e.g., in F. Millour's thesis. | |
| double | gdAbacusErrPhi (double x) |
| gravi_data * | gravi_compute_vis (gravi_data *p2vmred_data, const cpl_parameterlist *parlist, cpl_size *current_frame) |
| The function average the individual frames of a P2VMREDUCED file into a final, single observation per base and per tel. | |
| cpl_error_code | gravi_compute_vis_qc (gravi_data *vis_data, cpl_frameset *frameset, cpl_propertylist **frame_qcs, cpl_size nb_frame) |
| Compute the QC parameters for a VIS (averaged) data. | |
| 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) | |
| cpl_error_code | gravi_normalize_sc_to_ft (gravi_data *vis_data) |
| Align the SC visibilities on the FT visibilities. | |
| 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 (number of second since the DATE-OBS at 00:00). | |
| cpl_error_code | gravi_flat_flux (gravi_data *vis_data, gravi_data *p2vm_map) |
| Divide the OI_FLUX by OI_FLUX from the P2VM (no checks, no time distance...) | |
| cpl_error_code | gravi_force_uncertainties (gravi_data *oi_data, const cpl_parameterlist *parlist) |
| Force uncertainties. | |
| cpl_error_code | gravi_average_vis (gravi_data *oi_data) |
| Coadd the observations together. | |
| 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. | |
| cpl_error_code | gravi_vis_resamp (gravi_data *oi_data, cpl_size nsamp) |
| Re-bin the SC table by nsamp consecutive spectral bins. | |
| cpl_error_code | gravi_vis_copy_fluxdata (gravi_data *oi_data, int delete_flux) |
| Duplicate the column FLUX into FLUXDATA, for OIFITS2 compliance. | |
| 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. | |
| 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. | |
| 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. | |
| cpl_error_code | gravi_vis_erase_obs (cpl_table *oi_table, cpl_array *flag_array, cpl_size ntel) |
| Erase observation from an OIFITS table. | |
| cpl_error_code | gravi_vis_force_time (gravi_data *oi_data) |
| Force all data in OI_TABLE to have the same TIME and MJD. | |