GRAVI Pipeline Reference Manual 1.9.4
Loading...
Searching...
No Matches
Functions
gravi_tf.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_vis.h"
#include "gravi_tf.h"

Go to the source code of this file.

Functions

int gravi_array_set_invalid_negative (cpl_array *array)
 Set invalid to all negative elements of an array.
 
cpl_error_code gravi_vis_flag_negative (cpl_table *oi_table, const char *data, const char *flag)
 Flag negative element of an OIFITS table.
 
cpl_error_code gravi_vis_flag_invalid (cpl_table *oi_table, const char *data, const char *flag)
 Flag invalid element of an OIFITS table.
 
char * gravi_calib_setupstring (gravi_data *data)
 Build a unique setup string per calibratable setup.
 
double gravi_visibility_UD (double uv, double diam, double lbd)
 Compute the expected visibility from a UD model.
 
cpl_size gravi_get_row_in_cat (cpl_table *diam_table, double ra, double dec, double *separation)
 Get the row in a cpl_table matching closest RAJ2000 and DEJ2000.
 
cpl_error_code gravi_apply_tf_amp (gravi_data *science, gravi_data *science_tf, gravi_data **used_tf_data, int num_tf_data, const char *extName, const char *insName, const char *ampName, const char *ampErrName, int nbase, double delta_t)
 Interpolate the TF at the time of the science observation for an amplitude quantity.
 
cpl_error_code gravi_apply_tf_phi (gravi_data *science, gravi_data *science_tf, gravi_data **used_tf_data, int num_tf_data, const char *extName, const char *insName, const char *phiName, const char *phiErrName, int nbase, double delta_t)
 Interpolate the TF at the time of the science observation for a phase quantity (in deg).
 
gravi_datagravi_calibrate_vis (gravi_data *vis_data, gravi_data **tf_data, int num_tf, gravi_data *phi_tf_data, gravi_data *tf_science, const cpl_parameterlist *parlist)
 Computes the calibrated visibility from science a single data and several previously evaluated instrumental visibility.
 
gravi_datagravi_compute_tf (gravi_data *vis_data, gravi_data *diamcat_data)
 This function evaluates the transfer function from the observation of a reference star whose diameter can be determined.
 
cpl_error_code gravi_compute_tf_qc (gravi_data *oi_vis, gravi_data *diamcat_data)
 Fill QC parameters related to transfer function.
 
gravi_datagravi_compute_zp (gravi_data **vis_calib, int num_calib)
 Compute the ZP data.