Compute Slice Offsets (xsh_geom_ifu)
[DRL Functions]

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

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_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
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, 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.

Parameters:
[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
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, 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.

Parameters:
[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
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 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 
)
void xsh_mark_tell ( cpl_frame *  s1d_frame,
cpl_frame *  tellmask_frame 
)

Mark telluric in spectrum.

Parameters:
[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().


Generated on 13 Mar 2013 for X-shooter Pipeline Reference Manual by  doxygen 1.6.1