GRAVI Pipeline Reference Manual 1.7.2
Loading...
Searching...
No Matches
Typedefs | Functions
gravi_astrometry.h File Reference
#include <cpl.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_vector.h>
#include "gravi_data.h"

Go to the source code of this file.

Typedefs

typedef struct _astrometry_data_ astro_data
 

Functions

astro_datagravi_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 Documentation

◆ astro_data

typedef struct _astrometry_data_ astro_data

Definition at line 30 of file gravi_astrometry.h.

Function Documentation

◆ gravi_astrometry_create_phase_reference()

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.

Parameters
selfastro_data to compute ref for.
phase_refslist of astro_data to compute ref from.
nphaselength of list.
swapslist of astro_data to compute swap ref from.
nswaplength of list.
parlistrecipe parameters, esp. "calib_strategy".

Definition at line 770 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().

◆ gravi_astrometry_delete()

void gravi_astrometry_delete ( astro_data self)

◆ gravi_astrometry_dump()

cpl_error_code gravi_astrometry_dump ( astro_data self,
FILE *  handle 
)

◆ gravi_astrometry_filter_ftflux()

cpl_error_code gravi_astrometry_filter_ftflux ( astro_data self,
double  threshold 
)

◆ gravi_astrometry_get_mean_ftflux()

double gravi_astrometry_get_mean_ftflux ( astro_data self)

◆ gravi_astrometry_get_phase_reference()

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.

Parameters
selfastro_data to extract table from.
Note
Row axis of table corresponds to wavelength.

Definition at line 1018 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().

◆ gravi_astrometry_load()

astro_data * gravi_astrometry_load ( gravi_data data)

◆ gravi_astrometry_normalise_to_ft()

cpl_error_code gravi_astrometry_normalise_to_ft ( astro_data self)

◆ gravi_astrometry_reduce_swaps()

cpl_error_code gravi_astrometry_reduce_swaps ( astro_data **  swap_data,
cpl_size  nswap,
cpl_parameterlist *  parlist 
)