Functions | |
| static cpl_error_code | extract_ff_rebin_merge (cpl_image *back_subbed, cpl_image *backsubbed_noise, const uves_propertylist *backsubbed_header, const cpl_image *master_flat, cpl_image *mflat_noise, const cpl_table *ordertable, const polynomial *order_locations, const cpl_table *linetable, const uves_propertylist *linetable_header[3], const polynomial *dispersion_relation[3], double slit_length, double slit_offset, int window, enum uves_chip chip, bool blaze_correct, bool tilt_corr, bool DEBUG, const cpl_parameterlist *parameters, const char *context, flatfielding_method ff_method, extract_method ex_method, merge_method m_method,cpl_image **x, uves_propertylist **x_header, cpl_image **fx, cpl_table **cosmic_mask, cpl_image **flatfielded_variance, uves_propertylist **flatfielded_variance_header, cpl_image **resampled_spectrum, cpl_image **resampled_mf, cpl_image **merged_sky, cpl_image **rebinned_spectrum, cpl_image **rebinned_noise, uves_propertylist **rebinned_header, cpl_image **merged_spectrum, cpl_image **merged_noise, uves_propertylist **merged_header, cpl_table **info_tbl, cpl_table **order_trace) |
| Reduce one extraction window. | |
| static cpl_image * | subtract_sky (cpl_image *rebinned_obj, cpl_image *rebinned_obj_noise, uves_propertylist *rebinned_obj_header, const cpl_image *rebinned_sky1, const cpl_image *rebinned_sky1_noise, const uves_propertylist *rebinned_sky1_header, const cpl_image *rebinned_sky2, const cpl_image *rebinned_sky2_noise, const uves_propertylist *rebinned_sky2_header, cpl_image **merged_obj, cpl_image **merged_obj_noise, uves_propertylist *merged_obj_header, const cpl_image *merged_sky1, const cpl_image *merged_sky1_noise, const uves_propertylist *merged_sky1_header, const cpl_image *merged_sky2, const cpl_image *merged_sky2_noise, const uves_propertylist *merged_sky2_header, double obj_slit, double sky1_slit, double sky2_slit) |
| Subtract sky from extracted spectrum. | |
| static cpl_image * | subtract_sky_row (cpl_image *obj, cpl_image *obj_noise, double obj_start, double obj_end, double obj_slit, const cpl_image *sky1, const cpl_image *sky1_noise, double sky1_start, double sky1_end, double sky1_slit, const cpl_image *sky2, const cpl_image *sky2_noise, double sky2_start, double sky2_end, double sky2_slit, int row, double wavestep, double *common_start, double *common_end) |
| Subtract sky from 1 row of spectrum. | |
| static double | get_offset (const cpl_image *back_subbed, const cpl_table *ordertable, const polynomial *order_locations, double search_range, int nsamples, double *doffset) |
| Measure object offset w.r.t. slit center. | |
| static cpl_image * | uves_get_blaze_ratio (const cpl_image *spectrum, const cpl_image *spectrum_noise) |
| Get (normalized) object to flat-field blaze function ratio. | |
| cpl_parameterlist * | uves_reduce_define_parameters (void) |
| Define recipe parameters used for reducing a frame. | |
| cpl_error_code | uves_reduce (const cpl_image *raw_image, const uves_propertylist *raw_header, const uves_propertylist *rotated_header, const cpl_image *master_bias, const cpl_image *master_dark, const uves_propertylist *mdark_header, const cpl_image *master_flat, const uves_propertylist *mflat_header, const cpl_table *ordertable, const polynomial *order_locations, const cpl_table *linetable[3], const uves_propertylist *linetable_header[3], const polynomial *dispersion_relation[3], enum uves_chip chip, bool DEBUG, const cpl_parameterlist *parameters, const char *context, cpl_image **x, uves_propertylist **x_header, cpl_image **fx, cpl_table **cosmic_mask, cpl_image **background, cpl_image **flatfielded_variance, uves_propertylist **flatfielded_variance_header, cpl_image **resampled_spectrum, cpl_image **resampled_mf, cpl_image **merged_sky, cpl_image **rebinned_spectrum, cpl_image **rebinned_noise, uves_propertylist **rebinned_header, cpl_image **merged_spectrum, cpl_image **merged_noise, uves_propertylist **merged_header, cpl_image **reduced_rebinned_spectrum, cpl_image **reduced_rebinned_noise, cpl_image **reduced_spectrum, cpl_image **reduced_noise, cpl_table **info_tbl, double *extraction_slit, cpl_table **order_trace) |
| Reduce a science frame. | |
| static polynomial * | interpolate_wave (const polynomial *dispersion_relation[3], const uves_propertylist *linetable_header[3], double objoffset) |
| 1st order line tilt correction | |
| cpl_image * | uves_normalize_spectrum (const cpl_image *spectrum, const cpl_image *spectrum_error, const uves_propertylist *spectrum_header, const uves_propertylist *raw_header, int n_traces, enum uves_chip chip, const cpl_table *atm_extinction, bool correct_binning, cpl_image **scaled_error) |
| Normalize a spectrum. | |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Reduce one extraction window.
Definition at line 1748 of file uves_reduce.c. References check, interpolate_wave(), passure, uves_extract(), uves_flatfielding(), uves_get_blaze_ratio(), uves_merge_orders(), uves_msg, uves_msg_debug, uves_msg_low, uves_msg_warning, uves_pfits_get_firstabsorder(), uves_pfits_get_lastabsorder(), uves_polynomial_convert_to_table(), uves_polynomial_delete(), uves_polynomial_duplicate(), uves_propertylist_duplicate(), uves_rebin(), and uves_round_double(). Referenced by uves_reduce(). |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subtract sky from extracted spectrum.
Definition at line 2569 of file uves_reduce.c. References assure, check, passure, subtract_sky_row(), uves_pfits_get_cdelt1(), uves_pfits_get_wend(), uves_pfits_get_wstart(), uves_pfits_set_wend(), and uves_pfits_set_wstart(). Referenced by uves_reduce(). |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subtract sky from 1 row of spectrum.
Definition at line 2816 of file uves_reduce.c. References check, uves_average_images(), uves_max_double(), uves_min_double(), uves_msg_debug, uves_msg_low, and uves_round_double(). Referenced by subtract_sky(). |
|
||||||||||||||||||||||||||||
|
Measure object offset w.r.t. slit center.
Definition at line 3038 of file uves_reduce.c. References assure, passure, uves_max_int(), uves_min_int(), uves_polynomial_evaluate_2d(), and uves_round_double(). Referenced by uves_reduce(). |
|
||||||||||||
|
Get (normalized) object to flat-field blaze function ratio.
This function
Definition at line 3160 of file uves_reduce.c. References assure_mem, and passure. Referenced by extract_ff_rebin_merge(). |
|
|
Define recipe parameters used for reducing a frame.
Definition at line 345 of file uves_reduce.c. |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Reduce a science frame.
Then, if optimal extraction:
If linear/average extraction,
If 2d extraction,
Definition at line 682 of file uves_reduce.c. References assure, assure_nomsg, check, extract_ff_rebin_merge(), get_offset(), passure, subtract_sky(), uves_define_noise(), uves_flatfielding(), uves_get_extract_method(), uves_get_flatfield_method(), uves_get_merge_method(), uves_max_double(), uves_max_int(), uves_min_double(), uves_msg, uves_msg_low, uves_msg_warning, uves_pfits_get_datancom(), uves_pfits_get_slit1_name(), uves_pfits_get_slitlength_pixels(), uves_pfits_set_hs(), uves_round_double(), uves_subtract_bias(), and uves_subtract_dark(). Referenced by uves_response_efficiency(), and uves_scired_process_chip(). |
|
||||||||||||||||
|
1st order line tilt correction
Definition at line 1570 of file uves_reduce.c. References uves_msg_debug, and uves_pfits_get_offset(). Referenced by extract_ff_rebin_merge(). |
|
||||||||||||||||||||||||||||||||||||||||
|
Normalize a spectrum.
Bad pixels are propagated. Definition at line 119 of file uves_reduce_utils.c. References assure, assure_nomsg, check, uves_msg, uves_pfits_get_airmass_end(), uves_pfits_get_airmass_start(), uves_pfits_get_biny(), uves_pfits_get_cdelt1(), uves_pfits_get_crval1(), uves_pfits_get_exptime(), uves_pfits_get_gain(), uves_pfits_get_wstart(), and uves_spline_hermite_table(). Referenced by uves_response_efficiency(), and uves_scired_process_chip(). |
1.4.6