Defines | |
| #define | FILESIZE 200 |
Functions | |
| int | uves_physmod_calmap (const uves_propertylist *raw_header, enum uves_chip chip, const char *recipe_id, const cpl_parameterlist *parameters, cpl_table *npline_tbl, cpl_table **ord_tbl, cpl_table **lin_tbl, cpl_table **w_tbl, cpl_table **s_tbl, int *abs_ord_min, int *abs_ord_max, polynomial **poly2d) |
| This procedure makes the order definitions and wavelength calibration from the wavelength projection map, and saves the data in tables and global keywords in echelle context. It generates order and line tables. | |
| int | uves_physmod_center_gauss (const cpl_image *raw_image, cpl_table **m_tbl) |
| Fit the image line X and Y distributions with a Gaussian in a box. | |
| int | uves_physmod_chop_otab (const uves_propertylist *raw_header, enum uves_chip chip, cpl_table **ord_tbl, const char *col_name, int *ord_min, int *ord_max) |
| Chop off orders which are not fully in the detector chip. | |
| static int | flames_get_trans (const int plt_no, enum uves_chip chip, const double wlen, double *TX, double *TY) |
| int | uves_physmod_create_table (const uves_propertylist *raw_header, enum uves_chip chip, const char *recipe_id, const cpl_parameterlist *parameters, cpl_table *line_refer, const double physmod_shift_x, const double physmod_shift_y, cpl_table **mod_tbl, cpl_table **fsr_tbl) |
| Generates two tables with results of the UVES physical model. | |
| int | uves_physmod_msrawxy (const cpl_image *raw_image, const uves_propertylist *raw_header, const char *recipe_id, const cpl_parameterlist *parameters, cpl_table *mod_tbl, cpl_table **l_tbl, cpl_table **m_tbl, cpl_table **p_tbl, cpl_table **rline_tbl, cpl_table **mline_tbl, cpl_table **npline_tbl) |
| This procedure measures the raw XY positions and widths of Th-Ar lines on an ThAr arc echelle exposure. It computes the differences with the predicted positions. | |
| int | uves_physmod_necregr (cpl_table **ord_tbl, cpl_table **reg_tbl) |
| This procedure does a linear fit of independent orders. | |
| int | uves_physmod_plotmod (const cpl_table *tbl, const uves_propertylist *head, const char *rec_id, const cpl_parameterlist *params, enum uves_chip chip) |
| This procedure plots results from the uves_physmod recipe. | |
| int | uves_physmod_qc1pmtbl (cpl_table **rline_tbl, cpl_table **lin_tbl) |
| To be written. | |
| int | uves_physmod_regress_echelle (const uves_propertylist *raw_header, enum uves_chip chip, const char *recipe_id, const cpl_parameterlist *parameters, cpl_table **o_tbl, int num_outliers, double tol, double kappa, cpl_table **s_tbl, cpl_table **w_tbl) |
| Fit mesured position of orders by a bivariate polynomial. | |
| static int | uves_physmod_align_tables (cpl_table **m_tbl, cpl_table **r_tbl) |
| This procedure compares two input tables and eventually alignes them. | |
| static int | flames_align_table_column (cpl_table **m_tbl, cpl_table **r_tbl, const char *col) |
| This procedure compares two input tables and eventually alignes them. | |
| int | uves_physmod_stability_check (cpl_table *m_tbl, cpl_table *r_tbl, double *med_dx, double *med_dy, double *avg_dx, double *avg_dy) |
| This procedure run a stability check. | |
| int uves_physmod_calmap | ( | const uves_propertylist * | raw_header, | |
| enum uves_chip | chip, | |||
| const char * | recipe_id, | |||
| const cpl_parameterlist * | parameters, | |||
| cpl_table * | npline_tbl, | |||
| cpl_table ** | ord_tbl, | |||
| cpl_table ** | lin_tbl, | |||
| cpl_table ** | w_tbl, | |||
| cpl_table ** | s_tbl, | |||
| int * | abs_ord_min, | |||
| int * | abs_ord_max, | |||
| polynomial ** | poly2d | |||
| ) |
This procedure makes the order definitions and wavelength calibration from the wavelength projection map, and saves the data in tables and global keywords in echelle context. It generates order and line tables.
| raw_header | header of raw frame | |
| chip | UVES chip ID | |
| recipe_id | name of calling recipe | |
| parameters | input recipe parameters | |
| npline_tbl | input table | |
| ord_tbl | output order table | |
| lin_tbl | output line table | |
| w_tbl | output table with results from regression | |
| s_tbl | output table with results from regression (same as w one?) | |
| abs_ord_min | min absolute order | |
| abs_ord_max | max absolute order | |
| poly2d | output polynomial with coefficients from regression: Order=poly2d(X,YNEW) fit is stored in column RORD |
Definition at line 140 of file uves_physmod_calmap.c.
References check, uves_msg, uves_msg_debug, uves_physmod_regress_echelle(), uves_polynomial_delete(), uves_polynomial_get_coeff_1d(), uves_polynomial_regression_1d(), uves_polynomial_regression_2d(), uves_propertylist_append_bool(), uves_propertylist_new(), and uves_table_sort().
| int uves_physmod_center_gauss | ( | const cpl_image * | raw_image, | |
| cpl_table ** | m_tbl | |||
| ) |
Fit the image line X and Y distributions with a Gaussian in a box.
| raw_image | Input raw image | |
| m_tbl | model table: Input/Output table with added colums ICENT,XCEN,YCEN,XFWHM,YFWHM,XSIG,YSIG,XERR,YERR,STATUS with results of a Gaussian marginal fit to the image intensity distributions obtained by collapsing along X and Y the image points within a box centered at each line |
Definition at line 138 of file uves_physmod_center_gauss.c.
References check, check_nomsg, uves_msg, uves_msg_debug, uves_msg_warning, and uves_physmod_stacen().
Referenced by uves_physmod_msrawxy().
| int uves_physmod_chop_otab | ( | const uves_propertylist * | raw_header, | |
| enum uves_chip | chip, | |||
| cpl_table ** | ord_tbl, | |||
| const char * | col_name, | |||
| int * | ord_min, | |||
| int * | ord_max | |||
| ) |
Chop off orders which are not fully in the detector chip.
| raw_header | An array containing the input image headers. The ordering must be the same as the ordering of images in the input image list | |
| chip | CCD chip | |
| col_name | Name of column of which min/max is computed | |
| ord_tbl | The output guess order table. | |
| ord_min | The output guess order table minimum value | |
| ord_max | The output guess order table maximum value |
Definition at line 126 of file uves_physmod_chop_otab.c.
References check, uves_msg_debug, uves_pfits_get_nx(), and uves_pfits_get_ny().
| int uves_physmod_create_table | ( | const uves_propertylist * | raw_header, | |
| enum uves_chip | chip, | |||
| const char * | recipe_id, | |||
| const cpl_parameterlist * | parameters, | |||
| cpl_table * | line_refer, | |||
| const double | physmod_shift_x, | |||
| const double | physmod_shift_y, | |||
| cpl_table ** | mod_tbl, | |||
| cpl_table ** | fsr_tbl | |||
| ) |
Generates two tables with results of the UVES physical model.
| raw_header | An array containing the input image headers. The ordering must be the same as the ordering of images in the input image list | |
| chip | CCD chip | |
| recipe_id | name of calling recipe | |
| parameters | The recipe parameter list | |
| line_refer | The reference arc lamp line list | |
| physmod_shift_x | Correction to physical model | |
| physmod_shift_y | Correction to physical model | |
| mod_tbl | The output table with results from the UVES physical model | |
| fsr_tbl | Output table with predicted Free Spectral Range |
Definition at line 179 of file uves_physmod_create_table.c.
References check, check_nomsg, flames_get_trans(), uves_chip_tostring_upper(), uves_flames_pfits_get_plateid(), uves_msg, uves_msg_debug, uves_pfits_get_binx(), uves_pfits_get_biny(), uves_pfits_get_chipid(), uves_pfits_get_dpr_tech(), uves_pfits_get_gratid(), uves_pfits_get_gratwlen(), uves_pfits_get_pressure(), uves_pfits_get_slitlength(), uves_pfits_get_slitwidth(), and uves_pfits_get_tempcam().
| int uves_physmod_msrawxy | ( | const cpl_image * | raw_image, | |
| const uves_propertylist * | raw_header, | |||
| const char * | recipe_id, | |||
| const cpl_parameterlist * | parameters, | |||
| cpl_table * | mod_tbl, | |||
| cpl_table ** | l_tbl, | |||
| cpl_table ** | m_tbl, | |||
| cpl_table ** | p_tbl, | |||
| cpl_table ** | rline_tbl, | |||
| cpl_table ** | mline_tbl, | |||
| cpl_table ** | npline_tbl | |||
| ) |
This procedure measures the raw XY positions and widths of Th-Ar lines on an ThAr arc echelle exposure. It computes the differences with the predicted positions.
| raw_image | The input raw frame (splitted) | |
| raw_header | An array containing the input image headers. The ordering must be the same as the ordering of images in the input image list | |
| recipe_id | name of calling recipe | |
| parameters | The recipe parameter list | |
| mod_tbl | Input model table from uves_physmod_create_table() | |
| l_tbl | Temporary table | |
| m_tbl | Temporary table | |
| p_tbl | Temporary table | |
| rline_tbl | Temporary table with predicted line positions | |
| mline_tbl | Temporary table with corrected predicted line positions | |
| npline_tbl | Temporary table |
Definition at line 160 of file uves_physmod_msrawxy.c.
References assure, check, check_nomsg, uves_msg_debug, uves_pfits_get_binx(), uves_pfits_get_biny(), uves_physmod_center_gauss(), uves_polynomial_delete(), uves_polynomial_evaluate_2d(), uves_polynomial_get_coeff_2d(), and uves_polynomial_regression_2d().
| int uves_physmod_necregr | ( | cpl_table ** | ord_tbl, | |
| cpl_table ** | reg_tbl | |||
| ) |
This procedure does a linear fit of independent orders.
| ord_tbl | The input order table | |
| reg_tbl | The output regression table. |
Definition at line 105 of file uves_physmod_necregr.c.
References uves_msg_debug.
Referenced by uves_physmod_regress_echelle().
| int uves_physmod_plotmod | ( | const cpl_table * | tbl, | |
| const uves_propertylist * | head, | |||
| const char * | rec_id, | |||
| const cpl_parameterlist * | params, | |||
| enum uves_chip | chip | |||
| ) |
This procedure plots results from the uves_physmod recipe.
| tbl | The input line table. | |
| tbl | The input raw data header. | |
| params | The input recipe parameters. |
Definition at line 116 of file uves_physmod_plotmod.c.
References check, uves_chip_tostring_lower(), uves_pfits_get_gratwlen(), uves_pfits_get_origfile(), uves_pfits_get_slitlength(), uves_pfits_get_slitwidth(), uves_pfits_get_tempcam(), and uves_pfits_get_tpl_start().
| int uves_physmod_qc1pmtbl | ( | cpl_table ** | rline_tbl, | |
| cpl_table ** | lin_tbl | |||
| ) |
To be written.
| rline_tbl | The input line table. | |
| lin_tbl | The input line table. |
Definition at line 106 of file uves_physmod_qc1pmtbl.c.
References check, FILESIZE, and uves_msg_debug.
| int uves_physmod_regress_echelle | ( | const uves_propertylist * | raw_header, | |
| enum uves_chip | chip, | |||
| const char * | recipe_id, | |||
| const cpl_parameterlist * | parameters, | |||
| cpl_table ** | o_tbl, | |||
| int | num_outliers, | |||
| double | tol, | |||
| double | kappa, | |||
| cpl_table ** | s_tbl, | |||
| cpl_table ** | w_tbl | |||
| ) |
Fit mesured position of orders by a bivariate polynomial.
| raw_header | An array containing the input image headers. The ordering must be the same as the ordering of images in the input image list | |
| chip | CCD chip | |
| recipe_id | name of calling recipe | |
| parameters | The recipe parameter list | |
| o_tbl | The input order table | |
| num_outliers | The input no of outliers | |
| tol | The input tolerance | |
| kappa | The input value of kappa in kappa-sigma clipping | |
| s_tbl | The output table. | |
| w_tbl | The output table. |
Definition at line 157 of file uves_physmod_regress_echelle.c.
References check, uves_max_int(), uves_msg, uves_msg_debug, uves_msg_error, uves_msg_warning, uves_pfits_get_cdelt1(), uves_pfits_get_cdelt2(), uves_pfits_get_crval1(), uves_pfits_get_crval2(), uves_pfits_get_naxis1(), uves_pfits_get_naxis2(), uves_pfits_get_nx(), uves_pfits_get_ny(), uves_physmod_necregr(), uves_polynomial_delete(), uves_polynomial_get_coeff_2d(), uves_polynomial_regression_2d(), uves_propertylist_append_bool(), uves_propertylist_new(), and uves_table_sort().
Referenced by uves_physmod_calmap().
| static int uves_physmod_align_tables | ( | cpl_table ** | m_tbl, | |
| cpl_table ** | r_tbl | |||
| ) | [static] |
This procedure compares two input tables and eventually alignes them.
| m_tbl | model table on actual frame. | |
| r_tbl | model table on reference frame |
Definition at line 388 of file uves_physmod_stability_check.c.
References check_nomsg, flames_align_table_column(), uves_msg_warning, uves_propertylist_append_bool(), uves_propertylist_new(), and uves_table_sort().
Referenced by uves_physmod_stability_check().
| static int flames_align_table_column | ( | cpl_table ** | m_tbl, | |
| cpl_table ** | r_tbl, | |||
| const char * | col | |||
| ) | [static] |
This procedure compares two input tables and eventually alignes them.
| m_tbl | model table on actual frame. | |
| r_tbl | model table on reference frame | |
| col | reference column |
Definition at line 336 of file uves_physmod_stability_check.c.
References check_nomsg.
Referenced by uves_physmod_align_tables().
| int uves_physmod_stability_check | ( | cpl_table * | m_tbl, | |
| cpl_table * | r_tbl, | |||
| double * | med_dx, | |||
| double * | med_dy, | |||
| double * | avg_dx, | |||
| double * | avg_dy | |||
| ) |
This procedure run a stability check.
| m_tbl | model table on actual frame. | |
| r_tbl | model table on reference frame | |
| med_dx | median shift on X axis | |
| med_dy | median shift on Y axis | |
| avg_dx | mean shift on X axis | |
| avg_dy | mean shift on Y axis |
Definition at line 152 of file uves_physmod_stability_check.c.
References check, check_nomsg, uves_msg, uves_msg_warning, and uves_physmod_align_tables().
1.5.1