X-shooter Pipeline Reference Manual 3.8.15
Functions
Compute Slice Offsets (xsh_geom_ifu)

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.
 

Detailed Description

Function ...

Function Documentation

◆ xsh_compute_absorp()

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.

Parameters
[in]s1d_frameReference wavelength @pram[in] tellist_frame List of telluric intervals
[in]filter_hsizeTables containing for wavelength the position of object center on the slit
[in]thresholdTables containing a preceding shift ifu tab. This table will be sum to the new
Returns
Telluric mask

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, threshold, 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().

◆ xsh_compute_shift_ifu()

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.

Parameters
[in]lambda_refReference wavelength
[in]objpos_framesetTables containing for wavelength the position of object center on the slit
[in]shiftifu_frameTables containing a preceding shift ifu tab. This table will be sum to the new
[ininstrument Instrument structure
[in]prefixName of prefix
Returns
Table frameset containing for wavelength the offset with the reference wavelength in slit.

Definition at line 345 of file xsh_compute_slice_dist.c.

References check, instrument, 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().

◆ xsh_compute_shift_ifu_slitlet()

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.

Parameters
[in]lambda_refReference wavelength
[in]objpos_frametable containing for Wavelength the position of object center on the slit
[in]shiftifu_frametable containing a preceding shift ifu tab This table will be sum to the new
[in]resnameName of result table
Returns
frame table containing for wavelength ths offset with the reference wavelength in slit.

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 main(), and xsh_compute_shift_ifu().

◆ xsh_compute_slice_dist()

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 
)

◆ xsh_mark_tell()

void xsh_mark_tell ( cpl_frame *  s1d_frame,
cpl_frame *  tellmask_frame 
)