Localize objects (xsh_localize_obj)
[DRL Functions]

Functions

static void chunk_coadd (double *data, double *flux, int *qual, int nx, int ny, int ifirst, int ilast, int *skymask)
static void tab_minmax_get_index (double *data, int size, xsh_slit_limit_param *slit_limit_par, int *min, int *max)
static xsh_localizationxsh_localize_obj_auto (cpl_frame *merge_frame, cpl_frame *skymask_frame, xsh_instrument *instrument, xsh_localize_obj_param *loc_obj_par, xsh_slit_limit_param *slitlimit_par)
 Build localization table frame from the rectified table frame.
static xsh_localizationxsh_localize_obj_manual (xsh_instrument *instrument, xsh_localize_obj_param *loc_obj_par)
cpl_frame * xsh_localize_obj (cpl_frame *rec_frame, cpl_frame *skymask_frame, xsh_instrument *instrument, xsh_localize_obj_param *loc_obj_par, xsh_slit_limit_param *slitlimit_par, const char *fname)
 Build the localization table.
static int comp_lambda (const void *one, const void *two)
static cpl_frame * concat_rec (cpl_frame *rect_frame, xsh_instrument *instrument, int slitlet, int *nb_orders)
cpl_frameset * xsh_localize_obj_ifu (cpl_frameset *rec_frameset, cpl_frame *skymask_frame, xsh_instrument *instrument, xsh_localize_obj_param *locobj_par, xsh_slit_limit_param *slitlimit_par)

Detailed Description

Function ...


Function Documentation

static void chunk_coadd ( double *  data,
double *  flux,
int *  qual,
int  nx,
int  ny,
int  ifirst,
int  ilast,
int *  skymask 
) [static]
static int comp_lambda ( const void *  one,
const void *  two 
) [static]

Definition at line 732 of file xsh_localize_obj.c.

Referenced by concat_rec().

static cpl_frame* concat_rec ( cpl_frame *  rect_frame,
xsh_instrument instrument,
int  slitlet,
int *  nb_orders 
) [static]
static void tab_minmax_get_index ( double *  data,
int  size,
xsh_slit_limit_param slit_limit_par,
int *  min,
int *  max 
) [static]
cpl_frame* xsh_localize_obj ( cpl_frame *  rec_frame,
cpl_frame *  skymask_frame,
xsh_instrument instrument,
xsh_localize_obj_param loc_obj_par,
xsh_slit_limit_param slitlimit_par,
const char *  fname 
)

Build the localization table.

Parameters:
[in] rec_frame Rectified frame (from xsh_rectify) or NULL in MANUAL mode
[in] skymask_frame sky mask frame
[in] instrument Pointer to instrument description structure
[in] loc_obj_par Parameters for localization
[in] slitlimit_par Parameters defining slit limits
[in] fname output filename
Returns:
Localization Table

Definition at line 210 of file xsh_localize_obj.c.

References check, LOC_MANUAL_METHOD, LOCALIZE_METHOD_PRINT, MEAN_MERGE_METHOD, xsh_localize_obj_param::method, xsh_localize_obj_param::slit_hheight, xsh_localize_obj_param::slit_position, XSH_ASSURE_NOT_NULL, xsh_free_frame(), xsh_localization_free(), xsh_localization_save(), xsh_localize_obj_auto(), xsh_localize_obj_manual(), xsh_merge_ord(), xsh_msg_dbg_low, and xsh_msg_dbg_medium.

Referenced by main(), xsh_localize_obj_ifu(), xsh_respon_slit_nod(), xsh_respon_slit_offset(), xsh_scired_slit_nod(), xsh_scired_slit_nod_accurate(), xsh_scired_slit_offset(), and xsh_slit_stare_correct_crh_and_sky().

static xsh_localization * xsh_localize_obj_auto ( cpl_frame *  merge_frame,
cpl_frame *  skymask_frame,
xsh_instrument instrument,
xsh_localize_obj_param loc_obj_par,
xsh_slit_limit_param slitlimit_par 
) [static]

Build localization table frame from the rectified table frame.

Parameters:
[in] merge_frame Merge frame (from xsh_merge_ord) or NULL in MANUAL mode
[in] skymask_frame Sky mask frame
[in] instrument Pointer to instrument description structure
[in] loc_obj_par Parameters for localization [in] slitlimit_par Parameters to define slit limits
Returns:
Localization Table

Definition at line 318 of file xsh_localize_obj.c.

References xsh_localization::cenpoly, check, chunk_coadd(), xsh_localization::edglopoly, xsh_localization::edguppoly, xsh_spectrum::errs, xsh_spectrum::flux, xsh_spectrum::flux_header, xsh_localize_obj_param::kappa, kappa, xsh_spectrum::lambda_min, xsh_spectrum::lambda_step, lambda_step, xsh_localize_obj_param::loc_chunk_nb, xsh_localize_obj_param::loc_deg_poly, LOC_GAUSSIAN_METHOD, xsh_localize_obj_param::loc_thresh, xsh_localize_obj_param::method, xsh_localize_obj_param::niter, niter, xsh_localize_obj_param::nod_step, xsh_localization::pol_degree, xsh_spectrum::qual, sigma, xsh_spectrum::slit_min, xsh_spectrum::slit_step, slit_step, tab_minmax_get_index(), threshold, xsh_localize_obj_param::use_skymask, width, XSH_ARCSEC_NIR, XSH_ARCSEC_UVB, XSH_ARCSEC_VIS, XSH_ARM_NIR, XSH_ARM_UVB, XSH_ARM_VIS, XSH_ASSURE_NOT_ILLEGAL, XSH_ASSURE_NOT_NULL, XSH_CALLOC, xsh_debug_level_get(), XSH_DEBUG_LEVEL_MEDIUM, xsh_error_reset, XSH_FREE, xsh_free_polynomial(), xsh_free_table(), xsh_free_vector(), xsh_instrument_get_arm(), xsh_localization_create(), xsh_msg_dbg_low, xsh_msg_dbg_medium, xsh_msg_warning, xsh_pfits_get_slit_width(), xsh_polynomial_fit_1d_create(), xsh_resolution_get(), xsh_round_double(), xsh_sort_table_1(), xsh_spectrum_free(), xsh_spectrum_get_size_lambda(), xsh_spectrum_get_size_slit(), xsh_spectrum_load(), XSH_TABLE_LOAD, and xsh_unwrap_vector().

Referenced by xsh_localize_obj().

cpl_frameset* xsh_localize_obj_ifu ( cpl_frameset *  rec_frameset,
cpl_frame *  skymask_frame,
xsh_instrument instrument,
xsh_localize_obj_param locobj_par,
xsh_slit_limit_param slitlimit_par 
)
static xsh_localization * xsh_localize_obj_manual ( xsh_instrument instrument,
xsh_localize_obj_param loc_obj_par 
) [static]

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