GRAVI Pipeline Reference Manual 1.8.0
Loading...
Searching...
No Matches
Functions | Variables
gravi_old.c File Reference

Go to the source code of this file.

Functions

int gravi_get_base_from_tel (int t1, int t2)
 
int gravi_get_basesign_from_tel (int t1, int t2)
 
cpl_error_code gravi_lazer_get_wavelength (gravi_data *lazer_data)
 
gravi_datagravi_compute_disp_old (gravi_data *vis_data)
 
gravi_datagravi_fit_argon (gravi_data *argon_data, gravi_data *wave_data, gravi_data *profile_map, gravi_data *dark_map, gravi_data *bad_map)
 This function calibrate the wavelength using the argon.
 
gravi_datagravi_compute_wave_offset (gravi_data *argon_wave, gravi_data *wave_data)
 
cpl_error_code gravi_data_save (gravi_data *self, cpl_frameset *allframes, const char *filename, const cpl_parameterlist *parlist, cpl_frameset *usedframes, cpl_frame *frame, const char *recipe, cpl_propertylist *applist)
 
cpl_error_code gravi_normalize_flux (gravi_data *data)
 
cpl_vector * gravi_image_to_vector (cpl_image *img)
 
cpl_error_code gravi_dtps (double xi, double eta, double raz, double decz, double *ra, double *dec)
 
int my_gsl_matrix_complex_fprintf (FILE *stream, gsl_matrix_complex *m, char *fmt)
 
cpl_error_code gravi_compute_flat_badpix (gravi_data *flat, gravi_data *dark)
 The aim of this function is to identify the bad pixels and to update profile accordingly.
 
int gravi_write_yorick_batch (const char *filename, const char *input_file, const char *output_file)
 Create a yorick batch to execute mira on a OIFITS file.
 
static void finals2000A_read_line (FILE *pFile, char *flag, double *mjd, double *pmx, double *pmy, double *dut)
 
static int finals2000A_mjd_first (FILE *pFile)
 
static int finals2000A_mjd_last_type (FILE *pFile, char type)
 
gravi_datagravi_eop_load_finals2000A (const char *eop_file)
 
 cpl_image_multiply (flat_profiled, profile_crop)
 
 cpl_image_delete (flat_profiled)
 
 CPLCHECK_NUL ("Compute the flat")
 
 if (nxc > 5000)
 
 cpl_msg_debug (cpl_func, "Spectra has <50 pixels -> don't flat")
 
 CPLCHECK_NUL ("Creating spectrum flat")
 
 CPLCHECK_CLEAN ("Cannot fit argon")
 
 gravi_data_set_propertylist (wave_map, "WAVE_DATA_SC", plist)
 
 gravi_data_set_table (wave_map, "WAVE_DATA_SC", cpl_table_duplicate(wave_data_sc))
 
 cpl_propertylist_update_double (header, "ESO QC MINWAVE SC", cpl_propertylist_get_double(plist, "ESO QC MINWAVE SC"))
 
 cpl_propertylist_update_double (header, "ESO QC MAXWAVE SC", cpl_propertylist_get_double(plist, "ESO QC MAXWAVE SC"))
 
 gravi_data_save_data (wave_data, "wave_map_argon.fits", CPL_IO_CREATE)
 
 FREE (gravi_data_delete, wave_data)
 
gravi_datagravi_visdata_fromellipse (gravi_data *spectrum_data)
 
double gravi_pfits_get_lambdamet (const cpl_propertylist *plist)
 
cpl_error_code gravi_smooth_preproc (gravi_data *data, const cpl_parameterlist *parlist)
 This function smooth the SC preproc data in the spectral direction in place, only for preproc (per region). Note that the data are copied during the execution.
 
cpl_vector * gravi_construction_opd_phase (cpl_table *opl_table, cpl_table *phase_sc, cpl_table *phase_ft, double dit_sc)
 
cpl_table * gravi_metrology_calibration (cpl_table *metrology_table, cpl_table *opl_table, double mjd_obs)
 The given output FITS file contain a p2vm table of the metrology with the values of the transmission, phase and coherence extract using the p2vm matrix.
 
cpl_error_code gravi_data_mean_metFddl (gravi_data *oi_vis, gravi_data *p2vmred_data, gravi_data *preproc_data, int thread)
 Compute mean position of MET and FDDL in each DITs.
 
cpl_error_code gravi_p2vm_mean_spectrum (gravi_data *p2vm_map, gravi_data *preproc_data)
 
gravi_datagravi_compute_disp (gravi_data *vis_data)
 Compute the dispersion calibration map (DISP) FIXME: to be done.
 
int my_gsl_matrix_fprintf (FILE *stream, gsl_matrix *m, const char *fmt)
 
cpl_table * gravi_opdmet_calibration (cpl_table *metrology_table, double mjd_obs)
 Compute the opd from metrology for the FC.
 
cpl_error_code gravi_phase_correct_closures_new (cpl_table *phase_table)
 
cpl_table * gravi_metrology_reform (cpl_table *vis_met)
 reform the PHASE_FC column of the metrology for the FC into OPD_FC
 
 if (cpl_table_get(phase_ft, "PHASE_SC", row *nbase+base, NULL) !=0 &&(row %(nrow/5)==0))
 
 gravi_vis_create_met_ft (phase_ft, vis_met)
 
 gravi_vis_create_phasesc_ft (phase_ft, phase_sc, dit_sc)
 
 cpl_table_save (vis_met, NULL, NULL, "vismet.fits", CPL_IO_CREATE)
 
 cpl_table_save (phase_sc, NULL, NULL, "phase_sc.fits", CPL_IO_CREATE)
 
 cpl_table_save (phase_ft, NULL, NULL, "phase_ft.fits", CPL_IO_CREATE)
 
cpl_vector * gravi_phase_fit_opdmet (cpl_table *vis_met, cpl_table *phase_sc, cpl_table *phase_ft, double dit_sc)
 
cpl_table * gravi_vis_create_opdguess_sc (cpl_table *spectrumsc_table, cpl_table *vis_FT, cpl_table *vis_MET, double dit_sc)
 
cpl_error_code gravi_phase_correct_closures (cpl_table *phase_table)
 
double gravi_envelope (double lambda, double delta_lambda, double opd)
 
 if (wave==nwave/2 &&base==0 &pol==0)
 
 cpl_msg_info (cpl_func, "Compute WAVE_SCAN for %s", GRAVI_TYPE(type_data))
 
 gravi_data_add_table (wave_map, NULL, type_data==GRAVI_SC ? "WAVE_SCAN_SC" :"WAVE_SCAN_FT", wavescan_table)
 
cpl_table * gravi_wave_scan (cpl_table *spectrum_table, cpl_table *detector_table, cpl_table *opd_table)
 
cpl_error_code gravi_array_get_group_delay_loop_new (cpl_array **input, cpl_array *sigma, double *gd, cpl_size nrow)
 
double gravi_array_get_group_delay (cpl_array *input, cpl_array *sigma)
 
double gravi_array_get_group_delay_coarse (cpl_array *input, cpl_array *sigma)
 
double gravi_array_get_group_delay_iota (cpl_array *input, cpl_array *wavenumber)
 
double gravi_bivector_get_med_poly (cpl_bivector *bivector_in)
 
double gravi_vector_get_med_percent (cpl_vector *vector_in, float percent)
 
cpl_error_code gravi_flux_create_average (cpl_table *i_table, cpl_table *o_table, const char *colname, const char *sname)
 

Variables

cpl_image * flat_profiled = cpl_image_extract (profile_mean, xmin, ymin, xmax, ymax)
 
cpl_image * specMean = cpl_image_collapse_window_create (flat_profiled, 1,1,nxc,nyc,0)
 
 else
 
gravi_datawave_data = gravi_compute_argon_wave (argon_data, profile_map, dark_map, badpix_map, parlist)
 
cpl_table * wave_data_sc = gravi_data_get_table (wave_data, "WAVE_DATA_SC")
 
cpl_table * wave_map_sc = gravi_data_get_table (wave_map, "WAVE_DATA_SC")
 
cpl_propertylist * plist = gravi_data_get_plist (wave_data, "WAVE_DATA_SC")
 
cpl_propertylist * header = gravi_data_get_header (wave_map)
 
cpl_table * wavescan_table = gravi_wave_scan (spectrum_table, detector_table, opd_table)
 

Function Documentation

◆ cpl_image_delete()

cpl_image_delete ( flat_profiled  )

◆ cpl_image_multiply()

cpl_image_multiply ( flat_profiled  ,
profile_crop   
)

◆ cpl_msg_debug()

cpl_msg_debug ( cpl_func  ,
"Spectra has <50 pixels -> don't flat"   
)

◆ cpl_msg_info()

cpl_msg_info ( cpl_func  ,
"Compute WAVE_SCAN for %s"  ,
GRAVI_TYPE(type_data)   
)

Referenced by gravi_acq_fit_gaussian(), gravi_acqcam_field(), gravi_acqcam_get_diode_ref_v2(), gravi_acqcam_get_diode_theoretical_v2(), gravi_acqcam_get_pup_ref_v2(), gravi_acqcam_get_pupil_offset_v2(), gravi_acqcam_perform_shiftandadd_v2(), gravi_acqcam_select_good_frames_v2(), gravi_acqcam_set_pupil_table_v2(), gravi_align_spectrum(), gravi_array_compare(), gravi_array_get_group_delay_loop_new(), gravi_average_dark(), gravi_average_self_visphi(), gravi_average_vis(), gravi_calibrate_vis(), gravi_check_frameset(), gravi_compute_argon_pos(), gravi_compute_argon_wave(), gravi_compute_badpix(), gravi_compute_biasmask(), gravi_compute_dark(), gravi_compute_disp(), gravi_compute_flat_badpix(), gravi_compute_gain(), gravi_compute_outliers(), gravi_compute_p2vm(), gravi_compute_p2vmred(), gravi_compute_piezotf(), gravi_compute_pointing_uv(), gravi_compute_profile(), gravi_compute_qc_ft_opd_estimator(), gravi_compute_qc_injection(), gravi_compute_rejection(), gravi_compute_signals(), gravi_compute_snr(), gravi_compute_tau0(), gravi_compute_tf(), gravi_compute_tf_qc(), gravi_compute_vis(), gravi_compute_vis_qc(), gravi_compute_wave(), gravi_compute_wave_offset(), gravi_construction_opd_phase(), gravi_create_oiarray_table(), gravi_create_oitarget_table(), gravi_create_oiwave_table_ft(), gravi_create_oiwave_table_sc(), gravi_create_outlier_flag_sc(), gravi_create_p2vm(), gravi_create_profile_image(), gravi_data_append(), gravi_data_check_shutter_beam(), gravi_data_clean_for_astro(), gravi_data_compare(), gravi_data_create_bias_mask(), gravi_data_detector_cleanup(), gravi_data_dump(), gravi_data_dump_mode(), gravi_data_erase(), gravi_data_erase_type(), gravi_data_load_frame(), gravi_data_load_rawframe(), gravi_data_load_rawframe_ext(), gravi_data_move_ext(), gravi_data_patch(), gravi_data_save_new(), gravi_disp_cleanup(), gravi_dump_the_boss(), gravi_ellipse_meanopd_create(), gravi_eop_interpolate(), gravi_eop_load_finals2000A(), gravi_eop_pointing_uv(), gravi_extract_spectrum(), gravi_fit_argon(), gravi_fit_dispersion(), gravi_flux_average_bootstrap(), gravi_flux_create_average(), gravi_flux_create_fddllin_sc(), gravi_force_uncertainties(), gravi_image_replace_window(), gravi_interpolate_spectrum_table(), gravi_metrology_acq(), gravi_metrology_calibration(), gravi_metrology_compute_p2vm(), gravi_metrology_demodulate(), gravi_metrology_drs(), gravi_metrology_get_astig(), gravi_metrology_get_fc_focus(), gravi_metrology_get_fc_shift(), gravi_metrology_tac(), gravi_metrology_telfc(), gravi_metrology_update_receiverpos(), gravi_normalize_flux(), gravi_normalize_sc_to_ft(), gravi_opds_calibration(), gravi_opds_compute_guess(), gravi_opds_correct_closures(), gravi_opds_fit_opdmet(), gravi_p2vm_normalisation(), gravi_p2vm_phase_correction(), gravi_p2vm_transmission(), gravi_param_get_bool_default(), gravi_param_get_double_default(), gravi_param_get_int_default(), gravi_param_get_string_default(), gravi_pfits_add_pipe_build(), gravi_pfits_get_double_default(), gravi_pfits_get_extrapixel_param(), gravi_pfits_get_ft_gain(), gravi_pfits_get_met_wavelength(), gravi_pfits_get_northangle_acqcam(), gravi_pfits_get_sc_gain(), gravi_pfits_get_string_default(), gravi_pfits_get_zenithangle_beamb_acqcam(), gravi_phase_correct_closures(), gravi_phase_fit_opdmet(), gravi_propertylist_compare(), gravi_remove_cosmicrays_sc(), gravi_signal_create_sync(), gravi_smooth_preproc(), gravi_subtract_met_dark(), gravi_t3_average_bootstrap(), gravi_table_are_equal(), gravi_table_compare(), gravi_table_ft_format(), gravi_table_new_column(), gravi_vis_average_bootstrap(), gravi_vis_compute_column_mean(), gravi_vis_copy_fluxdata(), gravi_vis_create_imagingref_sc(), gravi_vis_create_met_ft(), gravi_vis_create_met_sc(), gravi_vis_create_opddisp_sc(), gravi_vis_create_phaseref_sc(), gravi_vis_flag_nan(), gravi_vis_force_time(), gravi_vis_resamp(), gravi_wave_compute_opds(), gravi_wave_fibre(), gravi_wave_fit_2d(), gravi_wave_fit_individual(), gravi_wave_get_nlambda(), gravi_wave_qc(), gravi_wave_scan(), gravity_astrometry(), gravity_badpix(), gravity_biasmask(), gravity_dark(), gravity_disp(), gravity_eop(), gravity_eop_compute_qc(), gravity_image(), gravity_p2vm(), gravity_pcacal(), gravity_piezo(), gravity_postprocess(), gravity_print_banner(), gravity_vis(), gravity_vis_from_p2vmred(), gravity_viscal(), gravity_wavelamp(), and if().

◆ cpl_propertylist_update_double() [1/2]

cpl_propertylist_update_double ( header  ,
"ESO QC MAXWAVE SC"  ,
cpl_propertylist_get_double(plist, "ESO QC MAXWAVE SC")   
)

◆ cpl_propertylist_update_double() [2/2]

cpl_propertylist_update_double ( header  ,
"ESO QC MINWAVE SC"  ,
cpl_propertylist_get_double(plist, "ESO QC MINWAVE SC")   
)

◆ cpl_table_save() [1/3]

cpl_table_save ( phase_ft  ,
NULL  ,
NULL  ,
"phase_ft.fits"  ,
CPL_IO_CREATE   
)

◆ cpl_table_save() [2/3]

cpl_table_save ( phase_sc  ,
NULL  ,
NULL  ,
"phase_sc.fits"  ,
CPL_IO_CREATE   
)

◆ cpl_table_save() [3/3]

cpl_table_save ( vis_met  ,
NULL  ,
NULL  ,
"vismet.fits"  ,
CPL_IO_CREATE   
)

◆ CPLCHECK_CLEAN()

CPLCHECK_CLEAN ( "Cannot fit argon"  )

◆ CPLCHECK_NUL() [1/2]

CPLCHECK_NUL ( "Compute the flat"  )

◆ CPLCHECK_NUL() [2/2]

CPLCHECK_NUL ( "Creating spectrum flat"  )

◆ finals2000A_mjd_first()

static int finals2000A_mjd_first ( FILE *  pFile)
static

Definition at line 1852 of file gravi_old.c.

References finals2000A_read_line().

Referenced by gravi_eop_load_finals2000A().

◆ finals2000A_mjd_last_type()

static int finals2000A_mjd_last_type ( FILE *  pFile,
char  type 
)
static

Definition at line 1861 of file gravi_old.c.

References finals2000A_read_line().

Referenced by gravi_eop_load_finals2000A().

◆ finals2000A_read_line()

static void finals2000A_read_line ( FILE *  pFile,
char *  flag,
double *  mjd,
double *  pmx,
double *  pmy,
double *  dut 
)
static

◆ FREE()

FREE ( gravi_data_delete  ,
wave_data   
)

◆ gravi_array_get_group_delay()

double gravi_array_get_group_delay ( cpl_array *  input,
cpl_array *  sigma 
)

Definition at line 4759 of file gravi_old.c.

References CPLCHECK.

◆ gravi_array_get_group_delay_coarse()

double gravi_array_get_group_delay_coarse ( cpl_array *  input,
cpl_array *  sigma 
)

Definition at line 4826 of file gravi_old.c.

References CPLCHECK.

◆ gravi_array_get_group_delay_iota()

double gravi_array_get_group_delay_iota ( cpl_array *  input,
cpl_array *  wavenumber 
)

Definition at line 4870 of file gravi_old.c.

◆ gravi_array_get_group_delay_loop_new()

cpl_error_code gravi_array_get_group_delay_loop_new ( cpl_array **  input,
cpl_array *  sigma,
double *  gd,
cpl_size  nrow 
)

◆ gravi_bivector_get_med_poly()

double gravi_bivector_get_med_poly ( cpl_bivector *  bivector_in)

Definition at line 4936 of file gravi_old.c.

References CPLCHECK_MSG.

◆ gravi_compute_disp_old()

gravi_data * gravi_compute_disp_old ( gravi_data vis_data)

◆ gravi_compute_flat_badpix()

cpl_error_code gravi_compute_flat_badpix ( gravi_data flat,
gravi_data dark 
)

The aim of this function is to identify the bad pixels and to update profile accordingly.

Parameters
profile_mapThe FLAT calibration

Pixel with flat value lower than a threshold are declared as bad pixels. the profile is set to 0 for this bad pixel

Definition at line 1690 of file gravi_old.c.

References cpl_msg_info(), CPLCHECK_INT, gravi_data_add_cube(), gravi_data_get_cube(), gravi_data_get_header, gravi_data_get_plist(), gravi_data_get_table(), GRAVI_IMAGING_DATA_SC_EXT, plist, and QC_DARKRMS_SC.

◆ gravi_compute_wave_offset()

gravi_data * gravi_compute_wave_offset ( gravi_data argon_wave,
gravi_data wave_data 
)

◆ gravi_construction_opd_phase()

cpl_vector * gravi_construction_opd_phase ( cpl_table *  opl_table,
cpl_table *  phase_sc,
cpl_table *  phase_ft,
double  dit_sc 
)

◆ gravi_data_add_table()

gravi_data_add_table ( wave_map  ,
NULL  ,
type_data  = =GRAVI_SC ? "WAVE_SCAN_SC" :"WAVE_SCAN_FT",
wavescan_table   
)

◆ gravi_data_mean_metFddl()

cpl_error_code gravi_data_mean_metFddl ( gravi_data oi_vis,
gravi_data p2vmred_data,
gravi_data preproc_data,
int  thread 
)

Compute mean position of MET and FDDL in each DITs.

Parameters
oi_visinput/output OIFITS
p2vmred_data
preproc_data

We shall deprecate this function and use instead the already computed FDDL and MET values from the gravi_compute_signals.

Definition at line 2813 of file gravi_old.c.

References CPLCHECK_MSG, gravi_data_get_plist(), gravi_data_get_table(), GRAVI_FDDL_EXT, gravi_msg_function_exit, gravi_msg_function_start, GRAVI_OI_VIS_MET_EXT, GRAVI_PRIMARY_HDR_EXT, and GRAVI_SPECTRUM_DATA_SC_EXT.

◆ gravi_data_save()

cpl_error_code gravi_data_save ( gravi_data self,
cpl_frameset *  allframes,
const char *  filename,
const cpl_parameterlist *  parlist,
cpl_frameset *  usedframes,
cpl_frame *  frame,
const char *  recipe,
cpl_propertylist *  applist 
)

Definition at line 1493 of file gravi_old.c.

References cpl_table_save().

◆ gravi_data_save_data()

gravi_data_save_data ( wave_data  ,
"wave_map_argon.fits"  ,
CPL_IO_CREATE   
)

◆ gravi_data_set_propertylist()

gravi_data_set_propertylist ( wave_map  ,
"WAVE_DATA_SC"  ,
plist   
)

◆ gravi_data_set_table()

gravi_data_set_table ( wave_map  ,
"WAVE_DATA_SC"  ,
cpl_table_duplicate(wave_data_sc  
)

◆ gravi_dtps()

cpl_error_code gravi_dtps ( double  xi,
double  eta,
double  raz,
double  decz,
double *  ra,
double *  dec 
)

Definition at line 1621 of file gravi_old.c.

◆ gravi_envelope()

double gravi_envelope ( double  lambda,
double  delta_lambda,
double  opd 
)

Definition at line 4470 of file gravi_old.c.

◆ gravi_eop_load_finals2000A()

gravi_data * gravi_eop_load_finals2000A ( const char *  eop_file)

◆ gravi_fit_argon()

gravi_data * gravi_fit_argon ( gravi_data argon_data,
gravi_data wave_data,
gravi_data profile_map,
gravi_data dark_map,
gravi_data bad_map 
)

This function calibrate the wavelength using the argon.

Parameters
argon_dataThe input argon data
wave_dataThe calibrated wavelength using the gravi_compute_wave function
dark_mapthe dark map computed using the function gravi_compute_dark
bad_mapthe bad pixwel map computed using the function gravi_compute_badpix
Returns
the output gravi data containing the wavelength calibration

The wavelength is compute by fitting the wavelength argon on the wavelength already calibrated using the comparison of the measured phase of each spectral element with the realized OPD.

Definition at line 430 of file gravi_old.c.

References cpl_msg_info(), CPLCHECK_NUL, gravi_data_add_cube(), gravi_data_delete(), gravi_data_get_cube(), gravi_data_get_header, gravi_data_get_plist(), gravi_data_get_plist_x(), gravi_data_get_size(), gravi_data_get_table(), gravi_data_new(), gravi_data_set_table(), gravi_extract_spectrum(), GRAVI_IMAGING_DATA_SC_EXT, GRAVI_IMAGING_DETECTOR_SC_EXT, gravi_msg_function_exit, gravi_msg_function_start, gravi_pfits_get_extension_type(), gravi_pfits_get_extname(), gravi_pfits_get_resolution(), GRAVI_PROFILE_DATA_EXT, GRAVI_SPECTRUM_DATA_SC_EXT, GRAVI_WAVE_ARGON_EXT, GRAVI_WAVE_DATA_SC_EXT, plist, wave_data, and wave_data_sc.

◆ gravi_flux_create_average()

cpl_error_code gravi_flux_create_average ( cpl_table *  i_table,
cpl_table *  o_table,
const char *  colname,
const char *  sname 
)

◆ gravi_get_base_from_tel()

int gravi_get_base_from_tel ( int  t1,
int  t2 
)

Definition at line 29 of file gravi_old.c.

References GRAVI_BASE_TEL.

◆ gravi_get_basesign_from_tel()

int gravi_get_basesign_from_tel ( int  t1,
int  t2 
)

Definition at line 38 of file gravi_old.c.

References GRAVI_BASE_TEL.

◆ gravi_image_to_vector()

cpl_vector * gravi_image_to_vector ( cpl_image *  img)

Definition at line 1582 of file gravi_old.c.

References cpl_image_delete().

◆ gravi_lazer_get_wavelength()

cpl_error_code gravi_lazer_get_wavelength ( gravi_data lazer_data)

◆ gravi_metrology_calibration()

cpl_table * gravi_metrology_calibration ( cpl_table *  metrology_table,
cpl_table *  opl_table,
double  mjd_obs 
)

The given output FITS file contain a p2vm table of the metrology with the values of the transmission, phase and coherence extract using the p2vm matrix.

Parameters
metrology_tableThe metrology table from a fits file wish all the shutters are open
opl_tableThis table will contain the opl of each diode and telescope and must allocated before using this function
mjd_obsThe Modified Julian Date when metrology stated
Returns
The p2vm table of the metrology with the values of the transmission, phase and coherence

The function returns a pointer of cpl_table compute the p2vm table

Regname

Definition at line 2562 of file gravi_old.c.

References cpl_msg_info(), dfda_sin(), gravi_msg_function_exit, gravi_msg_function_start, LAMBDA_MET, and sin_lambda().

◆ gravi_metrology_reform()

cpl_table * gravi_metrology_reform ( cpl_table *  vis_met)

reform the PHASE_FC column of the metrology for the FC into OPD_FC

Definition at line 3751 of file gravi_old.c.

References CPLCHECK_NUL, gravi_msg_function_exit, gravi_msg_function_start, LAMBDA_MET, and ntel.

◆ gravi_normalize_flux()

cpl_error_code gravi_normalize_flux ( gravi_data data)

◆ gravi_opdmet_calibration()

cpl_table * gravi_opdmet_calibration ( cpl_table *  metrology_table,
double  mjd_obs 
)

Compute the opd from metrology for the FC.

Parameters
metrology_tableThe metrology table from a fits file wish all the shutters are open
mjd_obsThe Modified Julian Date when metrology stated
p2vm_metThe output p2vm table of the metrology
Returns
opl_table This table will contain the opl of each diode

Definition at line 3629 of file gravi_old.c.

References CPLCHECK_NUL, FREE, GRAVI_FT, gravi_msg_function_exit, gravi_msg_function_start, GRAVI_SC, and LAMBDA_MET.

◆ gravi_p2vm_mean_spectrum()

cpl_error_code gravi_p2vm_mean_spectrum ( gravi_data p2vm_map,
gravi_data preproc_data 
)

◆ gravi_pfits_get_lambdamet()

double gravi_pfits_get_lambdamet ( const cpl_propertylist *  plist)

Definition at line 2152 of file gravi_old.c.

References plist.

◆ gravi_phase_correct_closures()

cpl_error_code gravi_phase_correct_closures ( cpl_table *  phase_table)

◆ gravi_phase_correct_closures_new()

cpl_error_code gravi_phase_correct_closures_new ( cpl_table *  phase_table)

◆ gravi_phase_fit_opdmet()

cpl_vector * gravi_phase_fit_opdmet ( cpl_table *  vis_met,
cpl_table *  phase_sc,
cpl_table *  phase_ft,
double  dit_sc 
)

◆ gravi_smooth_preproc()

cpl_error_code gravi_smooth_preproc ( gravi_data data,
const cpl_parameterlist *  parlist 
)

This function smooth the SC preproc data in the spectral direction in place, only for preproc (per region). Note that the data are copied during the execution.

Parameters
dataThe gravi_data to smooth
parlistThe options of the recipe
Returns
cpl_error_code

Definition at line 2172 of file gravi_old.c.

References cpl_msg_info(), CPLCHECK_MSG, gravi_array_smooth(), GRAVI_DATA, gravi_data_get_header, gravi_data_get_table(), GRAVI_IMAGING_DETECTOR_SC_EXT, gravi_msg_function_exit, gravi_msg_function_start, gravi_pfits_get_spec_res(), and GRAVI_SPECTRUM_DATA_SC_EXT.

◆ gravi_vector_get_med_percent()

double gravi_vector_get_med_percent ( cpl_vector *  vector_in,
float  percent 
)

Definition at line 4978 of file gravi_old.c.

◆ gravi_vis_create_met_ft()

gravi_vis_create_met_ft ( phase_ft  ,
vis_met   
)

Referenced by gravi_wave_compute_opds().

◆ gravi_vis_create_opdguess_sc()

cpl_table * gravi_vis_create_opdguess_sc ( cpl_table *  spectrumsc_table,
cpl_table *  vis_FT,
cpl_table *  vis_MET,
double  dit_sc 
)

◆ gravi_vis_create_phasesc_ft()

gravi_vis_create_phasesc_ft ( phase_ft  ,
phase_sc  ,
dit_sc   
)

◆ gravi_visdata_fromellipse()

gravi_data * gravi_visdata_fromellipse ( gravi_data spectrum_data)

◆ gravi_wave_scan()

cpl_table * gravi_wave_scan ( cpl_table *  spectrum_table,
cpl_table *  detector_table,
cpl_table *  opd_table 
)

◆ gravi_write_yorick_batch()

int gravi_write_yorick_batch ( const char *  filename,
const char *  input_file,
const char *  output_file 
)

Create a yorick batch to execute mira on a OIFITS file.

Parameters
filenamebatch filename
input_fileinput OIFITS file
output_fileoutput FITS file
Returns
0 on success

The function generate a string of FITS files automatically and randomly

Definition at line 1802 of file gravi_old.c.

References gravi_msg_function_exit, and gravi_msg_function_start.

◆ if() [1/3]

if ( cpl_table_get(phase_ft, "PHASE_SC", row *nbase+base, NULL) !  = 0 && (row % (nrow/5) == 0))

Definition at line 3805 of file gravi_old.c.

References cpl_msg_info(), and LAMBDA_MET.

◆ if() [2/3]

if ( nxc  ,
5000   
)

Definition at line 1969 of file gravi_old.c.

References cpl_image_delete(), cpl_msg_debug(), and specMean.

◆ if() [3/3]

if ( wave  = = nwave/2 && base == 0 & pol == 0)

◆ my_gsl_matrix_complex_fprintf()

int my_gsl_matrix_complex_fprintf ( FILE *  stream,
gsl_matrix_complex *  m,
char *  fmt 
)

Definition at line 1638 of file gravi_old.c.

◆ my_gsl_matrix_fprintf()

int my_gsl_matrix_fprintf ( FILE *  stream,
gsl_matrix *  m,
const char *  fmt 
)

Definition at line 3579 of file gravi_old.c.

Referenced by gravi_compute_disp().

Variable Documentation

◆ else

else
Initial value:
{
cpl_image_fill_window (specMean, 1, 1, nxc, 1, 1.0)
cpl_image * specMean
Definition: gravi_old.c:1961

Definition at line 1982 of file gravi_old.c.

◆ flat_profiled

cpl_image* flat_profiled = cpl_image_extract (profile_mean, xmin, ymin, xmax, ymax)

Definition at line 1959 of file gravi_old.c.

◆ header

cpl_propertylist* header = gravi_data_get_header (wave_map)

Definition at line 2004 of file gravi_old.c.

Referenced by gravi_acq_measure_strehl(), gravi_acqcam_field(), gravi_acqcam_get_diode_ref_v2(), gravi_acqcam_get_pup_ref_v2(), gravi_acqcam_pupil_v2(), gravi_acqcam_set_pupil_table_v2(), gravi_average_vis(), gravi_check_shutter(), gravi_compute_opdc_state(), gravi_compute_pca(), gravi_compute_qc_ft_opd_estimator(), gravi_compute_qc_injection(), gravi_compute_tau0(), gravi_conf_get_iss(), gravi_conf_get_telname(), gravi_create_oitarget_table(), gravi_create_oiwave_table_sc(), gravi_data_check_consistency(), gravi_data_check_shutter_beam(), gravi_data_detector_cleanup(), gravi_data_dump_mode(), gravi_data_load(), gravi_data_load_ext(), gravi_disp_cleanup(), gravi_eop_interpolate(), gravi_eop_load_finals2000A(), gravi_eop_pointing_uv(), gravi_force_uncertainties(), gravi_get_shutter(), gravi_get_shutter_baseid(), gravi_get_shutter_id(), gravi_idp_compute(), gravi_metrology_acq(), gravi_metrology_create(), gravi_metrology_drs(), gravi_metrology_get_astig(), gravi_metrology_get_fc_focus(), gravi_metrology_get_fc_shift(), gravi_metrology_get_posx(), gravi_metrology_get_posy(), gravi_metrology_reduce(), gravi_metrology_tac(), gravi_metrology_telfc(), gravi_metrology_update_receiverpos(), gravi_pfits_add_check(), gravi_pfits_add_pipe_build(), gravi_pfits_get_extrapixel_param(), gravi_pfits_get_time_acqcam(), gravi_pfits_get_time_sc(), gravi_plist_get_oifits_keywords(), gravi_plist_get_qc(), gravi_reduce_acqcam(), gravi_vis_copy_fluxdata(), gravi_vis_create_imagingref_sc(), gravi_vis_create_opddisp_sc(), gravi_vis_create_phaseref_sc(), gravi_vis_resamp(), gravi_vis_smooth(), gravi_visdata_fromellipse(), and gravity_eop_compute_qc().

◆ plist

plist = gravi_data_get_plist (wave_data, "WAVE_DATA_SC")

Definition at line 2000 of file gravi_old.c.

Referenced by gravi_compute_disp_old(), gravi_compute_flat_badpix(), gravi_compute_tf(), gravi_compute_vis_qc(), gravi_compute_wave_offset(), gravi_data_add_cube(), gravi_data_add_img(), gravi_data_add_table(), gravi_data_check_consistency(), gravi_data_clean_for_astro(), gravi_data_copy_ext(), gravi_data_copy_ext_i(), gravi_data_copy_ext_insname(), gravi_data_erase_type(), gravi_data_has_type(), gravi_data_move_ext(), gravi_fit_argon(), gravi_p2vm_transmission(), gravi_pfits_get_axis(), gravi_pfits_get_decep(), gravi_pfits_get_diameter(), gravi_pfits_get_dit_acqcam(), gravi_pfits_get_dit_ft(), gravi_pfits_get_dit_sc(), gravi_pfits_get_double_default(), gravi_pfits_get_double_silentdefault(), gravi_pfits_get_dpr_type(), gravi_pfits_get_drotoff(), gravi_pfits_get_extension_type(), gravi_pfits_get_extname(), gravi_pfits_get_fddlwindow(), gravi_pfits_get_feed(), gravi_pfits_get_ft_gain(), gravi_pfits_get_fullstartx(), gravi_pfits_get_gdzero(), gravi_pfits_get_geoelev(), gravi_pfits_get_geolat(), gravi_pfits_get_geolon(), gravi_pfits_get_gvctu_x(), gravi_pfits_get_gvctu_y(), gravi_pfits_get_insname(), gravi_pfits_get_lambdamet(), gravi_pfits_get_met_faint_params(), gravi_pfits_get_met_mode(), gravi_pfits_get_met_ph(), gravi_pfits_get_met_wavelength(), gravi_pfits_get_met_wavelength_mean(), gravi_pfits_get_metfc_lockmjd(), gravi_pfits_get_mjd(), gravi_pfits_get_mode(), gravi_pfits_get_mode_name(), gravi_pfits_get_northangle_acqcam(), gravi_pfits_get_nx(), gravi_pfits_get_oplzero(), gravi_pfits_get_period_acqcam(), gravi_pfits_get_period_sc(), gravi_pfits_get_plx(), gravi_pfits_get_pmdec(), gravi_pfits_get_pmra(), gravi_pfits_get_pola_mode(), gravi_pfits_get_pola_num(), gravi_pfits_get_ptfc_acqcam(), gravi_pfits_get_raep(), gravi_pfits_get_resolution(), gravi_pfits_get_robj(), gravi_pfits_get_robj_decep(), gravi_pfits_get_robj_diam(), gravi_pfits_get_robj_raep(), gravi_pfits_get_sc_gain(), gravi_pfits_get_sobj(), gravi_pfits_get_sobj_diam(), gravi_pfits_get_sobj_offx(), gravi_pfits_get_sobj_offy(), gravi_pfits_get_sobj_x(), gravi_pfits_get_sobj_y(), gravi_pfits_get_spec_res(), gravi_pfits_get_start_acqcam(), gravi_pfits_get_start_prcacq(), gravi_pfits_get_start_sc(), gravi_pfits_get_startx(), gravi_pfits_get_string_default(), gravi_pfits_get_window_start(), gravi_pfits_get_zenithangle_beamb_acqcam(), gravi_pfits_has_gdzero(), gravi_pfits_has_oplzero(), gravi_pfits_is_calib(), gravi_pfits_update_double(), gravi_pfits_update_int(), gravi_vis_mjd_to_time(), gravi_visdata_fromellipse(), and gravi_wave_qc().

◆ specMean

cpl_image* specMean = cpl_image_collapse_window_create (flat_profiled, 1,1,nxc,nyc,0)

Definition at line 1961 of file gravi_old.c.

Referenced by if().

◆ wave_data

gravi_data* wave_data = gravi_compute_argon_wave (argon_data, profile_map, dark_map, badpix_map, parlist)

◆ wave_data_sc

cpl_table* wave_data_sc = gravi_data_get_table (wave_data, "WAVE_DATA_SC")

Definition at line 1997 of file gravi_old.c.

Referenced by gravi_compute_argon_wave(), and gravi_fit_argon().

◆ wave_map_sc

cpl_table* wave_map_sc = gravi_data_get_table (wave_map, "WAVE_DATA_SC")

Definition at line 1998 of file gravi_old.c.

◆ wavescan_table

wavescan_table = gravi_wave_scan (spectrum_table, detector_table, opd_table)

Definition at line 4523 of file gravi_old.c.