|
GRAVI Pipeline Reference Manual 1.9.4
|
Go to the source code of this file.
Typedefs | |
| typedef struct _astrometry_data_ | astro_data |
Functions | |
| astro_data * | gravi_astrometry_load (gravi_data *data) |
| Load data for astrometry from a gravi_data. | |
| cpl_error_code | gravi_astrometry_dump (astro_data *self, FILE *handle) |
| void | gravi_astrometry_delete (astro_data *self) |
| double | gravi_astrometry_get_mean_ftflux (astro_data *self) |
| cpl_error_code | gravi_astrometry_filter_ftflux (astro_data *self, double threshold) |
| Filter based on FT flux threshold and normalise. | |
| cpl_error_code | gravi_astrometry_normalise_to_ft (astro_data *self) |
| Normalise visibilities to average FT flux. | |
| cpl_error_code | gravi_astrometry_create_phase_reference (astro_data *self, astro_data **phase_refs, cpl_size nphase, astro_data **swaps, cpl_size nswap, cpl_parameterlist *parlist) |
| Compute the final astrometric phase reference. | |
| cpl_table * | gravi_astrometry_get_phase_reference (astro_data *self) |
| cpl_error_code | gravi_astrometry_reduce_swaps (astro_data **swap_data, cpl_size nswap, cpl_parameterlist *parlist) |
| typedef struct _astrometry_data_ astro_data |
Definition at line 27 of file gravi_astrometry.h.
| cpl_error_code gravi_astrometry_create_phase_reference | ( | astro_data * | self, |
| astro_data ** | phase_refs, | ||
| cpl_size | nphase, | ||
| astro_data ** | swaps, | ||
| cpl_size | nswap, | ||
| cpl_parameterlist * | parlist | ||
| ) |
Compute the final astrometric phase reference.
| self | astro_data to compute ref for. |
| phase_refs | list of astro_data to compute ref from. |
| nphase | length of list. |
| swaps | list of astro_data to compute swap ref from. |
| nswap | length of list. |
| parlist | recipe parameters, esp. "calib_strategy". |
Definition at line 772 of file gravi_astrometry.c.
References _astrometry_data_::amp_ref_astro, average_matrix_complex_over_dits(), average_matrix_over_dits(), cpl_msg_debug(), CPLCHECK_INT, _astrometry_data_::filename, FIND_MODE_AFTER, FIND_MODE_BEFORE, _astrometry_data_::flag, FREE, gravi_astrometry_find_closest_mjd(), _astrometry_data_::nchannel, _astrometry_data_::ndit, _astrometry_data_::nwave, _astrometry_data_::phase_ref_astro, _astrometry_data_::swap, and _astrometry_data_::vis_ref.
Referenced by gravity_astrometry().
| void gravi_astrometry_delete | ( | astro_data * | self | ) |
Definition at line 666 of file gravi_astrometry.c.
References _astrometry_data_::amp_ref_astro, _astrometry_data_::filename, _astrometry_data_::flag, FREE, FREELOOP, _astrometry_data_::insname, _astrometry_data_::nchannel, _astrometry_data_::ndit, _astrometry_data_::opd_disp, _astrometry_data_::phase_met_telfc, _astrometry_data_::phase_ref, _astrometry_data_::phase_ref_astro, _astrometry_data_::u, _astrometry_data_::v, _astrometry_data_::vis_ref, _astrometry_data_::vis_ref_cov, _astrometry_data_::vis_ref_pcov, _astrometry_data_::visdata, _astrometry_data_::visdata_ft, _astrometry_data_::viserr, and _astrometry_data_::wave.
Referenced by gravi_astrometry_reduce_swaps(), gravity_astrometry(), and load_data().
| cpl_error_code gravi_astrometry_dump | ( | astro_data * | self, |
| FILE * | handle | ||
| ) |
Definition at line 647 of file gravi_astrometry.c.
References _astrometry_data_::filename, _astrometry_data_::flag, _astrometry_data_::insname, _astrometry_data_::nchannel, _astrometry_data_::ndit, _astrometry_data_::nwave, _astrometry_data_::ucoord, _astrometry_data_::vcoord, _astrometry_data_::vis_ref, and _astrometry_data_::visdata.
| cpl_error_code gravi_astrometry_filter_ftflux | ( | astro_data * | self, |
| double | threshold | ||
| ) |
Filter based on FT flux threshold and normalise.
Definition at line 373 of file gravi_astrometry.c.
References cpl_msg_debug(), _astrometry_data_::flag, _astrometry_data_::nchannel, _astrometry_data_::ndit, _astrometry_data_::nflag, _astrometry_data_::nwave, _astrometry_data_::nwave_ft, _astrometry_data_::visdata, and _astrometry_data_::visdata_ft.
Referenced by gravity_astrometry().
| double gravi_astrometry_get_mean_ftflux | ( | astro_data * | self | ) |
Definition at line 695 of file gravi_astrometry.c.
References _astrometry_data_::nchannel, _astrometry_data_::ndit, _astrometry_data_::nwave_ft, and _astrometry_data_::visdata_ft.
Referenced by gravity_astrometry().
| cpl_table * gravi_astrometry_get_phase_reference | ( | astro_data * | self | ) |
Return CPL table with the final astrometric phase reference. Return CPL table with the final astrometric phase reference.
| self | astro_data to extract table from. |
Definition at line 1020 of file gravi_astrometry.c.
References _astrometry_data_::amp_ref_astro, CPLCHECK_NUL, FREE, _astrometry_data_::nchannel, _astrometry_data_::ndit, _astrometry_data_::nwave, _astrometry_data_::phase_ref_astro, _astrometry_data_::vis_ref_cov, and _astrometry_data_::vis_ref_pcov.
Referenced by gravity_astrometry().
| astro_data * gravi_astrometry_load | ( | gravi_data * | data | ) |
Load data for astrometry from a gravi_data.
Definition at line 441 of file gravi_astrometry.c.
References _astrometry_data_::amp_ref_astro, cpl_msg_debug(), _astrometry_data_::dit, _astrometry_data_::filename, _astrometry_data_::flag, FREE, gravi_astrometry_add_phase(), gravi_astrometry_scale_visibilities(), gravi_data_get_header, gravi_data_get_oi_vis, gravi_data_get_oi_wave, gravi_data_get_oi_wave_plist, GRAVI_FT, GRAVI_SC, _astrometry_data_::insname, load_matrix(), load_matrix_complex(), load_vector(), _astrometry_data_::mjd, _astrometry_data_::nchannel, _astrometry_data_::ndit, _astrometry_data_::nflag, _astrometry_data_::nwave, _astrometry_data_::nwave_ft, _astrometry_data_::opd_disp, _astrometry_data_::phase_met_telfc, _astrometry_data_::phase_ref, _astrometry_data_::phase_ref_astro, _astrometry_data_::sobj_x, _astrometry_data_::sobj_y, _astrometry_data_::swap, TWOPI, _astrometry_data_::u, _astrometry_data_::ucoord, _astrometry_data_::v, _astrometry_data_::vcoord, _astrometry_data_::vis_ref, _astrometry_data_::vis_ref_cov, _astrometry_data_::vis_ref_pcov, _astrometry_data_::visdata, _astrometry_data_::visdata_ft, _astrometry_data_::viserr, and _astrometry_data_::wave.
Referenced by load_data().
| cpl_error_code gravi_astrometry_normalise_to_ft | ( | astro_data * | self | ) |
Normalise visibilities to average FT flux.
Definition at line 423 of file gravi_astrometry.c.
References FREE, gravi_astrometry_mul_visibilities(), _astrometry_data_::nchannel, _astrometry_data_::ndit, _astrometry_data_::nwave, _astrometry_data_::nwave_ft, and _astrometry_data_::visdata_ft.
Referenced by gravity_astrometry().
| cpl_error_code gravi_astrometry_reduce_swaps | ( | astro_data ** | swap_data, |
| cpl_size | nswap, | ||
| cpl_parameterlist * | parlist | ||
| ) |
Definition at line 1423 of file gravi_astrometry.c.
References cpl_msg_debug(), CPLCHECK_CLEAN, CPLCHECK_MSG, FREE, FREELOOP, gravi_astrometry_average_over_dits(), gravi_astrometry_create_swap_reference(), gravi_astrometry_delete(), gravi_astrometry_minimise_chi2_descent(), gravi_astrometry_minimise_chi2_grid(), _gravi_astrometry_model_params_::group1, _astrometry_data_::phase_ref_astro, _astrometry_data_::sobj_x, _astrometry_data_::sobj_y, _astrometry_data_::swap, _astrometry_data_::swap_astrometry_fit, and _astrometry_data_::swap_astrometry_guess.
Referenced by gravity_astrometry().