Extract objects (xsh_extract)
[DRL Functions]

Functions

static cpl_frame * xsh_extract_with_tag (cpl_frame *rec_frame, cpl_frame *loc_frame, xsh_instrument *instrument, xsh_extract_param *extract_par, const char *tag, cpl_frame **res_frame_ext)
 Simple 1D extraction of point source like object.
cpl_frame * xsh_extract (cpl_frame *rec_frame, cpl_frame *loc_frame, xsh_instrument *instrument, xsh_extract_param *extract_par, cpl_frame **res_frame_ext, const char *rec_prefix)
 simple 1D extraction of point source like object
cpl_frameset * xsh_extract_ifu (cpl_frameset *rec_frameset, cpl_frameset *loc_frameset, xsh_instrument *instrument, xsh_extract_param *extract_par, const char *rec_prefix)
 Loop on IFU Frames to extract simple 1D (1 per slitlet).
static void fill_img (cpl_image *img, int ilambda, cpl_image *down, cpl_image *cen, cpl_image *up, int up_shift, int cen_shift)
static void make_data_cube (xsh_pre_3d *pre_3d, xsh_pre *pre_down, xsh_pre *pre_cen, xsh_pre *pre_up)
cpl_frame * xsh_format (cpl_frameset *spectrum_frame_set, const char *result_name, xsh_instrument *instrument, const char *rec_prefix)

Detailed Description

Function ...


Function Documentation

static void fill_img ( cpl_image *  img,
int  ilambda,
cpl_image *  down,
cpl_image *  cen,
cpl_image *  up,
int  up_shift,
int  cen_shift 
) [static]

Definition at line 67 of file xsh_format.c.

References check, nx, ny, and xsh_msg_dbg_high.

Referenced by make_data_cube().

static void make_data_cube ( xsh_pre_3d pre_3d,
xsh_pre pre_down,
xsh_pre pre_cen,
xsh_pre pre_up 
) [static]
cpl_frame* xsh_extract ( cpl_frame *  rec_frame,
cpl_frame *  loc_frame,
xsh_instrument instrument,
xsh_extract_param extract_par,
cpl_frame **  res_frame_ext,
const char *  rec_prefix 
)

simple 1D extraction of point source like object

Parameters:
[in] rec_frame Rectified frame (from xsh_rectify)
[in] loc_frame Localization table
[in] instrument Instrument pointer
[in] extract_par Parameters for object extraction
[out] res_frame_ext extracted frame in ESO format
[in] rec_prefix recipe prefix (for PRO.CATG definition)
Returns:
a rectified frame

Definition at line 305 of file xsh_extract.c.

References check, xsh_extract_with_tag(), XSH_GET_TAG_FROM_ARM, and XSH_ORDER1D.

Referenced by xsh_respon_slit_nod(), xsh_respon_slit_offset(), xsh_respon_slit_stare(), xsh_scired_slit_nod(), xsh_scired_slit_offset(), and xsh_scired_slit_stare().

cpl_frameset* xsh_extract_ifu ( cpl_frameset *  rec_frameset,
cpl_frameset *  loc_frameset,
xsh_instrument instrument,
xsh_extract_param extract_par,
const char *  rec_prefix 
)

Loop on IFU Frames to extract simple 1D (1 per slitlet).

Parameters:
[in] rec_frameset Rectified frameset (from xsh_rectify_ifu)
[in] loc_frameset Localization table frameset (xsh_localize_ifu)
[in] instrument Instrument pointer
[in] extract_par Parameters for object extraction
[in] rec_prefix recipe prefix (to define PRO.CATG value)
Returns:
a rectified frame

Definition at line 336 of file xsh_extract.c.

References CENTER_IFU_SLITLET, check, LOWER_IFU_SLITLET, SlitletName, UPPER_IFU_SLITLET, XSH_ASSURE_NOT_NULL, xsh_extract_with_tag(), XSH_GET_TAG_FROM_ARM, xsh_msg, and xsh_msg_dbg_medium.

static cpl_frame* xsh_extract_with_tag ( cpl_frame *  rec_frame,
cpl_frame *  loc_frame,
xsh_instrument instrument,
xsh_extract_param extract_par,
const char *  tag,
cpl_frame **  res_frame_ext 
) [static]
cpl_frame* xsh_format ( cpl_frameset *  spectrum_frame_set,
const char *  result_name,
xsh_instrument instrument,
const char *  rec_prefix 
)

Generated on 9 Mar 2011 for X-shooter Pipeline Reference Manual by  doxygen 1.6.1