|
GRAVI Pipeline Reference Manual 1.8.0
|
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_data * | gravi_compute_disp_old (gravi_data *vis_data) |
| 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. | |
| gravi_data * | gravi_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_data * | gravi_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_data * | gravi_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_data * | gravi_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_data * | wave_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) |
| cpl_image_delete | ( | flat_profiled | ) |
Referenced by gravi_acq_measure_max(), gravi_acq_measure_strehl(), gravi_acqcam_clean_pupil_v2(), gravi_acqcam_perform_shiftandadd_v2(), gravi_acqcam_pupil_v2(), gravi_acqcam_select_good_frames_v2(), gravi_compute_badpix(), gravi_compute_biasmask(), gravi_compute_dark(), gravi_compute_gain(), gravi_compute_p2vm(), gravi_compute_profile(), gravi_data_detector_cleanup(), gravi_extract_spectrum(), gravi_image_extract(), gravi_image_fft_correlate(), gravi_image_to_vector(), gravi_imglist_sc_collapse(), gravi_lazer_get_wavelength(), gravity_image(), and if().
| cpl_image_multiply | ( | flat_profiled | , |
| profile_crop | |||
| ) |
Referenced by gravi_compute_profile(), gravi_image_fft_correlate(), and gravi_imglist_sc_collapse().
| cpl_msg_debug | ( | cpl_func | , |
| "Spectra has <50 pixels -> don't flat" | |||
| ) |
Referenced by fit_model_modulation(), gravi_acqcam_field(), gravi_acqcam_z2meter(), gravi_apply_tf_amp(), gravi_apply_tf_phi(), gravi_array_get_group_delay_loop(), gravi_array_online_variance_res(), gravi_astrometry_average_over_dits(), gravi_astrometry_create_phase_reference(), gravi_astrometry_filter_ftflux(), gravi_astrometry_load(), gravi_astrometry_minimise_chi2_descent(), gravi_astrometry_minimise_chi2_grid(), gravi_astrometry_reduce_swaps(), gravi_average_self_visphi(), gravi_calib_setupstring(), gravi_compute_opdc_state(), gravi_compute_p2vmred(), gravi_compute_pointing_uv(), gravi_conf_get_telname(), gravi_construction_opd_phase(), gravi_data_check_consistency(), gravi_data_clean_for_astro(), gravi_data_has_type(), gravi_data_load(), gravi_data_load_ext(), gravi_disp_cleanup(), gravi_ellipse_meanopd_create(), gravi_flux_average_bootstrap(), gravi_imglist_sc_collapse(), gravi_interpolate_spectrum_table(), gravi_metrology_demodulate(), gravi_metrology_drs(), gravi_metrology_telfc(), gravi_p2vm_phase_correction(), gravi_pfits_get_double(), gravi_pfits_get_robj_decep(), gravi_pfits_get_robj_raep(), gravi_phase_fit_opdmet(), gravi_sta_index(), gravi_t3_average_bootstrap(), gravi_table_add_columns(), gravi_table_are_equal(), gravi_vis_average_bootstrap(), gravi_vis_bootstrap_snr_and_delay(), gravi_vis_compute_isdelay(), gravi_vis_mjd_to_time(), gravity_astrometry(), and if().
| 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 | ( | header | , |
| "ESO QC MAXWAVE SC" | , | ||
| cpl_propertylist_get_double(plist, "ESO QC MAXWAVE SC") | |||
| ) |
| cpl_propertylist_update_double | ( | header | , |
| "ESO QC MINWAVE SC" | , | ||
| cpl_propertylist_get_double(plist, "ESO QC MINWAVE SC") | |||
| ) |
Referenced by gravi_acqcam_field(), gravi_acqcam_get_pupil_offset_v2(), gravi_acqcam_set_pupil_table_v2(), gravi_align_spectrum(), gravi_compute_dark(), gravi_compute_disp(), gravi_compute_opdc_state(), gravi_compute_p2vmred(), gravi_compute_piezotf(), gravi_compute_qc_ft_opd_estimator(), gravi_compute_qc_injection(), gravi_compute_signals(), gravi_compute_snr(), gravi_compute_tau0(), gravi_compute_vis_qc(), gravi_compute_wave(), gravi_data_detector_cleanup(), gravi_data_patch(), gravi_extract_spectrum(), gravi_idp_compute(), gravi_metrology_telfc(), gravi_metrology_update_receiverpos(), gravi_p2vm_normalisation(), gravi_pfits_update_double(), gravi_phase_fit_opdmet(), gravi_wave_compute_opds(), gravi_wave_qc(), and gravity_wavelamp().
| cpl_table_save | ( | phase_ft | , |
| NULL | , | ||
| NULL | , | ||
| "phase_ft.fits" | , | ||
| CPL_IO_CREATE | |||
| ) |
| cpl_table_save | ( | phase_sc | , |
| NULL | , | ||
| NULL | , | ||
| "phase_sc.fits" | , | ||
| CPL_IO_CREATE | |||
| ) |
| cpl_table_save | ( | vis_met | , |
| NULL | , | ||
| NULL | , | ||
| "vismet.fits" | , | ||
| CPL_IO_CREATE | |||
| ) |
Referenced by gravi_data_save(), gravi_data_save_data(), gravi_data_save_new(), gravi_phase_fit_opdmet(), and gravity_eop().
| CPLCHECK_CLEAN | ( | "Cannot fit argon" | ) |
| CPLCHECK_NUL | ( | "Compute the flat" | ) |
| CPLCHECK_NUL | ( | "Creating spectrum flat" | ) |
|
static |
Definition at line 1852 of file gravi_old.c.
References finals2000A_read_line().
Referenced by gravi_eop_load_finals2000A().
|
static |
Definition at line 1861 of file gravi_old.c.
References finals2000A_read_line().
Referenced by gravi_eop_load_finals2000A().
|
static |
Definition at line 1841 of file gravi_old.c.
Referenced by finals2000A_mjd_first(), finals2000A_mjd_last_type(), and gravi_eop_load_finals2000A().
| FREE | ( | gravi_data_delete | , |
| wave_data | |||
| ) |
| double gravi_array_get_group_delay | ( | cpl_array * | input, |
| cpl_array * | sigma | ||
| ) |
Definition at line 4759 of file gravi_old.c.
References CPLCHECK.
| double gravi_array_get_group_delay_coarse | ( | cpl_array * | input, |
| cpl_array * | sigma | ||
| ) |
Definition at line 4826 of file gravi_old.c.
References CPLCHECK.
| double gravi_array_get_group_delay_iota | ( | cpl_array * | input, |
| cpl_array * | wavenumber | ||
| ) |
Definition at line 4870 of file gravi_old.c.
| cpl_error_code gravi_array_get_group_delay_loop_new | ( | cpl_array ** | input, |
| cpl_array * | sigma, | ||
| double * | gd, | ||
| cpl_size | nrow | ||
| ) |
Definition at line 4660 of file gravi_old.c.
References cpl_msg_info(), CPLCHECK_MSG, FREE, FREELOOP, gravi_msg_function_exit, and gravi_msg_function_start.
| double gravi_bivector_get_med_poly | ( | cpl_bivector * | bivector_in | ) |
Definition at line 4936 of file gravi_old.c.
References CPLCHECK_MSG.
| gravi_data * gravi_compute_disp_old | ( | gravi_data * | vis_data | ) |
Definition at line 165 of file gravi_old.c.
References gravi_data_get_header, gravi_data_get_oi_plist(), gravi_data_get_oi_table(), gravi_data_get_plist(), gravi_data_get_table(), gravi_data_new(), gravi_msg_function_exit, gravi_msg_function_start, gravi_pfits_get_insname(), INSNAME_FT, INSNAME_FT_P1, INSNAME_FT_P2, INSNAME_SC, INSNAME_SC_P1, INSNAME_SC_P2, LAMBDA_MET, and plist.
| 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.
| profile_map | The 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_data * gravi_compute_wave_offset | ( | gravi_data * | argon_wave, |
| gravi_data * | wave_data | ||
| ) |
Definition at line 947 of file gravi_old.c.
References cpl_msg_info(), gravi_data_add_cube(), 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_IMAGING_DETECTOR_FT_EXT, GRAVI_IMAGING_DETECTOR_SC_EXT, gravi_pfits_get_extension_type(), gravi_pfits_get_extname(), gravi_pfits_get_resolution(), gravi_pfits_get_startx(), gravi_pfits_get_window_start(), GRAVI_WAVE_ARGON_EXT, GRAVI_WAVE_DATA_FT_EXT, GRAVI_WAVE_DATA_SC_EXT, GRAVI_WAVE_FIBRE_SC_EXT, plist, POLAR_1, POLAR_2, POLAR_3, and wave_data.
| cpl_vector * gravi_construction_opd_phase | ( | cpl_table * | opl_table, |
| cpl_table * | phase_sc, | ||
| cpl_table * | phase_ft, | ||
| double | dit_sc | ||
| ) |
Definition at line 2254 of file gravi_old.c.
References cpl_msg_debug(), cpl_msg_info(), CPLCHECK_NUL, gravi_msg_function_exit, and gravi_msg_function_start.
| gravi_data_add_table | ( | wave_map | , |
| NULL | , | ||
| type_data | = =GRAVI_SC ? "WAVE_SCAN_SC" :"WAVE_SCAN_FT", |
||
| wavescan_table | |||
| ) |
Referenced by gravi_p2vm_mean_spectrum().
| 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.
| oi_vis | input/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.
| 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 | ( | wave_data | , |
| "wave_map_argon.fits" | , | ||
| CPL_IO_CREATE | |||
| ) |
| 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) | |||
| ) |
Referenced by gravi_compute_wave_offset(), and gravi_fit_argon().
| 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.
| double gravi_envelope | ( | double | lambda, |
| double | delta_lambda, | ||
| double | opd | ||
| ) |
Definition at line 4470 of file gravi_old.c.
| gravi_data * gravi_eop_load_finals2000A | ( | const char * | eop_file | ) |
Definition at line 1876 of file gravi_old.c.
References cpl_msg_info(), finals2000A_mjd_first(), finals2000A_mjd_last_type(), finals2000A_read_line(), gravi_data_new(), gravi_msg_function_exit, gravi_msg_function_start, gravi_table_new_column(), and header.
| 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.
| argon_data | The input argon data |
| wave_data | The calibrated wavelength using the gravi_compute_wave function |
| dark_map | the dark map computed using the function gravi_compute_dark |
| bad_map | the bad pixwel map computed using the function gravi_compute_badpix |
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.
| cpl_error_code gravi_flux_create_average | ( | cpl_table * | i_table, |
| cpl_table * | o_table, | ||
| const char * | colname, | ||
| const char * | sname | ||
| ) |
Definition at line 5010 of file gravi_old.c.
References cpl_msg_info(), CPLCHECK_MSG, gravi_msg_function_exit, gravi_msg_function_start, gravi_table_new_column(), and ntel.
| int gravi_get_base_from_tel | ( | int | t1, |
| int | t2 | ||
| ) |
Definition at line 29 of file gravi_old.c.
References GRAVI_BASE_TEL.
| int gravi_get_basesign_from_tel | ( | int | t1, |
| int | t2 | ||
| ) |
Definition at line 38 of file gravi_old.c.
References GRAVI_BASE_TEL.
| cpl_vector * gravi_image_to_vector | ( | cpl_image * | img | ) |
Definition at line 1582 of file gravi_old.c.
References cpl_image_delete().
| cpl_error_code gravi_lazer_get_wavelength | ( | gravi_data * | lazer_data | ) |
Definition at line 47 of file gravi_old.c.
References cpl_image_delete(), gravi_data_get_header, gravi_data_get_oi_table(), gravi_data_get_table(), GRAVI_IMAGING_DETECTOR_FT_EXT, GRAVI_IMAGING_DETECTOR_SC_EXT, GRAVI_INSNAME, gravi_msg_function_exit, gravi_msg_function_start, GRAVI_SPECTRUM_DATA_FT_EXT, GRAVI_SPECTRUM_DATA_SC_EXT, GRAVI_TYPE, POLAR_1, POLAR_2, and POLAR_3.
| 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.
| metrology_table | The metrology table from a fits file wish all the shutters are open |
| opl_table | This table will contain the opl of each diode and telescope and must allocated before using this function |
| mjd_obs | The Modified Julian Date when metrology stated |
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().
| 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.
| cpl_error_code gravi_normalize_flux | ( | gravi_data * | data | ) |
Definition at line 1543 of file gravi_old.c.
References cpl_msg_info(), CPLCHECK_MSG, gravi_data_get_header, gravi_data_get_oi_flux, gravi_msg_function_exit, gravi_msg_function_start, gravi_pfits_get_pola_num(), and GRAVI_TYPE.
| cpl_table * gravi_opdmet_calibration | ( | cpl_table * | metrology_table, |
| double | mjd_obs | ||
| ) |
Compute the opd from metrology for the FC.
| metrology_table | The metrology table from a fits file wish all the shutters are open |
| mjd_obs | The Modified Julian Date when metrology stated |
| p2vm_met | The output p2vm table of the metrology |
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.
| cpl_error_code gravi_p2vm_mean_spectrum | ( | gravi_data * | p2vm_map, |
| gravi_data * | preproc_data | ||
| ) |
Definition at line 2963 of file gravi_old.c.
References GRAVI_DATA, gravi_data_add_table(), gravi_data_get_spectrum_data, GRAVI_DATAERR, gravi_msg_function_exit, gravi_msg_function_start, GRAVI_SC, GRAVI_SPECTRUM_DATA_SC_EXT, and gravi_spectrum_get_nregion().
| double gravi_pfits_get_lambdamet | ( | const cpl_propertylist * | plist | ) |
Definition at line 2152 of file gravi_old.c.
References plist.
| cpl_error_code gravi_phase_correct_closures | ( | cpl_table * | phase_table | ) |
Definition at line 4238 of file gravi_old.c.
References cpl_msg_info(), CPLCHECK_CLEAN, FREE, gravi_msg_function_exit, gravi_msg_function_start, and ntel.
| cpl_error_code gravi_phase_correct_closures_new | ( | cpl_table * | phase_table | ) |
Definition at line 3716 of file gravi_old.c.
References CPLCHECK_MSG, FREE, gravi_msg_function_exit, gravi_msg_function_start, GRAVI_TRI_BASE, and GRAVI_TRI_SIGN.
| cpl_vector * gravi_phase_fit_opdmet | ( | cpl_table * | vis_met, |
| cpl_table * | phase_sc, | ||
| cpl_table * | phase_ft, | ||
| double | dit_sc | ||
| ) |
Definition at line 3828 of file gravi_old.c.
References cpl_msg_debug(), cpl_msg_info(), cpl_propertylist_update_double(), cpl_table_save(), CPLCHECK_NUL, FREE, GRAVI_BASE_TEL, gravi_msg_function_exit, gravi_msg_function_start, INFO_DEBUG, LAMBDA_MET, and ntel.
| 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.
| data | The gravi_data to smooth |
| parlist | The options of the recipe |
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.
| 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 | ( | phase_ft | , |
| vis_met | |||
| ) |
Referenced by gravi_wave_compute_opds().
| cpl_table * gravi_vis_create_opdguess_sc | ( | cpl_table * | spectrumsc_table, |
| cpl_table * | vis_FT, | ||
| cpl_table * | vis_MET, | ||
| double | dit_sc | ||
| ) |
Definition at line 4153 of file gravi_old.c.
References CPLCHECK_NUL, GRAVI_BASE_TEL, gravi_msg_function_exit, gravi_msg_function_start, gravi_signal_create_sync(), gravi_table_new_column(), LAMBDA_MET, and ntel.
| gravi_vis_create_phasesc_ft | ( | phase_ft | , |
| phase_sc | , | ||
| dit_sc | |||
| ) |
| gravi_data * gravi_visdata_fromellipse | ( | gravi_data * | spectrum_data | ) |
Definition at line 2016 of file gravi_old.c.
References CPLCHECK_NUL, FREE, GRAVI_BASE_TEL, GRAVI_DATA, gravi_data_get_header, gravi_data_get_imaging_detector, gravi_data_get_spectrum_data, gravi_data_new(), GRAVI_EXTVER, gravi_get_region(), GRAVI_INSNAME, gravi_msg_function_exit, gravi_msg_function_start, gravi_pfits_get_pola_num(), gravi_table_get_data_array_double(), gravi_table_new_column(), gravi_table_new_column_array(), GRAVI_TYPE, header, and plist.
| cpl_table * gravi_wave_scan | ( | cpl_table * | spectrum_table, |
| cpl_table * | detector_table, | ||
| cpl_table * | opd_table | ||
| ) |
Definition at line 4531 of file gravi_old.c.
References cpl_msg_info(), CPLCHECK_NUL, FREE, gravi_compute_envelope(), GRAVI_DATA, gravi_msg_function_exit, gravi_msg_function_start, gravi_region_get_base(), gravi_region_get_base_sign(), gravi_spectrum_get_nwave(), gravi_table_get_vector(), gravi_table_new_column_array(), and gravi_vector_get_maxpos().
| 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.
| filename | batch filename |
| input_file | input OIFITS file |
| output_file | output FITS file |
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 | ( | 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 | ( | nxc | , |
| 5000 | |||
| ) |
Definition at line 1969 of file gravi_old.c.
References cpl_image_delete(), cpl_msg_debug(), and specMean.
| if | ( | wave | = = nwave/2 && base == 0 & pol == 0 | ) |
Definition at line 4486 of file gravi_old.c.
References FREELOOP, GRAVI_DATA, gravi_get_region(), gravi_table_get_vector(), and gravi_vector_extract().
| int my_gsl_matrix_complex_fprintf | ( | FILE * | stream, |
| gsl_matrix_complex * | m, | ||
| char * | fmt | ||
| ) |
Definition at line 1638 of file gravi_old.c.
| 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().
| else |
Definition at line 1982 of file gravi_old.c.
| cpl_image* flat_profiled = cpl_image_extract (profile_mean, xmin, ymin, xmax, ymax) |
Definition at line 1959 of file gravi_old.c.
| 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 = 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().
| 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().
| gravi_data* wave_data = gravi_compute_argon_wave (argon_data, profile_map, dark_map, badpix_map, parlist) |
Definition at line 1994 of file gravi_old.c.
Referenced by gravi_compute_argon_wave(), gravi_compute_wave_offset(), gravi_fit_argon(), gravi_wave_get_nlambda(), and gravi_wave_qc().
| 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().
| 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 = gravi_wave_scan (spectrum_table, detector_table, opd_table) |
Definition at line 4523 of file gravi_old.c.