Functions | |
void | xsh_mark_tell (cpl_frame *s1d_frame, cpl_frame *tellmask_frame) |
Mark telluric in spectrum. | |
cpl_frame * | xsh_compute_absorp (cpl_frame *s1d_frame, cpl_frame *telllist_frame, int filter_hsize, double threshold, xsh_instrument *instr) |
Compute the shift in slit between reference wavelength and others for all the slitlets. | |
cpl_frame * | xsh_compute_slice_dist (cpl_frameset *loc_frame_set, cpl_frame *order_tab_frame, cpl_frame *slitmap_frame, cpl_frameset *rec_frameset, double slicedist_lambda, xsh_instrument *instrument) |
cpl_frame * | xsh_compute_shift_ifu_slitlet (double lambda_ref, cpl_frame *objpos_frame, cpl_frame *shiftifu_frame, double lambdaref_hsize, const char *resname) |
Compute the shift in slit between reference wavelength and others. | |
cpl_frameset * | xsh_compute_shift_ifu (double lambda_ref, double lambdaref_hsize, cpl_frameset *objpos_frameset, cpl_frameset *shiftifu_frameset, xsh_instrument *instrument, const char *prefix) |
Compute the shift in slit between reference wavelength and others for all the slitlets. |
Function ...
cpl_frame* xsh_compute_absorp | ( | cpl_frame * | s1d_frame, | |
cpl_frame * | telllist_frame, | |||
int | filter_hsize, | |||
double | threshold, | |||
xsh_instrument * | instr | |||
) |
Compute the shift in slit between reference wavelength and others for all the slitlets.
[in] | s1d_frame | Reference wavelength [in] tellist_frame List of telluric intervals |
[in] | filter_hsize | Tables containing for wavelength the position of object center on the slit |
[in] | threshold | Tables containing a preceding shift ifu tab. This table will be sum to the new |
Definition at line 153 of file xsh_compute_absorp.c.
References check, xsh_spectrum::flux_header, GUESS_TELL_MASK_RESOLUTION_NIR, GUESS_TELL_MASK_RESOLUTION_UVB, GUESS_TELL_MASK_RESOLUTION_VIS, xsh_spectrum::lambda_min, xsh_spectrum::lambda_step, LEND_COLUMN_NAME, LSTART_COLUMN_NAME, size, xsh_add_temporary_file(), XSH_ARM_UVB, XSH_ARM_VIS, XSH_ASSURE_NOT_NULL, XSH_CALLOC, XSH_FREE, xsh_free_frame(), xsh_free_vector(), xsh_instrument_arm_tostring(), xsh_instrument_get_arm(), xsh_msg, xsh_pfits_get_slit_width(), XSH_PRE_QUAL_BPP, XSH_REGDEBUG, xsh_resolution_get(), xsh_sort_table_1(), xsh_spectrum_free(), xsh_spectrum_get_flux(), xsh_spectrum_get_size_lambda(), xsh_spectrum_load(), XSH_TABLE_FREE, XSH_TABLE_LOAD, XSH_TELL_MASK, and xsh_unwrap_vector().
Referenced by xsh_absorp().
cpl_frameset* xsh_compute_shift_ifu | ( | double | lambda_ref, | |
double | lambdaref_hsize, | |||
cpl_frameset * | objpos_frameset, | |||
cpl_frameset * | shiftifu_frameset, | |||
xsh_instrument * | instrument, | |||
const char * | prefix | |||
) |
Compute the shift in slit between reference wavelength and others for all the slitlets.
[in] | lambda_ref | Reference wavelength |
[in] | objpos_frameset | Tables containing for wavelength the position of object center on the slit |
[in] | shiftifu_frame | Tables containing a preceding shift ifu tab. This table will be sum to the new |
in | instrument Instrument structure | |
[in] | prefix | Name of prefix |
Definition at line 345 of file xsh_compute_slice_dist.c.
References check, LOWER_IFU_SLITLET, SlitletName, XSH_ASSURE_NOT_NULL, xsh_compute_shift_ifu_slitlet(), xsh_free_frameset(), xsh_instrument_arm_tostring(), and xsh_msg.
Referenced by xsh_geom_ifu().
cpl_frame* xsh_compute_shift_ifu_slitlet | ( | double | lambda_ref, | |
cpl_frame * | objpos_frame, | |||
cpl_frame * | shiftifu_frame, | |||
double | lambdaref_hsize, | |||
const char * | resname | |||
) |
Compute the shift in slit between reference wavelength and others.
[in] | lambda_ref | Reference wavelength |
[in] | objpos_frame | table containing for Wavelength the position of object center on the slit |
[in] | shiftifu_frame | table containing a preceding shift ifu tab This table will be sum to the new |
[in] | resname | Name of result table |
Definition at line 182 of file xsh_compute_slice_dist.c.
References check, xsh_add_temporary_file(), XSH_ASSURE_NOT_ILLEGAL, XSH_ASSURE_NOT_NULL, xsh_data_interpolate(), xsh_frame_product(), xsh_free_propertylist(), xsh_free_vector(), xsh_msg_dbg_low, XSH_OBJPOS_COLNAME_SLIT, XSH_OBJPOS_COLNAME_WAVELENGTH, xsh_pfits_set_shiftifu_lambdaref(), xsh_pfits_set_shiftifu_slitref(), XSH_SHIFTIFU_COLNAME_SHIFTSLIT, XSH_SHIFTIFU_COLNAME_WAVELENGTH, XSH_SHIFTIFU_UNIT_SHIFTSLIT, XSH_SHIFTIFU_UNIT_WAVELENGTH, XSH_TABLE_FREE, XSH_TABLE_LOAD, and XSH_TABLE_NEW_COL.
Referenced by xsh_compute_shift_ifu().
cpl_frame* xsh_compute_slice_dist | ( | cpl_frameset * | loc_frame_set, | |
cpl_frame * | order_tab_frame, | |||
cpl_frame * | slitmap_frame, | |||
cpl_frameset * | rec_frameset, | |||
double | slicedist_lambda, | |||
xsh_instrument * | instrument | |||
) |
Definition at line 72 of file xsh_compute_slice_dist.c.
References xsh_slice_offset::cen_down, xsh_slice_offset::cen_up, xsh_localization::cenpoly, CENTER_IFU_SLITLET, check, LOWER_IFU_SLITLET, SlitletName, UPPER_IFU_SLITLET, XSH_ASSURE_NOT_NULL, xsh_free_frame(), xsh_get_slit_edges(), xsh_instrument_arm_tostring(), xsh_localization_free(), xsh_localization_load(), xsh_msg, xsh_rec_list_free(), xsh_rec_list_get_lambda_max(), xsh_rec_list_load(), xsh_slice_offset_create(), xsh_slice_offset_free(), and xsh_slice_offset_save().
void xsh_mark_tell | ( | cpl_frame * | s1d_frame, | |
cpl_frame * | tellmask_frame | |||
) |
Mark telluric in spectrum.
[in,out] | s1d_frame | 1D spectrum |
[in] | tellmask_frame | Mask of telluric |
Definition at line 83 of file xsh_compute_absorp.c.
References check, QFLAG_TELLURIC_UNCORRECTED, size, XSH_ASSURE_NOT_ILLEGAL, XSH_ASSURE_NOT_NULL, xsh_free_frame(), xsh_free_vector(), xsh_msg, xsh_spectrum_free(), xsh_spectrum_get_qual(), xsh_spectrum_get_size(), xsh_spectrum_load(), and xsh_spectrum_save().
Referenced by xsh_scired_slit_nod(), xsh_scired_slit_offset(), and xsh_scired_slit_stare().